I'm trying to use 2 dataseries, one of them is UniRenko, but when I use this condition on my entry setup:
&& (BarsSinceExitExecution() > 1 || BarsSinceExitExecution() == -1)
I'm getting the following error:
Strategy 'XXXX': Error on calling 'OnBarUpdate' method on bar 253: Strategy 'XXXX/-1': You must use the overload that has a 'BarsInProgress' parameter when calling the BarsSinceExitExecution() method in the context of a multi-time frame and instrument strategy.
I asume that BarsInProgress == 0 and BarsInProgress == 1 belongs to the primary data series, which is the UniRenko one.
Added like this:
AddDataSeries(Instrument, new BarsPeriod { BarsPeriodType = (BarsPeriodType)2018, BaseBarsPeriodValue = 14, Value = 2, Value2 = 32 });
AddDataSeries(Instrument, Data.BarsPeriodType.Minute, 1, Data.MarketDataType.Last);
I don't know how to solve this problem.
Thank you in advance.
Comment