EMA RENKO sur prix

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #232224 quote
    larouedegannlarouedegann
    Participant
    Master

    Bonjour,

    Est – il possible de créer une ema RENKO sur un graphique PRIX ?

    Et si oui quelle serait la formule.
    Merci

    #232467 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Mira ici a un exemple

    //—settings
    boxsize=10//8//100//8 //renko bricks size in points/pips
    transparency=100 //brick colours alpha
    wicksize=0 //width of wicks
    //—end of settings
    //EMA7=exponentialaverage [7](close)
    size=boxsize*pointsize
    
    once upbox = close
    once downbox = close - size
    once lowwick = close*100
    
    IF close > upbox + size THEN
    upbox = upbox + size
    downbox = downbox + size
    r=0
    g=200
    begin=barindex
    highwick=close
    wickbar=barindex-round((barindex-begin[1])/2)
    ELSIF close < downbox - size THEN
    upbox = upbox - size
    downbox = downbox - size
    r=200
    g=0
    begin=barindex
    wickbar=barindex-round((barindex-begin[1])/2)
    ENDIF
    
    //draw renko candlesticks
    drawcandle(upbox,upbox,downbox,downbox)coloured(r,g,0,min(transparency,255))
    
    Mid  = (upbox+downbox)/2
    EMA7 = ExponentialAverage[7](Mid)
    EMA20 = ExponentialAverage[20](Mid)
    EMA50 = ExponentialAverage[50](Mid)
    
    RETURN EMA7 as "EMA 7", EMA20 coloured(0,0,255) as "EMA 20", EMA50 coloured(255,0,0) as "EMA 50"
    
    #232497 quote
    larouedegannlarouedegann
    Participant
    Master

    MERCI

Viewing 3 posts - 1 through 3 (of 3 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

EMA RENKO sur prix


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
Summary

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

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