EA forward to test next day

 
It's possible programatically foward to the next day on backtest ? I'm runing a backtest and I would like close a day when my EA identify some event.
 
Of course, you simply code the EA so that when a certain event occurs, it stops trading until the following day.
Reason: