The market’s resilience this year, which has pushed it to a series of records and extended its five-year bull run, is driven by investors’ optimism over the growth of the US economy and record corporate earnings. That helped the market overcome its latest dip, on July 17th, when a passenger jet was shot down in eastern Ukraine and Israel invaded the Gaza Strip, raising investor worries that conflicts around the world could escalate and destabilize financial markets.

As they have all year, investors responded by using it as an opportunity to buy stocks. In fact, they have ‘‘bought on the dip’’ consistently for three years, keeping the market’s slips from becoming slides. Stock pullbacks since 2011 have been rare and relatively small, and none have become severe enough to qualify as a correction, Wall Street parlance for a fall of 10 percent or more from a peak.

The lack of a correction for such a long period is unusual, because the Standard & Poor’s 500 index experiences such a decline on average every 18 months, according to S&P Capital IQ research.

Many investors say that the uninterrupted rally is justified by the outlook for stocks. Central banks worldwide have policies in place aimed at stimulating economic growth, and US corporate profits continue to rise, even in the first quarter, when the economy contracted.

That has driven the S&P 500 up 7 percent this year, not including reinvested dividends, adding to a 30 percent surge in 2013.

In the United States, the Federal Reserve has held short-term interest rates at close to zero for almost five years, and has bought $3 trillion of bonds to hold down long-term rates. The Fed has been winding down its stimulus, but a rate increase is not expected until at least 2015.