Please forgive my somewhat basic question, but when backtesting using daily bars, is there a way to place a trade at the close on the same day of the calculation using that same close?

For example, if today's close is at least 1% below yesterday's close, then buy at the close. Default is to buy at tomorrow's open which isn't what I'm trying to test.

In the real world, many brokers offer a Limit on Close (LOC) order for this exact circumstance.

Thanks.