I need arrows to plot on the all the bars that occurred before a period offset from the current bar.
For example, in my screenshot I am using the built-in Regression Channel with a period of 5. What I need is for every bar prior to the regression channel plotting to show an arrow.
I have been messing with this code to plot it, but I think I am backwards here and can't quite get my head around it.
period = 5;
if((CurrentBars[0]-period)+1 > period) { Draw.ArrowUp(this, "arrow" + CurrentBar, true, 0, High[0] + 2 * TickSize, Brushes.Cyan); }
Comment