SUPERTREND FLECHES HAUT – BAS

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #167701 quote
    Roland57800
    Participant
    Veteran

    Bonjour,

    J’ai un petit souci de présentation avec les flèches avec un code simple.

    Je voudrais que les flèches soit systématiquement  sous le chandelier dans le cas d’un croisement

    à la hausse de la close avec SuperTrend, et à l’inverse dans le croisement à la baisse de la close.

    dans le code ci-dessous, il y a toujours des décalages  soit  trop haut ou pas bas.

    
    
    ST = supertrend[3.0,10]
    
    
    //  CRÉATION DU SIGNAL D'ACHAT
    
    if close crosses over ST  and TRADINGTIME THEN
    DRAWARROWUP (barindex + 1,low + 5 )coloured(255,255,0)           
    endif
    
    
    //  CRÉATION DU SIGNAL DE VENTE
    
    if CLOSE crosses under ST  and TRADINGTIME THEN
    DRAWARROWDOWN (barindex + 1,high - 5.0 )coloured(255,255,0)          
    endif
    
    
    RETURN

    merci pour votre réponse

    Cordialement

    #167714 quote
    JC_Bywan
    Moderator
    Master

    Décalage horizontal supprimé, et décalage vertical Vdecale mis à 1 point/pip avec possibilité de le modifier en ligne 1 “Vdecale=…” en points/pips

    Vdecale=1//décalage vertical de 1 point/pip modifiable
    
    ST = supertrend[3.0,10]
    
    //  CRÉATION DU SIGNAL D'ACHAT
    
    if close crosses over ST  and TRADINGTIME THEN
    DRAWARROWUP (barindex, low-Vdecale*pipsize) coloured(255,255,0)           
    endif
    
    //  CRÉATION DU SIGNAL DE VENTE
    
    if CLOSE crosses under ST  and TRADINGTIME THEN
    DRAWARROWDOWN (barindex, high+Vdecale*pipsize) coloured(255,255,0)          
    endif
    
    RETURN
    #167743 quote
    Roland57800
    Participant
    Veteran

    Merci pour cette idée,

    Bonne journée

    Cordialement

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

SUPERTREND FLECHES HAUT – BAS


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
Summary

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

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