Avoiding Gap up or Gap Down conditions

How to create a condition to avoid gap up or gap down in a strategy?

@trade4lyf Check out the image below to learn how to create conditions to avoid gap up or gap down:

The conditions signify that the current day opens in the range of the previous day’s open and close, i.e., not a gap up or gap down.