MMA CROISEMMENT ET SON

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #72904 quote
    Nicolas
    Keymaster
    Master

    Bonjour, oui on peut.

    #72906 quote
    edhitrader
    Participant
    Average

    ok super j’attends votre code dans ce cas je vous laisse le temps rien ne presse

    merci Mr Nicolas

    #72912 quote
    Nicolas
    Keymaster
    Master

    ok, j’ai compris 😐

    En cherchant un peu sur le site, j’ai trouvé un screener: https://www.prorealcode.com/prorealtime-market-screeners/zerolag-moving-average-cross-screener/

    Facile de le transformer en indicateur !

    #72918 quote
    Alai-n
    Participant
    Veteran

    ok, j’ai compris 😐

    :):):)

    //ZeroLag Fast MA:
    PeriodF = 7
    DataF = Close
    lagF = ROUND((PeriodF-1)/2)
    dF = (DataF+(DataF-DataF[lagF]))
    F = exponentialaverage[periodF](dF)
     
    //ZeroLag Slow MA:
    PeriodS = 21
    DataS = Close
    lagS = ROUND((PeriodS-1)/2)
    dS = (DataS+(DataS-DataS[lagS]))
    S = exponentialaverage[periodS](dS)
    
     
    c1 = F crosses over S
    c2 = F crosses under S
    
    atr=averagetruerange[14]
    if c1 then
    drawarrowup(barindex,low-atr/2) coloured(0,200,0)
    endif
    if c2 then
    drawarrowdown(barindex,high+atr/2) coloured(200,0,0)
    endif
     
    RETURN c1 or c2
    

     

    Nicolas thanked this post
    #72920 quote
    edhitrader
    Participant
    Average

    Merci super

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

MMA CROISEMMENT ET SON


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
edhitrader @edhitrader Participant
Summary

This topic contains 19 replies,
has 3 voices, and was last updated by edhitrader
7 years, 8 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 06/06/2018
Status: Active
Attachments: 1 files
Logo Logo
Loading...