There’s a powerful force at work in markets that helps explain why stocks seem to do nothing for long periods and then suddenly lurch into activity.

Market players have noticed this force—known by some as a “gamma trap”—and have been devising tools to estimate its size and direction in order to predict how markets will move and to trade around it.

The...