But if history is any indication, investors should pare back their expectations for a repeat performance in 2024, when incumbent President Joe Biden runs for re-election.