thank you for your reply. The lines are plotted correctly with
DrawHorizontalLine("E" + CurrentBar, true, Position.AvgPrice - 2*TickSize, Color.Cyan, DashStyle.Solid,2);
and should be removed with
if(Position.MarketPosition == MarketPosition.Flat)
{RemoveDrawObject("E");}
What is wrong with this?
Thanks
Tony
Comment