1. In a strategy, I am setting myData = new DataSeries(this,MaximumBarsLookBack.Infinite); numerous times. I am declaring myData as a DataDeries at the top of the strategy method, and setting the new myData within the strategy logic when I need to "reset" the DataSeries and start from scratch many times within the strategy loop.
This is a huge memory hog. After enough iterations, RAM is maxed out, and everything grinds to a near standstill.
Is there a better way to do this? Does setting myData = new DataSeries simply make a new DataSeries without erasing the old one?
2. Looking in the debugger a DataSeries declared in my strategy, I see references to buffers for each and every of the indicators in NT. Is NT seriously allocating memory for each indicator for each DataSeries object? Is NT calculating each indicator, regardless if I reference that indicator or not?
Is there a way I can remove all of the indicators that I do not want at the time? I tried this, but all of the default @ indicators magically reappeared. I would like to make NT as streamlined as possible. Suggestions?
Comment