trading stopped due to defparam Preloadbars = 10000 issue

Forums ProRealTime English forum ProRealTime platform support trading stopped due to defparam Preloadbars = 10000 issue

Viewing 7 posts - 1 through 7 (of 7 total)
  • #220385

    Hello everyone.

    My code has been working fine on Demo and also yesterday on live trading. I am trying to run it on the 5 min US500 on IG platform in the UK. From today (5.9.2023) it has been stopping when used for live trading by giving the infamous ” insufficient historical data loaded to calculate at least one indicator … try DEFPARAM preloadbars = 10000″.

    I have been instructing the “DEFPARAM preloadbars = 10000” from the offset as I have run into this issue before. I am using several indicators in my code and the one with the longest period is a TEMA (540).

    I am using PRT v10.3

    Thanks in advance

    #220395

    Try putting the code for the Indicator in the strategy (and so not calling the Indicator).

    Let us know how you get on.

    1 user thanked author for this post.
    #220398

    Alternatively submit a Technical Report direct to PRT using Help > Help Center > I’m having a Technical Problem. (Help >  etc on the PRT Platform).

    Best is to submit Report as above and continue yourself also re NO Call Indicators etc.

    1 user thanked author for this post.
    #220403

    The issue lies in these two lines:

    because ProOrder has to multiply 240 periods (Ema) by 120 or 98.

    Since an EMA requires roughly twice its periods (in this case about 450 periods) for its calculations, the two multiplications return results well exceeding 10k.

    Try reducing those two lookback values or try using an IF…ENDIF to make sure trading starts AFTER 55K bars (maybe a bit less, it’s just a matter of trying different values):

    The main issue is when you launch it in autotrading… it’ll wait quite many days before the trading starts!

     

     

     

     

     

    2 users thanked author for this post.
    #220465

    I Tried this but it posted me to this forum. My PRT help centre is managed by IG. Not sure if it is the same for everyone.

    In any case I am more than happy to tap into the forum’s knowledge. Many thanks

    #220466

    Grazie Roberto

    I will give this a go. Thanks to GraHal too.

    I will keep you posted. Won’t be able to give it a go until the weekend due to work though. But thanks both

    2 users thanked author for this post.
    #221179

    The issue is now resolved after following Roberto’s advise.

    1 user thanked author for this post.
Viewing 7 posts - 1 through 7 (of 7 total)

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