pivots calculation based on pine script v4 – indicator MetaTrader 5

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.Β 

    TV Pivots

    πŸ“ˆ ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks