Stocks have been taking a beating over the past month — but one technical indicator suggests they could now be a buy.