Thank you Yahar . It is most helpful to have a working example, Thanks for sharing your scripts
Looks great!
Can you make a mt4 version please?
Michael Yu #: Looks great! Can you make a mt4 version please?
Thanks Michael. I did it:
pivots calculation based on pine script v4
Yashar Seyyedin, 2024.01.07 12:47
This is the exact conversion of pivotshigh and pivotslow functions from pine script v4 as an mql4 indicator.

pivots calculation based on pine script v4
- www.mql5.com
This is the exact conversion of pivotshigh and pivotslow functions from pine script v4 as an mql4 indicator.
It looks like an envelope but you should consider that each piece of line is being plotted after a considerable amount of bars being confirmed ==> Making it badly lagging.
It is just intended to be a conversion from standard libraries of pine script and nothing more.
Thanks. Very useful code.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
pivots calculation based on pine script v4:
This is the exact conversion of pivotshigh and pivotslow functions from pine script v4 as an mql5 indicator.
Author: Yashar Seyyedin