NT8 optimization fills 100% of physical memory then crashes - NinjaTrader | futures io social day trading
futures io futures trading

NT8 optimization fills 100% of physical memory then crashes
Updated: Views / Replies:2,189 / 20
Created: by paulrobert Attachments:1

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Thread Tools Search this Thread

NT8 optimization fills 100% of physical memory then crashes

  #11 (permalink)
Arlington VA
Trading Experience: Beginner
Platform: NinjaTrader
Favorite Futures: CL
Posts: 11 since Feb 2017
Thanks: 0 given, 2 received


Sent from my iPhone using futures.io

Reply With Quote
  #12 (permalink)
Market Wizard
Gits (Hooglede) Belgium
Trading Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
rleplae's Avatar
Posts: 2,948 since Sep 2013
Thanks: 2,389 given, 5,374 received

paulrobert View Post

Sent from my iPhone using futures.io

Ask the vendor to do the same thing and confirm if an issue or not on his side

Reply With Quote
  #13 (permalink)
Chicago, USA
Trading Experience: Advanced
Platform: TS, NT, TOS, SSE, IRT
Favorite Futures: ES, currency futures, options, stocks
Posts: 191 since Dec 2010
Thanks: 310 given, 261 received

paulrobert View Post
I am attempting to run an NT8 optimization on a fully-automated strategy called NanoScalper.I have an Intel i7, SSD, and 32 GB of RAM.

Regardless of the number of iterations, the physical memory used climbs to around 100% at which point NT8 crashes. The CPU usage spikes and eventually returns to around 5%, but the physical memory % never decreases.

I have considerably more processing power than what is recommended for NT8, so I am trying to figure out if I need to change a setting within the application.

Thanks in advance!


I believe this to be a bug with NT8.
I noticed the same with several of my strategies that I upgraded to NT 8.
I haven't filed the issue with NT yet. As a workaround, I don't put an extreme level of variables in the strategy to optimize (work 3 or 4 variables each time, with not too many iterations).
After running several times, I need to exit NT8 and come back in, so it will release the memory.

Reply With Quote
The following user says Thank You to dstrader for this post:
  #14 (permalink)
Arlington VA
Trading Experience: Beginner
Platform: NinjaTrader
Favorite Futures: CL
Posts: 11 since Feb 2017
Thanks: 0 given, 2 received

Interesting. I appreciate your help.

Sent from my iPhone using futures.io

Reply With Quote
The following user says Thank You to paulrobert for this post:
  #15 (permalink)
Madrid, Spain
Trading Experience: Advanced
Platform: NinjaTrader
Broker/Data: NinjaTrader Brokerage
Favorite Futures: ES
Posts: 18 since Oct 2009
Thanks: 6 given, 14 received

If the strategy (or any called indicator) uses drawing elements with individual labels, remove all drawing elements in the code.

This problem I had in version 8.0.3, I do not know if it will already be fixed in 8.0.4, I have not yet migrated.

Reply With Quote
  #16 (permalink)
Trading Experience: Intermediate
Platform: IB TWS
Favorite Futures: FTSE CHINA A50@SGX
Posts: 3 since Aug 2016
Thanks: 1 given, 0 received

It actually freezes when the memory is full

I encountered the same problem today. 4-parameters strategy with the built-in strategy builder.
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
  #17 (permalink)
Melbourne, Australia
Trading Experience: Beginner
Platform: Ninja Trader
Broker/Data: Ninjatrader Brokerage
Favorite Futures: Many
Posts: 81 since May 2012
Thanks: 61 given, 30 received

I also had this problem for a few months which drove me nuts and almost had me quitting NT. I have cured it (so far anyway) by doing this:

- Open a new chart and progressively add indicators, until I identified which one gave me problems
- When I have multiple work spaces open I always have one work space with one simple chart only. So no indicators 5 days of data (someting small)...lets call it Workspace A. Then when I close down NT8 I always close every workspace, until I get to the Workspace A, leave that open and then close NT8. So when it re-opens, that Workspace A is the first to start up. Another FIO member gave that tip and it works
- The usual other platform maintenance, re DB Folder.

Now, I think that if a platform is this 'sensitive' there is something not right with the product.


Reply With Quote
  #18 (permalink)
Washington DC
Trading Experience: Master
Platform: ToS
Favorite Futures: Stocks
Posts: 1 since Jun 2015
Thanks: 0 given, 0 received

NT8 file management issue it seems

Figured I post here, since there is a memory dump issue for sure with NT8 when running large strategies or optimization. I went from 32 GB to 64 GB ram, and it doesn't matter - it will fill to 100% and slow computer to a crawl - or crash if you try to be "fast". At 16 GB NT8 used to crash, but it was also the previous version, so that may have been addressed (crash issue itself). Now I just click close and wait literally 5 minutes to respond, and once NT8 closes, the speed returns, as physical Ram is released.

What I did was to sync my NT8 folder, and AFTER I closed NT8, I noticed hundreds of files created in my synced google drive folder. Upon closure, NT8 deletes all those files, and so it seems like it just keeps creating and opening more and more files forever in the background, without closing them.

My theory is that WHILE NT8 is running all those files (let's say a strategy for 500+ stocks) continually updates minute data, but rather than opening the new minute data, it also keeps the previous file open. It's a single stock, it should have ONE file that updates, and instead, it creates a new file for every data point it seems - and they must be all being accessed. I'd attach a screenshot of what my sync folder looks like, versus what NT8 folder looks like. However, these files are created in this folder:

DRIVE:\Documents\NinjaTrader 8\db\cache\US Equities RTH.Eastern Standard Time\MINUTE

Open any ticker, and you will see the insanity that ensues, as the program runs longer, until seemingly every file is open as more are being created and left open.

So.... not viable still for continuous usage sadly =(

Reply With Quote
  #19 (permalink)
Site Administrator
Manta, Ecuador
Trading Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
Big Mike's Avatar
Posts: 47,176 since Jun 2009
Thanks: 30,059 given, 87,983 received

Should tag @NinjaTrader and open a support ticket, maybe this is a bug instead of by design.

Sent using the futures.io mobile app

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following 2 users say Thank You to Big Mike for this post:
  #20 (permalink)
Trading Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: liquid
Posts: 119 since Sep 2013
Thanks: 9 given, 27 received

This might be related but off-topic:

I thought I read a thread here somewhere that was a how to guide on this forum to fixing NinjaTrader to get rid of performance / ram issues. Does anyone have a link?

Reply With Quote


futures io > > > > NT8 optimization fills 100% of physical memory then crashes

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now

Similar Threads
Thread Thread Starter Forum Replies Last Post
NT8 official release crashes at end of ETH with daily bars IQFeed data.... Blash NinjaTrader 27 January 11th, 2017 02:52 PM
Market Replay fills vs Live Sim fills nourozi NinjaTrader 8 January 12th, 2014 04:47 AM
Comparing simulation fills vs expectation of real fills Zwaen Traders Hideout 6 May 23rd, 2012 03:23 AM
Walk Forward Optimization - memory consumption Mondrakete NinjaTrader Programming 2 September 7th, 2011 05:04 PM

automated strategy, c#, cl, code, data, dow, el, ema, error, futures, how to, indicator, indicators, instrument, minute data, ninja, ninjatrader, ninjatrader 8, nt8, optimization, platform, ram, software, spectrum, stocks, strategies, strategy, support, tapatalk, values, vendor, workspace

All times are GMT -4. The time now is 07:00 AM. (this page content is cached, log in for real-time version)

Copyright © 2019 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432 WhatsApp Business, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2019-06-16 in 0.26 seconds with 15 queries on phoenix