It works on minute charts but when I test on non time frame charts I get the error. The error is setting the plot
MyPlot[0] = Bollinger(2, 14).Middle[0]
The system is set to Calculate = Calculate.OnEachTick;
f (BarsInProgress == 1 && CurrentBars[1] > 20 && IsFirstTickOfBar == true)
{
MyPlot[0] = Bollinger(2, 14).Middle[0];
the 2 questions are the following
1. On Currentbar is there a way to make sure you have enough CurrentBars to run?
2. If this is set to Calculate.OnEachTick; do I get my logic at index 1 or index 0 because IsFirstTickOfBar == true;
This plot is just a line.

Comment