Indicators: Pivot Point with adjustable closing time

 

Pivot Point with adjustable closing time:

Pivot Point (PP) indicator for use on timeframes < D1 with adjustable preceding day close time, elimination of Sunday bars and optional display of weekly and monthly PP.

PP indicator in EURUSD h1, you can see that actual weekly PP are wrong.

Author: PomeGranate

 

Hi, I noticed only now that on above picture you can't see the preview labels. In fact it looks like this:


 

Hi PomeGranate,

Unlike MT5, MT4 arrays are in series by default, so counting down to zero should sort out the errors.

//---
   int start=0;
   if(prev_calculated==0)
      start=rates_total-1;
   else
      start=rates_total-prev_calculated;
//---
   for(int i=start;i>=0 && !IsStopped();i--)
     {


 
pipPod:

Hi Pomegranate,

Unlike MT5, MT4 arrays are in series by default, so counting down to zero should sort out the errors.


Thank you!

Changed this and also changed init(). Daily and weekly PP aren't displayed anymore, when the wrong values begin (see indicator restriction). Still has to be proof read, new version number is 2.10.

 

Update to version 2.11:

- inserted input variables for colors and line styles of different pivot levels 

- added assert for input closetime_UTC (0<closetime_UTC<23)


Please rate the indicator if you like it!

 

Version 2.20:

- the preview labels change their color as well, forgot that in last update

- midpoints are shown for the current day.


This is the ultimate version unless feedback for further improvements comes from users.

 
PomeGranate:

Hi, I noticed only now that on above picture you can't see the preview labels. In fact it looks like this:


Hi PomeGranate!

I need an indicator like this (see attached file) 

do you know how to it?

Thank you in advance

Massimo 

 
hercules:

Hi PomeGranate!

I need an indicator like this (see attached file) 

do you know how to it?

Thank you in advance

Massimo 

You're welcome! If the quest is only to visualize the change in value (in percent), that should be really easy. I have no need for such indicator at the moment, if that should change I'll let you know here in this thread. Check the freelancers' section and hire a programmer, they will do it cheaper than I could, because they code in minutes what I need hours and days for!
 

In fact it looks like this: and its just wow

pivot point daily, weekly and monthly

 
maysanheial:

In fact it looks like this: and its just wow


Thank you!

Dropping by after a few years: if I should ever alter this indicator again, take the time and add an option for dark themes (change color display to a lighter palette).

 
PomeGranate:

Dropping by after a few years: if I should ever alter this indicator again, take the time and add an option for dark themes (change color display to a lighter palette).

Done! There are two versions now, the newer is called "PP". I improved the coloring for users that prefer dark chart themes. You can now set the input variable darkmode if you're on a black background and still see all of the indicator.

I had to sacrifice the possibility to select each color individually, if you prefer that, stick to the older version or alter the code to your needs!


Do you see the difference?

Reason: