Below is a snippet of my code. In this strategy if the trade hits stoploss it’ll re-enter in the opposite direction (max 2 trades per day). I’ve now added a trailing stop, however I still want the opposite trade to execute as long as it hasn’t hit “SET TARGET pPROFIT”. So at the moment, if it hits the trailing stop in profit nothing happens, but I want it to re-enter.