I have a 2 quick questions. If the base time period for my chart feed is 1min, does the CurrentBar statement below refer to bar 60 in the 5min timeframe or bar 60 in the 1min timeframe?
Second question: Does the BarsRequired statement mean I must have a minimum of 200 1min bars as that is my base time period for my chart data feed?
protected override void Initialize()
{
CalculateOnBarClose = true;
ExitOnClose = false;
BarsRequired = 200;
Add(PeriodType.Minute, 1); // BarsInProgress index = 1
Add(PeriodType.Minute, 5); // BarsInProgress index = 2
}
protected override void OnBarUpdate()
{
if (BarsInProgress==2 && CurrentBar>60)
{

Comment