Indicators: pivots calculation based on pine script v4

 

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.

pivots calculation based on pine script v4

Author: Yashar Seyyedin

 
Thank you Yahar . It is most helpful to have a working example, Thanks for sharing your scripts 
 
linfo2 #:
Thank you Yahar . It is most helpful to have a working example, Thanks for sharing your scripts 
Thanks linfo2. I am happy that you found it useful.
 

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:

Code Base

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

look like envelope 

how to trade with pivot ? 

buffer with icustome

 
FERDINAND TAMPUBOLON #:

look like envelope 

how to trade with pivot ? 

buffer with icustome

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.