Square off part did not work

I have created one automate but it did not work. If you can see in image, unrealised amount went below -2000. Luckily I was monitoring and squared off around 2600 loss. please assist further.

Hi Nihar Shah,

I have seen your logic in the image. You need to change the logic Total P&L <= 2000 similarly Total P&L >=8000

Please change your expression as I mentioned