If I want to add, for example, resistance or support level on M15 timeframe and see it on M1 timeframe, manually I do next:
1. Add a new drawing object on M15
2. Change the option "Properties > General > Attach to" from "CL 03-22 15 Minute" to "CL 03-22 (All charts)"
3. Now I can see this added object on any timeframe for CL 03-22, for example
But, if I add a new Draw.Ray() programmatically on M15 timeframe, how can I change "Attach to" property to see I programmatically added Draw.Ray() on all timeframes?
I add a new ray like this:
NinjaTrader.NinjaScript.DrawingTools.Ray ray; ray = Draw.Ray(this,"level_ray_"+ Time[0], false, 1, levelPrice, 0, levelPrice, Brushes.Green, DashStyleHelper.Solid, 4);
ray.AttachedTo.AttachedToType = AttachedToType.GlobalInstrument
Comment