AddPlot(Brushes.Black, "MAColor0");
AddPlot(Brushes.Black, "MAColor1");
else if (State == State.Configure)
{
AddDataSeries(Data.BarsPeriodType.Day, 1);
}
}
protected override void OnBarUpdate()
{
if(BehindBars == true)
{
// Make sure our object plots behind the chart bars
SetZOrder(-1);
}
else if(BehindBars == false)
{
SetZOrder(BarsAdj);
}
if(CurrentBars[0] < BarsRequiredToPlot || CurrentBars[1] < BarsRequiredToPlot)
return;
double ATRMulti = ATR(BarsArray[1],ATR_Period)[0] * 2;
MAColor0[0] = High[0] + ATRMulti;
MAColor1[0] = Math.Abs(Low[0] - ATRMulti);
}

Comment