Background en fonction des MM

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #150126 quote
    DIOS
    Participant
    Junior

    Bonjour,

    Comment faire un arrière fond vert quand MM20>MM50 et rouge quand MM20<MM50

    Merci pour vos retours.

    #150129 quote
    JC_Bywan
    Moderator
    Master

    Bonjour,

    Pour faire un arrière fond vert quand MM20>MM50 et rouge quand MM20<MM50 :

    t=200// faire varier la transparence t de 0 (invisible) à 255 (opaque)
    
    mm20= Average[20](close)
    mm50= Average[50](close)
    if mm20>mm50 then
     BACKGROUNDCOLOR(0,255,0,t)
    elsif mm20<mm50 then
     BACKGROUNDCOLOR(255,0,0,t)
    endif
    
    return
    #150131 quote
    DIOS
    Participant
    Junior

    Génial, Merci beaucoup Noobywam.

    #157239 quote
    Moufi
    Participant
    Junior

    Bonjours petite question par quoi dois-je remplacé Average pour utilisé les EMA à la place?

     

     

    Merci beaucoup !

    #157262 quote
    Nicolas
    Keymaster
    Master

    Au choix: exponentialaverage ou average[p,1] , voir la liste des instructions des indicateurs dans notre documentation en ligne: https://www.prorealcode.com/prorealtime-documentation/

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Background en fonction des MM


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
DIOS @dios Participant
Summary

This topic contains 4 replies,
has 4 voices, and was last updated by Nicolas
5 years, 2 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 11/11/2020
Status: Active
Attachments: No files
Logo Logo
Loading...