Finally found a Pivots MT4 indicator that I liked the look of here https://forum.mql4.com/10128/page2
Wasn't able to edit line style in MetaEditor so I copied #property indicator_width1 1 and changed to #property indicator_style1 2 then added - it worked so i did that 7 times
The Support and Resistance lines looked too far apart so i searched for the formula being used
P = (LastHigh + LastLow + Close[i+1]) / 3;
R1 = (2*P) - LastLow;
S1 = (2*P) - LastHigh;
R2 = P + (LastHigh - LastLow);
S2 = P - (LastHigh - LastLow);
R3 = (2*P) + (LastHigh - (2*LastLow));
S3 = (2*P) - ((2* LastHigh) - LastLow);
H'mmm . . . I wonder who came up with that ?
So I changed to what I consider to be the recognised set-up as shown above
P = (LastHigh + LastLow + Close[i+1]) / 3;
R1 = (2*P) - LastLow;
S1 = (2*P) - LastHigh;
R2 = (P - Sup1) + Res1;
S2 = P - (Res1 - Sup1);
R3 = (P - Sup2) + Res2;
S3 = P - (Res2 - Sup2);
WARNINGS . . . so I changed to this
P = (LastHigh + LastLow + Close[i+1]) / 3;
R1 = (2*P) - LastLow;
S1 = (2*P) - LastHigh;
R2 = (P - S1) + R1;
S2 = P - (R1 - S1);
R3 = (P - S2) + R2;
S3 = P - (R2 - S2);
Rather pleased with myself
At the moment the line names are at the start of the day (who's bright idea was that ?) Trying to figure out how to get them at the current chart position
It's something to do with this
x = Period();
if(x > 240)
return(-1);
ObjectCreate . . . .
if(counted_bars < 0)
return(-1);
//---- last counted bar will be recounted
// if(counted_bars>0) counted_bars--;
limit = (Bars - counted_bars) - 1;
H'mmm . . . Out of my depth . . . is there a coder in the forum ?
.
Wasn't able to edit line style in MetaEditor so I copied #property indicator_width1 1 and changed to #property indicator_style1 2 then added - it worked so i did that 7 times
The Support and Resistance lines looked too far apart so i searched for the formula being used
P = (LastHigh + LastLow + Close[i+1]) / 3;
R1 = (2*P) - LastLow;
S1 = (2*P) - LastHigh;
R2 = P + (LastHigh - LastLow);
S2 = P - (LastHigh - LastLow);
R3 = (2*P) + (LastHigh - (2*LastLow));
S3 = (2*P) - ((2* LastHigh) - LastLow);
H'mmm . . . I wonder who came up with that ?
So I changed to what I consider to be the recognised set-up as shown above
P = (LastHigh + LastLow + Close[i+1]) / 3;
R1 = (2*P) - LastLow;
S1 = (2*P) - LastHigh;
R2 = (P - Sup1) + Res1;
S2 = P - (Res1 - Sup1);
R3 = (P - Sup2) + Res2;
S3 = P - (Res2 - Sup2);
WARNINGS . . . so I changed to this
P = (LastHigh + LastLow + Close[i+1]) / 3;
R1 = (2*P) - LastLow;
S1 = (2*P) - LastHigh;
R2 = (P - S1) + R1;
S2 = P - (R1 - S1);
R3 = (P - S2) + R2;
S3 = P - (R2 - S2);
Rather pleased with myself
At the moment the line names are at the start of the day (who's bright idea was that ?) Trying to figure out how to get them at the current chart position
It's something to do with this
x = Period();
if(x > 240)
return(-1);
ObjectCreate . . . .
if(counted_bars < 0)
return(-1);
//---- last counted bar will be recounted
// if(counted_bars>0) counted_bars--;
limit = (Bars - counted_bars) - 1;
H'mmm . . . Out of my depth . . . is there a coder in the forum ?
.