Configurable Pivot Indicator

 

hi

I am not able to find a pivot indicator that will allow me to do what I want. I hope someone can point me in the right direction.

I wish to be able to put daily, weekly and monthly pivot points on my charts, but not have the S + R lines, or at least be able to colour them so that they are not seen and no label.

I have downloaded many indicators so far and none give me the ability of hiding the S + R lines

My broker works on NY close time so weekend candles are not an issue, but just struggling to find an indy that allows manipulation to that extent.

In the end, if I have to put the indicator on 3 times to give me daily, weekly and monthly pivots, that is fine, but I just want to be able to hide the S+R lines

regards

honkin

 

Have you looked at this one? https://www.mql5.com/en/code/9172

I recon you could edit the code and use iHigh instead of high[] to give you what pivot you wanted. You could even mod it to give you multiple time frames with iHigh - eg:

iTime(0,PERIOD_M1,i) for 1 minute or

iTime(0,PERIOD_H1,i) for 1 hour etc.

message me if you need help.

You can mod the original code like this:

int start() {
   int counted_bars=IndicatorCounted();
   int limit;
   
   if (counted_bars==0) {
       if (Period()>240) return(-1);
       ObjectCreate("Pivot",OBJ_TEXT,0,0,0);
       ObjectSetText("Pivot","                     Figurelli Pivot",10,"Arial",Green);
       //ObjectCreate("Sup1",OBJ_TEXT,0,0,0);
       //ObjectSetText("Sup1","     S1",10,"Arial",Blue);
       //ObjectCreate("Res1",OBJ_TEXT,0,0,0);
       //ObjectSetText("Res1","     R1",10,"Arial",Red);
       //ObjectCreate("Sup2",OBJ_TEXT,0,0,0);
       //ObjectSetText("Sup2","     S2",10,"Arial",Blue);
       //ObjectCreate("Res2",OBJ_TEXT,0,0,0);
       //ObjectSetText("Res2","     R2",10,"Arial",Red);
       //ObjectCreate("Sup3",OBJ_TEXT,0,0,0);
       //ObjectSetText("Sup3","     S3",10,"Arial",Blue);
       //ObjectCreate("Res3",OBJ_TEXT,0,0,0);
       //ObjectSetText("Res3","     R3",10,"Arial",Red);
   }

that will make only the pivot line show on the screen

 

You might also try this indicator.

It doesn't load weekly or monthly, but could easily be modified to do so.

It displays pivot = yesterday high + yesterday low + yesterday close + today open /4

also displays yesterday low and yesterday high

it is modified from a mtea quotes indicator

Files:
Reason: