Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Those pink blocks should be separate from its current position and be on a completely separate block tree.
The problem is that you are combining two loops one after the other, the 'for each trade' and the BE block. That is why the error arises. You should substitute the BE block for another pink block (modify stops) to move the SL to BE instead.
@spyderman int is the type I would use for these.