MarcoValente

PIVOT point

317
Display pivot point with your choice resolution on your timeframe chart
Open-source script

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.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?
//@version=2
study("PIVOT",overlay=true)
tf=input(title=" Timeframe", type=resolution, defval="D")
pr=security(tickerid,tf,hlc3[1])
ph=security(tickerid,tf,high[1])
pl=security(tickerid,tf,low[1])
//Pivot calculation
b=2*pr-ph
s=2*pr-pl
r2 =pr+(ph-pl) 
s2 = pr-(ph-pl)
r3 =  s + (ph - pl)
s3 = b -(ph-pl)
hb=2*pr-2*pl+ph
lb=2*pr-2*ph+pl
//plot
plot(pr,transp=50,color=fuchsia,style=cross,title="PIVOT")
bb=plot(b,color=lime,title="s1")
ss=plot(s,color=red,title="r1")
fill(bb,ss,transp=90,color=red)
plot(r2,color=silver,transp=60,title="r2")
plot(s2,color=silver,transp=60,title="s2")
plot(hb,color=blue,transp=60,title="hight break out")
plot(lb,color=blue,transp=60,title="low break out")