Stock mechanics: Predicting recession in S&P500, DJIA and NASDAQ