The S&P 500 has reached a historical extreme based on a simple measure that has foretold pullbacks in the past