Hi, i wanted martingale grid ea according to this and this kind ea already posted here for coding but i wanted exactly same kind of robot, check this link https://www.mql5.com/en/job/56905
Step 1: The first trade
Once you activate the EA it will trigger one buy and one sell. No stop loss and TP as defined in the inputs
Step 2: After first trade hit TP
Either the Sell or Buy will hit TP and once it hit TP profit it will also immediately opens a second trade with the same starting lot size (standard is 0.01). If TP for sell is hit, it opens a sell again. If it hits a grid line it will open a second sell trade and the TP of trade 1 will be revised to the TP of trade 2.
Step 3: After first trade hit Grid
The buy will be kept going, until it hit the second line of the grid (which can be set via the inputs).
When the buy hits the second grid line, it will open a second trade. TP of the first trade will be revised to the TP of Buy 2. If Buy 2 won't hit TP and instead reach the third grid line it will open Buy 3 and the take profit of Buy 1 and 2 will be revised to the TP of Buy 3. This will continue until it reach TP at some point, there is no Stop Loss.
When TP is hit it will all close the buy trades, because TP is the same. But at the same time it will open a new Buy trade with 0.01 lot size and it repeats again.
Lot sizes
Lot sizes is a sum of previous two lot sizes:
1. 0.01
2. 0.02
3. 0.03 (0.01+0.02)
4. 0.05 (0.02+0.03)
5. 0.08 (0.03+0.05)
Take Profits
I am not sure how the TP is calculated. This is really something that I am still trying to figure it out. I tried to figure it out with the pip distance but does not make any sense, but it seems that it does produce a standard profit:
| lot | profit |
| 0.01 | 0.7 |
| 0.02 | 1.5 |
| 0.03 | 3.09 |
| 0.05 | 6.19 |
| 0.08 | 11.15 |
| 0.13 | 19.82 |
| 0.21 | |
| 0.34 | 58.86 |
| 0.55 | 99.01 |
Grid Lines
The EA does not show the grid lines which has not been opened yet. I would like to have it as well as it gives cleaner charts.