If i add Horizontal Line manually to a chart and
set manually its property Attach to ES 12-15 (All Charts)
the Horizontal line appears in all charts with ES .
That is fine.
But when i add the Horizontal Line manually to a chart and in my script i wrote the following :
DrawingTools.HorizontalLine MyHL;
MyHL = DrawObjects[Tag] as DrawingTools.HorizontalLine;
MyHL.IsGlobalDrawingTool = true;
MyHL.AttachedTo.AttachedToType = AttachedToType.GlobalInstrument;
i can see visually that the property of the Horizontal Line was updated to
Attach to ES 12-15 (All Charts)
but the Horizontal Line does not show in other charts
what am i missing ?
Comment