NexusFi: Find Your Edge


Home Menu

 





NinjaTrader 8 Memory Usage


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one ycomp with 6 posts (1 thanks)
    2. looks_two xplorer with 3 posts (0 thanks)
    3. looks_3 cory with 1 posts (1 thanks)
    4. looks_4 sudhirc with 1 posts (1 thanks)
      Best Posters
    1. looks_one ratfink with 2 thanks per post
    2. looks_two cory with 1 thanks per post
    3. looks_3 sudhirc with 1 thanks per post
    4. looks_4 ycomp with 0.2 thanks per post
    1. trending_up 3,444 views
    2. thumb_up 5 thanks given
    3. group 6 followers
    1. forum 11 posts
    2. attach_file 2 attachments




 
Search this Thread

NinjaTrader 8 Memory Usage

  #1 (permalink)
ycomp
Europe-ish
 
Posts: 177 since Sep 2013
Thanks Given: 12
Thanks Received: 58

I realize that NinjaTrader uses garbage collection because of it being based on .NET

But I still wonder if it is normal that my workspace goes from 1.8GB usage to 4.5GB usage pretty quickly.. eventually it comes back down (some days at least).. and I think when it does go up it is because of the market starting to move.

But I was just wondering if such a large increase is normal or if I need to investigate some of my indicators's code.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
How to apply profiles
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
33 thanks
Just another trading journal: PA, Wyckoff & Trends
26 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
19 thanks
  #2 (permalink)
 
xplorer's Avatar
 xplorer 
London UK
Site Moderator
 
Experience: Beginner
Platform: CQG
Broker: S5
Trading: Futures
Posts: 5,973 since Sep 2015
Thanks Given: 15,493
Thanks Received: 15,387


ycomp View Post
I realize that NinjaTrader uses garbage collection because of it being based on .NET

But I still wonder if it is normal that my workspace goes from 1.8GB usage to 4.5GB usage pretty quickly.. eventually it comes back down (some days at least).. and I think when it does go up it is because of the market starting to move.

But I was just wondering if such a large increase is normal or if I need to investigate some of my indicators's code.

It may depend on how much is going on in your workspace in terms of indicators, etc., but that sounds like a lot.

Having a corrupted workspace is not infrequent either - have you logged a ticket with NT support to get it checked out?

Reply With Quote
  #3 (permalink)
ycomp
Europe-ish
 
Posts: 177 since Sep 2013
Thanks Given: 12
Thanks Received: 58



xplorer View Post
It may depend on how much is going on in your workspace in terms of indicators, etc., but that sounds like a lot.

Having a corrupted workspace is not infrequent either - have you logged a ticket with NT support to get it checked out?

no, I mean it is fine for now - I have 24gb of ram.. but was just wondering. I do have some demanding indicators and multiple charts.

How much does your ram usage vary?

Reply With Quote
  #4 (permalink)
 
xplorer's Avatar
 xplorer 
London UK
Site Moderator
 
Experience: Beginner
Platform: CQG
Broker: S5
Trading: Futures
Posts: 5,973 since Sep 2015
Thanks Given: 15,493
Thanks Received: 15,387


ycomp View Post
no, I mean it is fine for now - I have 24gb of ram.. but was just wondering. I do have some demanding indicators and multiple charts.

How much does your ram usage vary?

My NT 8 memory footprint is very low compared to yours - typically is never above 0.5Gb RAM - but then, I have very little going on in my workspace: one or two charts with max 3 indicators most of which are standard.

Reply With Quote
  #5 (permalink)
 
sudhirc's Avatar
 sudhirc 
detroit,mi
sc
 
Experience: Intermediate
Platform: NT
Broker: NT
Trading: ES
Frequency: Every few months
Duration: Hours
Posts: 417 since Sep 2011
Thanks Given: 1,709
Thanks Received: 471

