hi
this afl plot cpr range of floor pivot.the formulae is in afl..But its showing syntax error..could somebody please edit it & correct it.
thanks
//@version=3
//
// Developing Central Pivot Range (CPR) Indicator for TradingView
// This script implements a developing version of Central Pivot Range described at
http://pivotboss.com/2010/05/31/a-quick-guide-to-the-pivot-range
// by Sherwin Daganato, 20171126
//
https://github.com/sherwind/pinescript-developing_cpr
//
// Inputs:
//
// Developing CPR resolution - Either D (Daily), W (Weekly), M (Monthly) or 12M (Yearly). The default value is M.
//
Study(Title="SD - Developing Central Pivot Range - Daily Weekly Monthly Yearly", shorttitle="[SD]Developing CPR", overlay=True)
res = input(Title="Developing CPR resolution", defval="M", options=["D", "W", "M", "12M"])
pivot = (High + Low + Close) / 3.0
bc = (High + Low) / 2.0
tc = (pivot - bc) + pivot
dtc = security(tickerid, res, tc, lookahead=barmerge.lookahead_on)
dpp = security(tickerid, res, pivot, lookahead=barmerge.lookahead_on)
dbc = security(tickerid, res, bc, lookahead=barmerge.lookahead_on)
Plot(dtc >= dbc ? dtc : dbc, Title="Developing TC", style=line, color=teal, linewidth=2)
Plot(dpp, Title="Developing PP", style=line, color=teal, linewidth=2)
Plot(dtc >= dbc ? dbc : dtc, Title="Developing BC", style=line, color=teal, linewidth=2;