Hello friends. I am a newcomer and have encountered a problem. I want to create a capital management system that has this feature.
Lot=0.1;
If the trade is successful :
Lot2=Lot+Lot
Lot3=Lot2+Lot
.
.
.
Lot8=Lot7+Lot
But if the trade fails, one lot size should be subtracted from the Lot size until we reach the initial lot size.
For example, if we fail on the seventh trade, the eighth trade will be equal to:
Lot8=Lot7-Lot
And for example, if the first trade fails, the second trade will be equal to:
Lot2=Lot1
Generally, if we win the trade, one unit should be added to our latest lot size, and if we lose the trade, one unit should be subtracted from our latest lot size.
-The next condition is that after 8 successful trades, the lot size should be reset to the initial lot size, which in my example is Lot=0.1
Please help me. I am struggling to connect the blocks in a way that will perform this task for me!