Hi;
First you need to check the P&L of the position closed: If <0 then you move forward:
Take a calculation block and drag the position amount used in it and multiply it then use the same position amount variable in the result so that it will be used in the next flow.
Make sure this calculation block is executed only one time otherwise you'll find yourself with a huge positions
Cheers