Job finished
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Specification
Pivot formula = HLC/3 based on yesterday (daily) price
Resis 4 OR Supp 4 = Pivot -+ Yesterday (daily) range * 1.618
Resis 5 OR Supp 5 = Pivot -+ Yesterday (daily) range * 2.618
(Note: the lines above needed to plot out using horizontal line)
If there is no trade opening = reset and re-calculate for new day (in MT5)
If there is trade on going, do not reset until the last closed trade is a winning trade.
Add a button (close trade & reset button) at the bottom left so we can manually close the trade or reset the robot pivot calculation whenever needed. (Note: This feature must able to use in backtesting)
Input
Lot = 0.1 lots (Default)
TP = 20% of Daily ATR (14)
SL = 800 points
Lot multiplier = 2 (if trade hit SL, open again and multiply the lot size until the last trade is a winning trade)
(Note: Do not put pending order for next entry, only re-enter if the previous trade that recently close is losing trade)
For 1st trade the TP is 20% of Daily ATR(14) based on shift 1, SL is just fixe 800 points on the other side.
For 2nd, 3rd trade that open using Lot multiplier, the TP always same as the 1st trade, SL is just fixe 800 points on the other side.
After TPSL set, we still can manually adjust the TP&SL.
Optional: Add Breakeven and Trailing Stop based on point feature.
(PS: Need to be able to use in any market, including forex EURUSD, GBPUSD... gold XAUUSD... etc.)
Source code is needed