I have added a larger time frame secondary series and simply want to draw the a line beginning with the current close of the secondary series as shown bellow:
else if (State == State.Configure)
{
// Adds a secondary bar object to the indicator
[COLOR=#3498db]AddDataSeries(BarsPeriodType.Week, 1);[/COLOR]
}
}
protected override void OnBarUpdate()
{
// ensure both series have at least one bar
if (CurrentBars[0] < 1 || CurrentBars[1] < 1)
return;
[COLOR=#3498db]Draw.Line(this, "Prwc" , false, [/COLOR][COLOR=#e74c3c]0[/COLOR][COLOR=#3498db], Closes[1][0], [/COLOR][COLOR=#e74c3c]-5[/COLOR][COLOR=#3498db], Closes[1][0], Brushes.LightGray, DashStyleHelper.Solid, 4);[/COLOR]
}
1. Is it possible to Draw.Line based on secondary bar indexes?
2. If so, what is the proper secondary bar index to use instead 0 and -5 so that the line is drawn based on the secondary bar series?
Many Thanks.

Comment