I created a simple multi-timeframe 200-SMA plot for a 60-minute dataseries. But, when I add the plot to a 1-minute chart, I noticed that the 200-SMA 60-minute plot does not agree with the actual version of the 200-SMA on the 60-minute chart. This problem appears to only happen for a 60-minute data series. I tested for a 5-minute dataseries and it seems to be working fine. Can anyone tell me what I am doing wrong?
Edit: I tested this problem using the stock "MAR" on 10/15/2010
Thanks in advance

protected override void Initialize()
{
Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Plot0"));
Add(PeriodType.Minute, 60);
Overlay = false;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Use this method for calculating your indicator values. Assign a value to each
// plot below by replacing 'Close[0]' with your own formula.
if (CurrentBar < 201 )
return;
if (BarsInProgress != 0 )
return;
Plot0.Set(SMA(BarsArray[1], 200)[0]);
}

Comment