I have the following charts open most of the time and uses less than 1 gb of memory. If the indicators are coded correctly you should not see any burden on your system.
chart 1 - 6 tabs
chart 2 - 4 tabs
chart 3 - 4 tabs
chart 4 - 7 tabs
chart 5 - 3 tabs
2 individual charts and now and then i might open and close some extra charts during the course of the day.

Reply With Quote
Thanked by:
  #6 (permalink)
ycomp
Europe-ish
 
Posts: 177 since Sep 2013
Thanks Given: 12
Thanks Received: 58

I think the main problem probably is that I have multiple moving average indicators on the chart.. so they use a lot of plots on each chart so I'm thinking maybe plots use a lot of memory.. and then I have many tabs of these same templates.

But I'm not totally sure as I do have other indicators such as pivots and indicators that display stats on the chart. It's a pity that it's not possible to see ram usage per indicator... or is it? can this be done debugging ninjatrader in visual studio?

Reply With Quote
  #7 (permalink)
 
Botts's Avatar
 Botts 
Penetanguishene, Ontario, Canada
 
Experience: None
Platform: NinjaTrader-8
Broker: NinjaTrader Brokerage, Continuum
Trading: ZB, MES, NQ, YM
Posts: 924 since Jun 2011
Thanks Given: 4,019
Thanks Received: 3,605


ycomp View Post
I think the main problem probably is that I have multiple moving average indicators on the chart.. so they use a lot of plots on each chart so I'm thinking maybe plots use a lot of memory.. and then I have many tabs of these same templates.

But I'm not totally sure as I do have other indicators such as pivots and indicators that display stats on the chart. It's a pity that it's not possible to see ram usage per indicator... or is it? can this be done debugging ninjatrader in visual studio?

In my opinion:

The simplest first step to try to reduce memory usage is to check that your indicators are set to calculate - On Bar Close

If you feel it is absolutely necessary to see what the indicator is doing on every tick then try calculate - On Price Change

Lastly, if you have added custom indicators, remove them and then add them back one chart at a time.
This last step might give you a clue as to a problem indicator if you see a spike in memory usage.

Good luck.

R.I.P. John Bottomley (Botts), 1956-2022.
Please visit this thread for more information.
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #8 (permalink)
 
xplorer's Avatar
 xplorer 
London UK
Site Moderator
 
Experience: Beginner
Platform: CQG
Broker: S5
Trading: Futures
Posts: 5,973 since Sep 2015
Thanks Given: 15,493
Thanks Received: 15,387


ycomp View Post
But I'm not totally sure as I do have other indicators such as pivots and indicators that display stats on the chart. It's a pity that it's not possible to see ram usage per indicator... or is it? can this be done debugging ninjatrader in visual studio?

I don't know the answer to your question but if it's no and you still want to troubleshoot, the quickest way is to go by elimination: say you have 20 indicators in your workspace; you create a new workspace with only half of those and see what the memory consumption is. If with those it's not an issue you move on to half of the ones you had excluded before (i.e. 5 of the ones excluded from the first test), if they are not an issue you move on to 3 of the ones you have yet to test, and so on.

This should give you a reasonably quick overview as to which ones may be causing the problem.

If you suspect multiple MAs are the issue try and work by isolating those first.

Reply With Quote
  #9 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090

1) back up ninja
2) install a brand new ninja
3) watch memory usage
4) install back just 1 indicator, go to step 3 again
repeat this slowly until you find the bad indicator.

Reply With Quote
Thanked by:
  #10 (permalink)
ycomp
Europe-ish
 
Posts: 177 since Sep 2013
Thanks Given: 12
Thanks Received: 58



cory View Post
1) back up ninja
2) install a brand new ninja
3) watch memory usage
4) install back just 1 indicator, go to step 3 again
repeat this slowly until you find the bad indicator.

I guess I'll have to to do the divide and conquer approach. 1 at a time will kill me, the problem being that increased memory usage isn't instantaneous.. it comes on over time, especially when the market is moving.

Reply With Quote




Last Updated on May 20, 2019


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts