These 3 historic charts suggest stocks could have a solid finish to the year, Cramer says