Background en fonction des MM

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #150126 quote
    DIOSDIOS
    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_BywanJC_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
    DIOSDIOS
    Participant
    Junior

    Génial, Merci beaucoup Noobywam.

    #157239 quote
    MoufiMoufi
    Participant
    Junior

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

     

     

    Merci beaucoup !

    #157262 quote
    NicolasNicolas
    Keymaster
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 NicolasNicolas
5 years, 8 months ago.

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