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