Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

pivots calculation based on pine script v4 - indicator for MetaTrader 5

Views:
3308
Rating:
(7)
Published:
2024.01.05 12:40
Updated:
2024.01.07 12:50
pivots.mq5 (4.29 KB) view
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. 


    MT5 Pivots

    TV Pivots


    Cosine distance and cosine similarity Cosine distance and cosine similarity

    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 Profile Volume Profile

    This is an indicator for showing volume profile on the chart, using simple calculations and very fast execution.

    Connect Disconnect Sound Alert Connect Disconnect Sound Alert

    This utility is simple example to add sound alert on connect / disconnect

    wd.Multi_ClockPrice lite! 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.