4 posizioni massime in intraday

Forums ProRealTime forum Italiano Supporto ProOrder 4 posizioni massime in intraday

  • This topic has 0 replies, 1 voice, and was last updated 6 years ago by avatarCarl.
Viewing 1 post (of 1 total)
  • #46034

    Di seguito è riportata una richiesta inviata a ProRealTime:

    Buongiorno, ho un altro quesito.
    Mi servirebbe il codice che apra un numero di posizioni intraday non cumulative (cioè non quando è già aperta una posizione).

    Per esempio voglio aprire solo 4 posizioni in intraday, ma solo dopo che sia chiusa quella precedente. Quando raggiunto il n° 4 posizioni avute il sistema si sospende fino al giorno successivo.

    Per esempio,

    entrata=close>highest[10](high)[1]
    uscita=close<lowest[5](low)[1]

    if not longonmarket and entrata then
    buy 1 shares at market

    if longonmarket and uscita then
    sell at market

    Mi servirebbe il codice che dica al sistema di aprire e chiudere un massimo di 4 trades intraday, uno successivo l’altro.

    grazie mille e buona giornata.

    E una proposta per una risposta:

     

    1 user thanked author for this post.
Viewing 1 post (of 1 total)

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