NinjaTrader.NinjaScript.DrawingTools.Line lt = Draw.Line(this, "lineGlobexHigh", false,Times[(int)sessionsType.RTH][0], globexHigh, Times[(int)sessionsType.RTH][0].AddHours(6.5), globexHigh,
GlobexHighColor , GlobexHighStyle, GlobexHighWidth, true);
lt.IsGlobalDrawingTool = true;
I get the following compile error:
"Property or indexer 'NinjaTrader.NinjaScript.DrawingTools.DrawingTool. IsGlobalDrawingTool' cannot be assigned to -- it is read only"
How do I set the IsGlobalDrawingTool property of the horizontal line? Please note that line creation code compiles without errors and code works as expected.
A second question.
A line created as follows:
NinjaTrader.NinjaScript.DrawingTools.HorizontalLin e hzl = Draw.HorizontalLine(this,"hz",2900, Brushes.Azure);
The horizontal lines does not have the 'IsGlobalDrawingTool' property.
How do you set up a global horizontal line?
Thank you for you help.
Comment