NinjaScript > Language Reference > Strategy >

ForceMaximumBarsLookBack256

Print this Topic Previous pageReturn to chapter overviewNext page

Definition

Indicates if the strategy will force all DataSeries objects including plot series objects to hold only values for 256 bars. This property supercedes the UI property of "Maximum bars look back".

 

Property Value

This property returns true if the strategy will force a maximum of 256 bars lookback; otherwise, false. Default is set to false.

 

Syntax

ForceMaximumBarsLookBack256

 

 

Examples

protected override void Initialize()
{

    // DataSeries objects will have a maximum of 256 bars for lookback.
    ForceMaximumBarsLookBack256 = true;
}