An interesting anomaly in adding a multi-time frame instrument using the standard
Add("^SP500",PeriodType.Minute,5);
Add("^SP500",PeriodType.Minute, Period);
where "Period" is defined in the variables region as "private int Period = 5;
if (FirstTickOfBar)
{
if(BarsInProgress >= 0 && BarsInProgress <= 3)
{
Print (BarsInProgress + " - " + Time.ToString()
}
else
{
Print("Unexpected value for BarsInProgress: " + BarsInProgress);
}
}
Regards
Shannon

Comment