US stocks typically ride midterm elections to solid gains