PatternsRadar
Sign in

Max pain and OI walls

Max pain is the option strike at which the stock's option holders would collect the least if it settled there at expiry. The call and put OI walls are the strikes above and below the price carrying the most open call and put interest. All three read the nearest expiry's option chain.

Every session the exchange publishes open interest at every strike of every expiry. These fields read one expiry of that chain: the nearest one after the session, weekly for the indices and monthly for stocks. On expiry day they have already moved to the next expiry, because the one settling that afternoon says nothing about where positions sit from tomorrow. `max_pain` tries each listed strike as a settlement price and keeps the one at which calls below it and puts above it would pay out least in total. `call_oi_wall` is the strike at or above the price with the most open calls, `put_oi_wall` the strike at or below it with the most open puts, and `pcr_oi_front` is the put-call ratio on that expiry alone.

The reading rests on who is on the other side. Most open options are written by participants collecting premium, who are hedged or deep-pocketed enough to lean on the price as expiry approaches. A call wall is where writers have staked the most on the stock staying below, so it is read as resistance; a put wall is where they have staked the most on it staying above, read as support. Max pain is the price that pays the writers best as a group, and the theory is that settlement drifts toward it in expiry week. `max_pain_dist_pct` measures how far the close has run from it, positive when max pain sits above the price.

Treat all of it as a description of positioning rather than a forecast. Max pain moves every day as OI changes, and early in a monthly cycle it reflects a thin book. Walls shift when a strike is breached and writers roll, and a wall the price has crossed stops being one: the field moves to the next strike out rather than reporting a level already behind the price. A stock moving on news ignores all three. The strikes are divided by the corporate-action factor, so they sit on the same adjusted scale as `close` and the chart, and `close < put_oi_wall` means the same thing before and after a split; on the latest session they are exactly the listed strikes.

The siblings are the all-expiry put-call ratio `pcr_oi`, which `pcr_oi_front` sharpens to the series that is about to settle, and the futures fields `fut_oi` and `fut_basis_pct`. The symbol page's F&O panel draws the latest chain strike by strike, with max pain and both walls marked.

In Sift

Written as max_pain, call_oi_wall, put_oi_wall — strikes, on the same scale as `close`; max_pain_dist_pct — max pain against the close, in percent; pcr_oi_front — put OI ÷ call OI on the front expiry; F&O stocks only, so write `from fno`. A working scan — F&O stocks closing within 2% of their put OI wall, the strike below the price with the most open puts:

from fno where close < put_oi_wall * 1.02
Run

1

of the 500 most-traded NSE stocks match today, as of 20 Nov 2026

Common questions

How is max pain calculated?

For each strike on the front expiry, add up what every open option would be worth if the stock settled exactly there: each call below that strike pays its OI times the distance, and each put above it the same. Max pain is the strike where that total is smallest. Ties go to the lower strike.

Does the price really move toward max pain?

Sometimes, and mostly in the last days before expiry on liquid underlyings, where writers' hedging can pin the price near a heavy strike. Far from expiry, or on a stock with a thin option book, there is little pull. Scan `abs(max_pain_dist_pct) < 1` near expiry to find candidates rather than to assume the effect.

Why does max pain jump on expiry day?

Because the field rolls to the next expiry that session. The expiring series settles at the day's close, so its max pain would only say where the stock happened to close. The next expiry's chain is the one positions sit in from tomorrow.