I am developing a multi-time frame strategy and i need to draw a line when the user clicks at a specific location on the chart. My strategy detects the mouseclick event and try to draw a line using this command:
Draw.Line(NinjaScriptBase owner, string tag, bool isAutoScale, int startBarsAgo, double startY, int endBarsAgo, double endY, Brush brush, DashStyleHelper dashStyle, int width)
My question is this:
In a multiframe scenario, how can i tell the command Draw.Line() these two variables startBarsAgo and endBarsAgo should target the primary time frame or (BarsArray[0])?
The primary time frame is 1 minute and the secondary time frame is 15 ticks. For example if startBarsAgo = 10, i mean 10 bars ago on the primary time frame not 10 bars ago on the secondary time frame. So far, i have not been able to target the primary time frame in my mouseclick event.
What would you suggest ?
Comment