It sounds like you may have a problem with your install or have something imported that is causing an issue, you should not be seeing high ram usage with the sample. I would suggest doing a clean install to retest and make sure the ram use is lower.
Use the following steps to do a clean user folder test.
- Exit NinjaTrader
- Open the Documents folder
- Rename the NinjaTrader 8 folder to NinjaTrader 8 Old
- Download the installer from https://account.ninjatrader.com/download
- Install the platform, this will create a new user folder.
- Open the platform and repeat the sample test
- Exit NinjaTrader
- Open the Documents folder
- Rename the NinjaTrader 8 folder to NinjaTrader 8 Clean
- Rename the NinjaTrader 8 Old folder to NinjaTrader 8
NinjaTrader looks for the folder named NinjaTrader 8 for your user data.
Regarding the indicator drawing, if it uses drawing objects in its code those still have to be created when doing a backtest even if the indicator is not being visually added. Each drawing object is similar to calling an indicator, it produces an instance which you can retrieve values from. Due to that each instance will take some resources. You can see high ram use in an optimization because of this but only when a lot of objects will be drawn.
Leave a comment: