supertrend cambio di colore , tetto e pavimento

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #215494 quote
    NAMBO40NAMBO40
    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
    NicolasNicolas
    Keymaster
    Legend

    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.
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 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 NicolasNicolas
3 years, 3 months ago.

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