Join our fan page
pivots calculation based on pine script v4 - indicator for MetaTrader 5
- Views:
- 4787
- Rating:
- Published:
- 2024.01.05 12:40
- Updated:
- 2024.01.07 12:50
- Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
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.
Calculate the cosine distance and similarity between 2 vectors . The cosine distance is 1-cosine_similarity and the cosine similarity is the dot product of two vectors by their magnitudes multiplied.
Volume ProfileThis is an indicator for showing volume profile on the chart, using simple calculations and very fast execution.
This utility is simple example to add sound alert on connect / disconnect
wd.Multi_ClockPrice lite!The 'wd.Multi_ClockPrice lite!' is the lite version of 'wd.Multi_ClockPrice', providing a visual representation of server time and bid prices on the chart. It synchronizes with PC clock every seconds, allowing seamless updates even when MT5 is offline. Real-time bid prices are displayed, efficiently meeting the need for price information. Place informational labels in the specified sub-window, adjusting positions as needed.