Non riesco a capire perché l’errore

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #253180 quote
    Damien00121Damien00121
    Participant
    New

    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.

    errore_prt.png errore_prt.png
    #253182 quote
    JSJS
    Participant
    Master

    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”…

    robertogozzi and Iván González thanked this post
    #253193 quote
    Damien00121Damien00121
    Participant
    New

    Grazie js

    Risolto.

    JS thanked this post
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

From idea to ProBuilder code in seconds.

Your coding copilot for ProRealTime™. Ask in plain English — get clean, ready-to-paste indicators, screeners and systems.

Available in 7 languages
Try ProRealAI

Non riesco a capire perché l’errore


Supporto Piattaforma: Grafici, Dati e Broker

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Damien00121Damien00121
10 months, 2 weeks ago.

Topic Details
Forum: Supporto Piattaforma: Grafici, Dati e Broker
Language: Italian
Started: 11/01/2025
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...