Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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.
Can you help answer these questions from other members on NexusFi?
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.
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.
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?
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.
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.
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.