Coder un buystop ou sellstop sur une bougie qui raverse la ema7.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #260965 quote
    Géraud LaveissiereGéraud Laveissiere
    Participant
    Senior

    Bonjour j aimerais coder des signaux en plaçant un trait bleu ou jaune sur une bougie qui traverse la ema7. sur un haut , placer un trait bleu et sur un bas de cette bougie un trait jaune. avec une option d’afficher que les traits bleus si cloture >ema7 et inversement que les traits jaunes si le cours cloture <ema7 merci!

    #260971 quote
    JSJS
    Participant
    Master

    Bonjour, voulez-vous dire quelque chose comme ceci… ?


    DefParam DrawOnLastBarOnly=True
    
    
    Once Period=7
    
    
    EMA=ExponentialAverage[Period](Close)
    
    
    If (Close crosses over EMA) or (Close crosses under EMA) then
    DrawSegment(BarIndex,High,BarIndex+10,High)Coloured("Blue")
    DrawSegment(BarIndex,Low,BarIndex+10,Low)Coloured("Yellow")
    EndIf
    
    
    If Close>EMA then
    DrawSegment(BarIndex,High,BarIndex+10,High)Coloured("Blue")
    ElsIf Close<EMA then
    DrawSegment(BarIndex,Low,BarIndex+10,Low)Coloured("Yellow")
    EndIf
    
    
    Return
    
    


    Nicolas, Iván González and robertogozzi thanked this post
    Scherm­afbeelding-2026-05-11-om-14.24.33.png Scherm­afbeelding-2026-05-11-om-14.24.33.png
    #260999 quote
    Géraud LaveissiereGéraud Laveissiere
    Participant
    Senior

    Bonjour merci pour le code. L’idee est d’avoir des signaux/traits sur chaque bougie qui traverse la ema7.Comme je souhaite diffrencier ces signaux , j’aimerais aussi avoir un parametre à cocher pour les bougies qui traversent la ema7 et qui close >pour un signal buy et < pour un signal sell.

    #261000 quote
    Géraud LaveissiereGéraud Laveissiere
    Participant
    Senior

    la bougie doit toucher la ema7 pour que le signal s’affiche. et l ‘idée est de garder tous les signaux affichés pas uniquement la derniere bougie.

    #261007 quote
    JSJS
    Participant
    Master

    Salut, essaie ça…


    //DefParam DrawOnLastBarOnly=True
    
    
    Once Period=7
    
    
    EMA=ExponentialAverage[Period](Close)
    
    
    If (Close crosses over EMA) or (Close crosses under EMA) then
    DrawSegment(BarIndex,High,BarIndex+10,High)Coloured("Blue")
    DrawSegment(BarIndex,Low,BarIndex+10,Low)Coloured("Yellow")
    EndIf
    
    
    If Close>EMA then
    DrawArrowUp(BarIndex,Low)Coloured("Green")
    //DrawSegment(BarIndex,High,BarIndex+10,High)Coloured("Blue")
    ElsIf Close<EMA then
    DrawArrowDown(BarIndex,Low)Coloured("Red")
    //DrawSegment(BarIndex,Low,BarIndex+10,Low)Coloured("Yellow")
    EndIf
    
    
    Return
    
    


    robertogozzi thanked this post
    Scherm­afbeelding-2026-05-12-om-10.15.41.png Scherm­afbeelding-2026-05-12-om-10.15.41.png
    #261009 quote
    Géraud LaveissiereGéraud Laveissiere
    Participant
    Senior

    PARFAIT merci bien

    JS thanked this post
Viewing 6 posts - 1 through 6 (of 6 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

Coder un buystop ou sellstop sur une bougie qui raverse la ema7.


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by Géraud LaveissiereGéraud Laveissiere
4 months, 1 week ago.

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