palinuro
10-30-2009, 07:43 AM
On FirstTickOfBar Plot0[0] is reset to Close[0], regardless of prior value. It continues to Plot correctly.
protected override void OnBarUpdate()
{
if(FirstTickOfBar)
{
Print("plot0 value = " + Plot0[0].ToString());
Print("delta value = " + delta.ToString());
}
//Print("plot0 value intrabar = " + Plot0[0].ToString());
delta = 5;
Plot0.Set(delta);
}
protected override void OnBarUpdate()
{
if(FirstTickOfBar)
{
Print("plot0 value = " + Plot0[0].ToString());
Print("delta value = " + delta.ToString());
}
//Print("plot0 value intrabar = " + Plot0[0].ToString());
delta = 5;
Plot0.Set(delta);
}