Non riesco a capire perché l’errore

Forums ProRealTime forum Italiano Supporto piattaforma ProRealTime Non riesco a capire perché l’errore

Viewing 3 posts - 1 through 3 (of 3 total)
  • #253180

    mycapital = 7000
    sl = 5
    tp = 2
    starttime = 163000
    endtime = 213000

    IF time >=starttime and time <=endtime then
    BUY 200 shares AT 20 stop
    endif

    If LongOnMarket and time =endtime then
    sell 200 shares AT 20 stop
    ENDIF

    L’errore viene segnalato sulla parola buy, come se ci fosse un endif di troppo. Sto impazzendo da ore su una stupidaggine.

    Grazie dell’ aiuto.

    #253182
    JS

    Ciao,

    Il tuo codice non ha alcun problema, ma penso che tu lo stia utilizzando sotto “Indicatori” invece che sotto “BackTesting & Trading Automatico”…

    Quindi non importare/usare il codice come “Indicatore”, ma come “Trading Automatico”…

    #253193

    Grazie js

    Risolto.

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

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