Trabalho concluído
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Termos de Referência
I have positioning code that increases the lot size for each consecutive win trade up to a maximum lot size, it then cycles back to the beginning. Unless a loss occurs within the win streak, in which case it trades a minimum lot size until a win.
For example if my maximum lot size is 4, it would trade like this:
W - W - W - W - W - W - L - L - L - W - W - W - W -W - W - W - L - L - L
1 - 2 - 3 - 4 - 1 - 2 - 3 - 1 - 1 - 1 - 2 - 3 - 4 - 1 - 2 - 3 - 4 - 1 - 1
Furthermore it has a setting called Stay_at_Max_Lots, when this is True, the money management will stay at the maximum lot setting during a winning streak until a loss occurs.
For example
W - W - W - W - W - W - L - L - L - W - W - W - W -W - W - W - L - L - L
1 - 2 - 3 - 4 - 4 - 4 - 4 - 1 - 1 - 1 - 2 - 3 - 4 - 4 - 4 - 4 - 4 - 1 - 1
This positioning method only works when you have high average consecutive wins and high z probability.
I would like someone to edit the code to add an extra True/False option called After_Max_Stay_Min, the function of this is opposite to Stay_at_Max_Lots, when the max lots size has been reached in a win streak, it only trades min lot size until after a loss.
For example:
W - W - W - W - W - W - L - L - L - W - W - W - W -W - W - W - L - L - L
1 - 2 - 3 - 4 - 1 - 1 - 1 - 1 - 1 - 1 - 2 - 3 - 4 - 1 - 1 - 1 - 1 - 1 - 1
By adding this option, it will mean if i know my average consecutive wins, i will less likely be hit with a loss at max lots size during its cycle.
ill attached the code in chat