protectedoverridevoid Initialize()
{
Add(ParabolicSAR(0.02, 0.2, 0.02));
Add(PeriodType.Day,1);
TraceOrders = true;
CalculateOnBarClose = false;
}
///<summary>
/// Called on each bar update event (incoming tick)
///</summary>
protectedoverridevoid OnBarUpdate()
{
if (BarsInProgress == 0)
{
DrawDot("D"+CurrentBar.ToString(), 0, ParabolicSAR(BarsArray[1],0.02,0.02,0.2)[0], Color.Blue);
}
}
It draws the PSAR values for my backtest time frame - as expected - and draws a blue dot at what I would expect to be the PSAR value for the Daily time frame.
However, when I run this in the Analizer at a Day=1 time frame the blue dot and the normal PSAR do not match up. Shouldn't they - I mean they are both indicating a PSAR value for a the same single day.
Does that make sense?

Comment