MAX e MIN delle Candele precedenti per n Period

Forums ProRealTime forum Italiano Supporto ProOrder MAX e MIN delle Candele precedenti per n Period

  • This topic has 3 replies, 2 voices, and was last updated 1 year ago by avatarbyT77.
Viewing 4 posts - 1 through 4 (of 4 total)
  • #203805

    Buongiorno a tutti,

    Necessito del vostro aiuto per codificare una strategia.

    Vorrei identificare la chiusura massima e minima delle quattro candele precedenti, escludendo la candela [0].

    Ho provato con

    y1 = highest[4](close)

    y2 = lowest[4](close)

    Ma ovviamente mi considera anche la Candle[0]. (So benissimo che questo sia un errore)

    Vi ringrazio in anticipo

     

    #203807

    Ho corretto il codice in

    x1 = Max(Close[4],max(Close[3],Max(Close[2],close[1])))
    x2 = Min(Close[4],min(close[3],min(close[2],close[1])))

    Risolvendo così il mio errore.

    Condivido lo stesso e grazie comunque.

    Accetto volentieri altri consigli utili.

    #203815

    Le soluzioni migliori sono:

    oppure:

    oppure ancora:

     

     

    #203865

    Grazie mille per la condivisione.

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

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