supertrend cambio di colore , tetto e pavimento

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #215494 quote
    NAMBO40
    Participant
    New

    Buongiorno ho bisogno se e `possibile  di un  supertrend che mi indichi  il cambio di colore con una freccia sulla candela. Inoltre anche una freccia quando la candela  tocca il supertrend ma chiude sotto o sopra  l indicatore senza che questo cambi colore. Grazie mille.

    #215506 quote
    Nicolas
    Keymaster
    Master

    Ecco di seguito il codice che traccia le frecce verdi e rosse quando il prezzo ha incrociato o rimbalzato sul SuperTrend:

    st=Supertrend[3,10]
    
    if close crosses over st or (low<st and close>st) then 
    drawarrowup(barindex,low) coloured("green")
    endif 
    
    if close crosses under st or (high>st and close<st) then
    drawarrowdown(barindex,low) coloured("red")
    endif
    
    return st
    NAMBO40 thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

supertrend cambio di colore , tetto e pavimento


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
NAMBO40 @nambo40 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
2 years, 9 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 05/31/2023
Status: Active
Attachments: No files
Logo Logo
Loading...