Colore candele in base al trend

Forums ProRealTime forum Italiano Supporto ProBuilder Colore candele in base al trend

  • This topic has 6 replies, 2 voices, and was last updated 2 days ago by avatarJS.
Viewing 7 posts - 1 through 7 (of 7 total)
  • #250652

    Buonasera, è possibile colorare le candele del grafico in base ad un trend come potrebbe essere un semplice incrocio di due medie mobili? Candele per es. sempre verdi fintanto che la mm a 20 periodi sta sopra la mm a 50 e rosse viceversa? Che comandi devo usare? Grazie.

    #250653
    JS

    Ciao,

    Prova questi…

    1 user thanked author for this post.
    #250655

    Grazie.

    1 user thanked author for this post.
    avatar JS
    #250658

    Scusami un’ultima cosa, volessi farlo con due coppie di mm (quindi 4) anzichè due soltanto, come verrebbe implementato il codice? Esempio: colorare le candele del grafico verdi fintanto che (per es.) la mm a 5 e la mm a 10 periodi sono tutte e due sopra le mm a 30 e 35  e rosse viceversa?  Grazie infinite.

    #250659
    JS

    No problema… 🙂

     

    2 users thanked author for this post.
    #250663

    Ottimo, ma esiste anche la possibilità poi non disturbo veramente più, che si possa avere un codice dove le candele restano in trend (cioè per es. sempre colorate di verde) anche quando solo 1 condizione su x condizioni resta in piedi. Mi spiego meglio: trend che resta al rialzo (quindi candele verdi) quando la candela chiude sopra anche solo una delle per es. 4 mm prese in considerazione. Esplicito ulteriormente: Il trend deve rimanere rialzista fintanto che la chiusura della candela resta sopra anche ad una sola delle mm (a 5 o a 10 o a 30 o a 35 periodi),  basta che resti anche sopra una mm soltanto delle 4 che la candela deve restare verde, per diventare rossa serve che la chiusura sia inferiore a tutte e 4 le mm.

    #250664
    JS

    Esatto, puoi programmare tutte le combinazioni usando le “istruzioni condizionali”…

     

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

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