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


).
How you make your tags unique is up to you. As every bar can have only one identifying value as to its count in the chart, using CurrentBar simply guarantees that the tag will be unique, and removes the need to think and remember what tags have already been used, so as to avoid reusing them or otherwise ensure uniqueness.
Comment