BarsRequired
Previous Topic  Next Topic 

Definition

The number of bars on a chart required before the indicator plots. This is NOT the same as a minimum number of bars required to calculate the indicators values.


Property Value

A int value that represents the minimum number of bars required.


Syntax

BarsRequired


Examples

// Initialize method of a custom indicator
protected override void Initialize()
{
    Add(new Plot(Color.Orange, "SMA"));
    BarsRequired = 10; // Do not plot until the 11th bar on the chart
}