Money management function

MQL5 Scripts

Job finished

Execution time 1 day

Specification

Hi I'm looking for someone to code a money management function for my MT5 EA.

For money management. What i want is.

if  5 of last the 5 closed positions results are losses than the next position size is 1 lot

if 4 of last the 5  closed positions results are losses and 1 of them is profit than next position size is 2 lots

if 3 of last 5 closed positions losses and 2 of them profits then  size of next position is 3 lots 

if 2 of last 5 closed positions losses and 3 of them profits then size of next position isis 4 lots 

if 1 of last 5 closed position is a loss and 4 of them profits then size of next position is 5 lots

if 5 of last 5 closed positions resulted in profits then  than size of next position is 6 lots

Responded

1
Developer 1
Rating
(195)
Projects
395
28%
Arbitration
155
20% / 52%
Overdue
112
28%
Free
2
Developer 2
Rating
(617)
Projects
1427
59%
Arbitration
31
81% / 0%
Overdue
10
1%
Free
3
Developer 3
Rating
(34)
Projects
80
34%
Arbitration
13
31% / 54%
Overdue
19
24%
Free
4
Developer 4
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
5
Developer 5
Rating
(516)
Projects
784
63%
Arbitration
33
27% / 45%
Overdue
23
3%
Free
Published: 1 code

Project information

Budget
13- USD
Deadline
to 2 day(s)