A tracker for market sentiment reached “extreme greed” levels on Thursday, which has historically preceded market corrections.