Your equity, not just closed trades, determines whether you've exceeded the daily loss limit and maximum loss limit.
If your floating loss (not closed trrades) drops your equity below the allowed limit at any point in the day, you will fail the challenge.
It doesn’t matter if you later recover the loss—the breach is recorded at the time your equity falls below the threshold.