For MQL4 version please click here.
pine script v4 function I/O :
pivothigh(source, leftbars, rightbars) β series[float]
pivotlow(source, leftbars, rightbars) β series[float]
This indicator includes two simple functions to calculate theΒ pivotshigh and pivotslowΒ functions based on pine script. The functions can be used as copy and paste snippet in conversion projects from tradingview platform.
Note: The pivots indicators implemented in tradingview platform is lagging.Β