MarketData GetBars Renko10 Backtest Error

Created at 24 Nov 2022, 08:23
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
YS

ys2310

Joined 03.12.2021

MarketData GetBars Renko10 Backtest Error
24 Nov 2022, 08:23


Hi,

 

I'm encountering backtest runtime error as following when I'm runing 1min timeframe using

MarketData.GetBars(TimeFrame.Renko10, Symbol.Name).ClosePrices.Last(4)

 Does this mean I can't backtest using Renko bar data?

 

cTrader.Automate.Host.Exceptions.AutomateException: Failed to load market data for Re10 period. It is not supported with m1 backtesting data source.
   at cTrader.Automate.Host.Runtime.Backtesting.Silent.Controllers.SmallSilentBacktestingMarketDataController.LoadChartSource(ChartSourceId chartSourceId, IBacktestingSymbolSource symbolSource)
   at cTrader.Automate.Host.Runtime.Backtesting.Silent.Controllers.SmallSilentBacktestingMarketDataController.cTrader.Automate.Host.Runtime.Backtesting.Common.Controllers.ISmallBacktestingChartSourceController.GetChartSourceData(ChartSourceId chartSourceId)
   at cTrader.Automate.Host.Runtime.Backtesting.Common.Api.Market.SmallBacktestingMarketData.ResolveChartSourceInternal(ChartSourceId chartSourceId, Nullable`1& errorCode)
   at cTrader.Automate.Host.Runtime.Backtesting.Common.Api.Market.SmallBacktestingMarketData.TryGetChartSource(ChartSourceId chartSourceId, ISmallChartSource& chartSource, Nullable`1& errorCode)
   at cTrader.Automate.Adapters.MarketApi.MarketDataAdapter.GetChartSourceAndLogFailure(TimeFrame timeFrame, String symbolName)
   at cTrader.Automate.Adapters.MarketApi.MarketDataAdapter.GetBars(TimeFrame timeFrame, String symbolName)
   at cAlgo.Robots.EURJPY.OnBar() ==========


@ys2310
Replies

PanagiotisChar
24 Nov 2022, 08:31

Hi there,

Renko bars are not supported for backtesting.

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisChar

... Deleted by UFO ...