Closes below 20 day moving average past 10 days, within 3-5%

I'm trying to figure out how to scan for stocks that are below the 20 day moving average (20dma). Below 20dma for the past 10 trading days, and only 2-5% below the 20 dma.

Answers