historical issue with Metascore indicator

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #212871 quote
    nightjimbob
    Participant
    New

    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 quote
    JS
    Participant
    Senior

    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)
  • You must be logged in to reply to this topic.

historical issue with Metascore indicator


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by JS
2 years, 10 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 04/05/2023
Status: Active
Attachments: No files
Logo Logo
Loading...