PasqualeAntonino

DeMarker indicator

Dilihat 50104 kali
8023
Calculate and plot the Demarker indicator
Skrip sumber terbuka

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Ingin menggunakan skrip ini pada carta?
study("DeMarker")
per=input(title="Period",type=integer,defval=13)
demax=high>high[1] ? high-high[1] : 0   
demin=low<low[1] ? low[1]-low : 0
demax_av=sma(demax,per)
demin_av=sma(demin,per)
dmark=demax_av/(demax_av+demin_av)
h1=hline(0.3)
h2=hline(0.7)
fill(h1,h2,color=blue)
plot(dmark)