Where am I going wrong here? If I remove these two lines of code from my script, it works.
private FibonacciPivots _weelyPivots; else if (State == State.Configure) {[INDENT]AddDataSeries(Data.BarsPeriodType.Day, 1);[/INDENT] } else if (State == State.DataLoaded) {[INDENT]_weelyPivots = FibonacciPivots(PivotRange.Weekly, HLCCalculationMode.DailyBars, 0, 0, 0, 1);[/INDENT] }
Comment