SUPERTREND FLECHES HAUT – BAS

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #167701 quote
    Roland57800Roland57800
    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_BywanJC_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
    Roland57800Roland57800
    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.
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

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

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