protected override void OnBarUpdate()
{
DrawOnPricePanel = false;
if (dHstrUp > 0)
Draw.HorizontalLine(this, "tagdHstrUp", dHstrUp, Brushes.Red);
if (dHstrDwn < 0)
Draw.HorizontalLine(this, "tagdHstrDwn", dHstrDwn, Brushes.Green);
DrawOnPricePanel = true;
}
And meriting is fine, but when i use the indicator in a strategi and add it with
if (State == State.Configure)
{
AddChartIndicator(MyIndicator(.....));
}
those two horizontal lines start appear on the price panel only, not on the indicator's panel.....
Is it a bug in NT 8 or I'm doing something wrong.
Thank You.
Comment