Problem with New API in Multi-Timeframe Optimization "Crashed in OnTick with NullReferenceException"

Created at 10 Feb 2020, 03:31
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!
mparama's avatar

mparama

Joined 11.10.2016

Problem with New API in Multi-Timeframe Optimization "Crashed in OnTick with NullReferenceException"
10 Feb 2020, 03:31


Dear Panagiotis

I got a problem with optimization using multi-timeframe with the new API.

Backtest is ok

Trading is ok

when I try to optimize I get  "Crashed in OnTick with NullReferenceException: Object reference not set to an instance of an object" .

I found that the problem is related to the New API with Multi-TimeFrames,

I replaced the old MarketSeries (everything was working fine) with the New API line guide (Optimization not working)

Any idea on what I'm doing wrong ?

Thanks a lot for your always kind help !!!


@mparama