Pivot Points Indicator

Avatar
  • updated

Pivot point indicator with an addition of 4 ways of calculating pivot points :

  • (Previous High +Previous Low + Previous Close)/3
  • (Previous High +Previous Low + Previous Close + Previous Close)/4
  • (Previous High +Previous Low + Previous Close + Open)/4
  • (Previous High +Previous Low + Open + Open)/4

Added "alternate way" of calculating pivot support and resistance lines - I found that in a lot of versions the R3 and S3 are calculated differently than the original (it effectively makes it "tighter" than the original) so I decided to enable that way too.


Original Code:

https://www.mql5.com/en/code/16702


Image 4780


Modified by me:

pivot_points.ex5
pivot_points.mq5

Close SELL in S1:

Image 4783


Close BUY in R1:

Image 4784

Image 4785

Open:

Image 4786

Close in Pivot R1:

Image 4787

Close in Pivot S1:

Image 4788

Test_v2.54_BUY_SELL_Close_R1_S1.set

Avatar
Ulises Cune

CP version >= 2.55.2 has all pivots included and much more.

Image 4925

Image 4926



Type Pivot:

Image 4927

Avatar
Ulises Cune

This is an example that closes on pivots S1 and R1

Test_v2.54_BUY_SELL_Close_R3_S3_v3.set

Avatar
Ulises Cune

Hello, I have made some changes in the indicator such as adding "Fibonacci" in the pivots. Also change the lines equal to those of the indicator "All Pivot Points"

You can choose at which price to apply, "Close", "High", "Low", etc.

Image 4877

Image 4878

By placing the Price buffer , it can be used when it crosses with the Pivot values.

Image 4879

Image 4880

If anyone finds a problem, please let me know.


Indicador MT5 Only:

pivot_points_v3.ex5

Avatar
Ulises Cune

I have updated the indicator so that when crossing through S1 or S2 or S3, it closes the Sell operation.

The same for R1, R2 or R2 close the buy operation.

Close in Pivot S3:

Image 4858

Image 4859

Indicator:

pivot_points_v2.ex5

Image 4862

Test_v2.54_BUY_SELL_Close_R3_S3_v2.set

Avatar
Ulises Cune
Quote from Jerome Powell

Ulises Thank you for that incredible contribution! I finally get to know how to work with the custom indicator. I cant thank you enough for all your threads! 

You could create a strategy and share it so we all win. 😊

Image 4829

Avatar
Quote from Jerome Powell

Ulises Thank you for that incredible contribution! I finally get to know how to work with the custom indicator. I cant thank you enough for all your threads! 

ow buy sell same direction pair ...

Avatar
Jerome Powell

Ulises Thank you for that incredible contribution! I finally get to know how to work with the custom indicator. I cant thank you enough for all your threads!