Gentilmente, volevo chiedere se esiste o può essere fatto, un indicatore che mi evidenzi la candela che fa un crossover rispetto la SMA 30, con il corpo della candela che passa oltre la SMA di almeno il 60%.
Se possibile, sarebbe gradito un diverso colore in caso di crossover Long (colore giallo) e Short (colore arancione ) .
c1=close crosses over Average[30](close)
c2=close>=(0.6*c1) + c1
c3=close crosses under Average[30](close)
c4=close<=c3-(0.6*c3)
if c1 and c2 then
DRAWCANDLE(open, high, low, close)coloured(255,255,0)
endif
if c3 and c4 then
DRAWCANDLE(open, high, low, close)coloured(255,165,0)
endif
return
SMA=Average[30](close)
c1=close crosses over SMA
c2=close>=SMA+(0.6*SMA)
c3=close crosses under SMA
c4=close<SMA-(0.6*SMA)
if c1 and c2 then
DRAWCANDLE(open, high, low, close)coloured(255,255,0)
endif
if c3 and c4 then
DRAWCANDLE(open, high, low, close)coloured(255,165,0)
endif
return
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue