cristian.d

DeMark Relative Retracement Levels

I have a thing for pivots and SR, so this is Tom DeMark Daily Retracements Levels pivots from DeMark Indicators book by Jason Perl .
Red lines -daily R
Green lines - daily S
Expect reversals or breaks at these points.

and some random stock, just test your instrument
Script de código abierto

Siguiendo el verdadero espíritu de TradingView, el autor de este script lo ha publicado en código abierto, para que los traders puedan entenderlo y verificarlo. ¡Un hurra por el autor! Puede utilizarlo de forma gratuita, aunque si vuelve a utilizar este código en una publicación, debe cumplir con las Normas internas. Puede agregar este script a sus favoritos y usarlo en el gráfico.

¿Quiere utilizar este script en un gráfico?
//Created by CristianD
study(title="CD DeMark Range Expansion", shorttitle="CD DeMark Range Expansion", overlay=true) 
sr = input(true, title="Show Daily Range")

range = high - low

// Daily line breaks
sopen = security(tickerid, "D", open)

a=range[1]*0.382
b=range[1]*0.618
h=sopen+a
h1=sopen+b
l=sopen-a
l1=sopen-b


// Color
hcolor=sopen != sopen[1] ? na : maroon
hcolor1=sopen != sopen[1] ? na : red
lcolor=sopen != sopen[1] ? na : green
lcolor1=sopen != sopen[1] ? na : lime


//Daily Range
highrange1 = security(tickerid, 'D', h) 
highrange2 = security(tickerid, 'D', h1) 
lowrange1 = security(tickerid, 'D', l) 
lowrange2 = security(tickerid, 'D', l1) 


offs_daily = 0
plot(sr and highrange1 ? highrange1 : na, title="Daily High1",color=hcolor, linewidth=3)
plot(sr and highrange2 ? highrange2 : na, title="Daily Daily High2", color=hcolor1, linewidth=3)
plot(sr and lowrange1 ? lowrange1 : na, title="Daily Low1",color=lcolor, linewidth=3)
plot(sr and lowrange2 ? lowrange2 : na, title="Daily Daily Low2", color=lcolor1, linewidth=3)