EA that opens positions to 15% of account, buys microlots to maintain 15% when price moves favorably, closes when posotion reverses by 2% of initial account equity

MQL4 Converting

Job finished

Execution time 11 days
Feedback from customer
He stayed with the job until I was satisfied with the result.
Feedback from employee
Very Good Customer, Nice to talk with him, Highly Recommended Cause he know what developer want... thanks again, A+++ Grade

Specification

Once I decide on a forex pair to buy or sell based on trend analysis and find a good entry point based on price action, I will launch this advisor to purchase/sell lots, microlots, minilots etc.. until 15% of account equity has been placed in this pair. I would like two versions. One for long, one for short.

When price moves favorably, the EA will purchase another minilot as soon as enough new margin is available to maintain 15% of account invested in this pair.

If price reverses by 2% of the INITIAL account equity, all open positions will close as quickly as possible.


I had this working in MT5 on practice account ( have the script) , but am having trouble implementing it in MT4. It needs to be able to close multiple positions in FIFO order sequence, waiting for one to close before closing the next.

Responded

1
Developer 1
Rating
(390)
Projects
416
30%
Arbitration
74
19% / 72%
Overdue
52
13%
Working
2
Developer 2
Rating
(42)
Projects
47
30%
Arbitration
12
17% / 75%
Overdue
6
13%
Free
3
Developer 3
Rating
(461)
Projects
488
70%
Arbitration
6
67% / 0%
Overdue
2
0%
Free

Project information

Budget
30 - 60 USD