You need to use these blocks on the 'On trade Tab':
0_1580239057370_00.png
Please notice that these blocks are to be executed for all trades except the first one. Yo can add a variable identifying the first trade in order to use it as a condition between these two blocks for example.