Trabalho concluído
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Termos de Referência
Input :
Choose The pivot point formula : Classic , Tom DeMark, Camarilla (see beloved the formulas)
Trading Method : Jump / Broke Jump : buy at the support level (S1,S2,S3 and S4 if there is S4) and Sell at resistance (R1, R2,R3 and R4 if there is any) ; Broke : Sell at support buy at resistance
Time Frame : Daily, 4Hours, 1Hour (to calculate the levels use the data for the time frame chose)
Stop loss and Stop profit in point (if 0 no stop)
Start lot size (Sls): default 0.01
Only when we use Trading Method Jump if after a lose trade (still open or close) increase the size for the next trade but only with fixed value in input…example : if I have 4 level set up enter long and if I punt in input this series : 1 ,4, 6, 10 ….if means that at S1 (fist support) I buy Sls x 1 if at the S2 the trade is lose (even if it is still open ) buy Sls x 4….if at S3 if even the second trade is lose I but Sls x 6…and so on….
Once is choose the Time Frame and the pivot point formula the EA calculate the set up entry point with the formulas belove. After that put the orders depending if the trading method is Jump or Broke whit the initial lot size and ST/SP make in input.
Pivot Point Formula:
Camarilla
R4 = C + RANGE * 1.1/2
R3 = C + RANGE * 1.1/4
R2 = C + RANGE * 1.1/6
R1 = C + RANGE * 1.1/12
PP = (HIGH + LOW + CLOSE) / 3
S1 = C - RANGE * 1.1/12
S2 = C - RANGE * 1.1/6
S3 = C - RANGE * 1.1/4
S4 = C - RANGE * 1.1/2Where R1 through R4 are Resistance levels 1 to 4, PP is the Pivot Point, S1 through S4 are support levels 1 to 4, RANGE is the High minus the Low for the given time frame (usually daily). C stands for the Closing price.
Classic
R4 = R3 + RANGE (same as: PP + RANGE * 3)
R3 = R2 + RANGE (same as: PP + RANGE * 2)
R2 = PP + RANGE
R1 = (2 * PP) - LOW
PP = (HIGH + LOW + CLOSE) / 3
S1 = (2 * PP) - HIGH
S2 = PP - RANGE
S3 = S2 - RANGE (same as: PP - RANGE * 2)
S4 = S3 - RANGE (same as: PP - RANGE * 3)
Where R1 through R4 are Resistance levels 1 to 4, PP is the Pivot Point, S1 through S4 are support levels 1 to 4, RANGE is the High minus the Low for the given time frame (usually daily).Tom DeMark
Pivot = ((2*H ) + L + C ) / 4 if close was greater than open
((2*L ) + H + C ) / 4 if close is less than open
((2*C ) + H + L ) / 4 if close unchanged
R1 = 2*Pivot - Previous day Low
R2 = Pivot + Previous day Range {H-L}
R3 = R1 + Previous Day Range
S1 = 2*Pivot - Previous day high
S2 = Pivot - Previous day Range
S3 = S1 - Previous day Range