alawadi

Pivot Range Pivot Boss Monthly by Abdulla

31
Pivot Range Pivot Boss Monthly by Abdulla
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?
//Created by Abdulla
study(title="Pivot Range", shorttitle="A_PivotR", overlay=true) 
sd = input(true, title="Show Monthly Pivots?")

//Pivot Range Calculations - Mark Fisher
pivot = (high + low + close ) / 3.0 
bc = (high + low ) / 2.0 
tc = (pivot - bc) + pivot

//Monthly Pivot Range 
mtime_pivot = security(tickerid, 'M', pivot[1]) 
mtime_bc = security(tickerid, 'M', bc[1]) 
mtime_tc = security(tickerid, 'M', tc[1]) 

offs_monthly = 0 
plot(sd and mtime_pivot ? mtime_pivot : na, title="Monthly Pivot",style=circles, color=fuchsia,linewidth=3) 
plot(sd and mtime_bc ? mtime_bc : na, title="Monthly BC",style=circles, color=blue,linewidth=3)
plot(sd and mtime_tc ? mtime_tc : na, title="Monthly TC",style=circles, color=blue,linewidth=3)