Look for the time your broker closes, then use a timefilter. For example my broker closes at 00:00 UTC +2. I then set a timefilter in front of all trade and close conditions with settings start 00:05 and end 23:55. Now my journal does not get stuck anymore and I can backtest the strategy.
D