I have developed an indicator that uses Ninjascript method DrawHorizontalLine(string tag, bool autoScale, double y, Color color, DashStyle dashStyle, int width) to draw levels on the chart.
What I need to know is if there is a setting I can use so that the levels drawn on a chart are "Attached to all charts" for the same instrument automatically from withing the script.
Therefore the levels drawn by the indicator will appear on multiple charts for the same instrument. The same way as if I drew an ellipse, by hand, on one chart and set it's "Attach to all charts" using the ellipse properties dialog box.
Is there such a setting or is there a particular why of naming the "string tag" of the DrawHorizontalLine(...) Object ?
Please let me know.
Thanks in advance.
Comment