Create a search criteria that limits the search to market conditions, such as when the SPX is up for the day or the MTI is up, etc.
Allow a search criteria that finds candidates only when certain market conditions are met. For example, one could require that the SPX be higher than the open or the day before ... or that the MTI have risen or be higher or lower than some number. Obviously, it might help to have several different choices for such criteria (whether it be the SPX, MTI, BSR, etc.).