I have a problem with the indicator Pivots(). When I implement the code from the example to the method AddDataSeries () :
protected override void OnStateChange() { if (State == State.Configure) { // Our host needs to have this AddDataSeries included as well that Pivots indicator below has also per default in it's State.Configure // This is required since our Pivots indicator below is created in State.DataLoaded and it depends on its AddDataSeries call. AddDataSeries(BarsPeriodType.Day, 1); } else if (State == State.DataLoaded) { //In this state, we pass the 1 day series to the Pivots indicator and create its instance pivots = Pivots(BarsArray[1], PivotRange.Weekly, HLCCalculationMode.DailyBars, 0, 0, 0, 20); } }
protected override void OnStateChange() { if (State == State.Configure) { AddDataSeries(BarsPeriodType.[B][COLOR="Red"]Day[/COLOR][/B], 1); } else if (State == State.DataLoaded) { pivots = Pivots(BarsArray[1], PivotRange.[B][COLOR="Red"]Daily[/COLOR][/B], HLCCalculationMode.[B][COLOR="red"]CalcFromIntradayData[/COLOR][/B], 0, 0, 0, 20); } }
What should I fix to make this error disappear? I need a day Pivot().
Help me!
Thanks!
Comment