Hi,
I have the following block:

I only want either buy or sell depending which condition is met first to happen once a day. I ran a backtest and noticed that the buy would happen and closed and then on the same day if the condition satisfied sell, a short trade would be opened.
Please help.