The Macy’s Thanksgiving Day Parade is an indelible and durable holiday tradition. But the company that has sponsored the annual parade for nearly a century is being tested like the SpongeBob balloon in a strong wind.

Battered by e-commerce competition, Macy’s sales have fallen for 11 consecutive quarters, and its stock price has plunged about 41 percent this year alone.