I have an automated trading strategy which calls the Adaptive ATR-ADX Trend indicator from within the strategy code. The strategy works perfectly when backtesting however, when I go live in automatic trading it gets stopped by IG/PRT after the close of the first 5 minute candle and the attached reason for stopping pops up – server.strategy.probacktest.error.missing_data.call
I’ve increased the DEFPARAM PreLoadBars to 20,000 and still no difference. Checked that the indicator name aligns with the code etc.. Tried loads of different call variations and still no joy. Below is an example of one of the strategy indicator call code blocks which did not work! Any advice would be hugely appreciated:
Can you remove that If around the call and retry ?
I understand the logic of the If, but I have had a situation at hand where this implied the same error.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.