historical issue with Metascore indicator

Forums ProRealTime English forum ProBuilder support historical issue with Metascore indicator

  • This topic has 1 reply, 2 voices, and was last updated 1 year ago by avatarJS.
Viewing 2 posts - 1 through 2 (of 2 total)
  • #212871

    I am getting the dreaded “This trading system was stopped because the historical data loaded was insufficient to calculate at least one indicator during the evaluation of the last candlestick.”

    I have a simple system using PRT Bands and a custom indicator I bought called Metascore. I have tried disabling everything and it seems Metascore is the issue. But I have used in before in other systems with no issue – can anyone see what is wrong? Thanks!

     

    //————————————————————————-
    // Main code : DaxSS
    //————————————————————————-
    //————————————————————————-
    // Main code : Sureshot
    //————————————————————————-
    // Definition of code parameters
    DEFPARAM Preloadbars = 10000
    DEFPARAM CumulateOrders = True // Cumulating positions deactivated

    // Conditions to enter long positions
    indicator1, ignored, ignored = CALL “MetaScore”[80, 0, 0](close)
    c1 = (indicator1 CROSSES UNDER 40)
    indicator2 = PRTBANDSDOWN
    c2 = (close >= indicator2)

    IF c1 AND c2 THEN
    BUY 1 PERPOINT AT MARKET
    ENDIF

    // Conditions to exit long positions
    indicator3, ignored, ignored = CALL “MetaScore”[80, 0, 0](close)
    c3 = (indicator3 CROSSES OVER 80)
    indicator4 = PRTBANDSUP
    c4 = (close >= indicator4)

    IF c3 AND c4 THEN
    SELL AT MARKET
    ENDIF

    // Conditions to enter short positions
    indicator4, ignored, ignored = CALL “MetaScore”[80, 0, 0](close)
    c4 = (indicator4 CROSSES OVER 80)
    //indicator5 = Average[50](close)
    //c5 = (close => indicator5)

    IF c4 THEN
    SELLSHORT 1 PERPOINT AT MARKET
    ENDIF

    // Conditions to exit short positions
    indicator6, ignored, ignored = CALL “MetaScore”[80, 0, 0](close)
    c6 = (indicator6 CROSSES UNDER 30)

    IF c6 THEN
    EXITSHORT AT MARKET
    ENDIF

    // Stops and targets
    //SET STOP pTRAILING 143
    // Stops and targets
    atr = ATR[14]
    SET STOP pLOSS (2 * atr)
    SET TARGET pPROFIT (3 * atr)

     

     

    #212898
    JS

    Hi,

    I don’t see any strange things in your code…

    Maybe it goes wrong because you call MetaScore four times (Call) …?

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

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