Here is another example that simulates buying at the next day's open price and exiting at that day's close price.
The generated rule has similar performance to the previous example. For the history period entering (and exiting) trades from 1998-12-31 through 2020-03-16, the simulated result is...