Bar0 -> Bar 1
Bar0 -> Bar 2
Bar0 -> Bar 3
I thought by setting the period of the LinRegSlope to the number of the CurrenBar, I'd get this behavior..
protected override void OnBarUpdate() { if (CurrentBar < 3) return; //Add your custom indicator logic here. double value = LinRegSlope(CurrentBar)[0]; Slope[0] = value; Print("The current slope value is " + value.ToString()); // this just prints 0 }
Comment