Trading System Automatically Stopped

Forums ProRealTime English forum ProOrder support Trading System Automatically Stopped

Viewing 5 posts - 1 through 5 (of 5 total)
  • #251649

    Hi All,

    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:

     

    #251651

    Hi there !

    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.

    1 user thanked author for this post.
    #251671

    Thanks. Tried it and still stopped. Have tried replicating them inline but the performance is reduced.

    #251672

    OK, then try to add

    DefParams Preloadbars = 10000

    and adjust your line 15 accordingly. Thus with If again, but also try without that if. This if should actually be at the top of your code.

    If that helps, reduce the PreLoadBars till about the points that it stops working. Always keep the If in line with PreLoadBars.

    I hope this helps ! (it helped someone else)

     

    1 user thanked author for this post.
    #251718

    Many thanks. I’ll give that a go.

Viewing 5 posts - 1 through 5 (of 5 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login