NinjaScript > Language Reference > Data > MaximumBarsLookBack |
![]() ![]() ![]() ![]() |
Definition Improves memory performance of objects that implement the IDataSeries interface (such as DataSeries, LongSeries, etc.). When using MaximumBarsLookBack.TwoHundredFiftySix, only the last 256 values of the series object will be stored in memory and be accessible for reference. This results in significant memory savings when using multiple series objects. In the rare case should you need older values you can use MaximumBarsLookBack.Infinite to allow full access of the series, but you will then not be able to utilize the benefits in memory optimization here. DataSeries objects that hold indicator plot values are always set to MaximumBarsLookBack.Infinite which ensures that charts will always display the entire indicator's calculated values.
Property Value MaximumBarsLookBack.Infinite MaximumBarsLookBack.TwoHundredFiftySix
Syntax MaximumBarsLookBack
Examples
|