What I would personally do is set up a separate project, put your values into a comment so you can see what's happening on back test. then you can see what needs to be done.
You should remove both 'if position' blocks abd substitute them by 'For each trade' blocks. The you should add a pink 'one per trade/order' block before the 'add to volume' block.