For example I have a rectangle being drawn in every current bar, let's say a 5min DataSeries. I am only interested in the current bar's rectangle. Thus my tag name for drawing the rectangle does not include ... "+CurrentBar".
I have an extra bool which when switched on shows all the past bars' rectangles with "mytag + CurrentBar". But I do not have it On during normal live operation.
How does this affect memory usage? Does it keep creating and storing these past rectangles so they are available when I want to see them, or does it only create them when I want to see them.
Should I get rid of this bool altogether and then add "if (Historical) return;" in the OnBarUpdate section. Or should/could I use MaximumBarsLookBack.TwoHundredFiftySix here to make a difference in memory savings?
And is there something within NT7 that shows memory usage? I know of the two SDF files in the db folder of NT. As of today NinjaTrader.Old has 19,016KB; NinjaTrader has 14,768KB. What do these numbers mean? Are they "normal"? Is there a size which can cause slower performance?
I would appreciate if someone could shed some light for me on these things.
sandman
Comment