Estimating Options Max Pain from Synthetic Open Interest
Summary
This indicator estimates an options max-pain level by generating strikes around the current underlying price, assigning estimated call and put open interest to each strike, and calculating aggregate option payout at candidate settlement prices. The strike with the lowest modeled payout is displayed as max pain. The script also estimates gamma exposure using a Black–Scholes gamma calculation and offers visual overlays for strike levels, a pin zone, pain heatmap, and gamma profile.
The calculations rely on user-supplied assumptions, including volatility, put-call volume ratio, average underlying volume, dealer inventory and gamma bias, and days to expiry. The displayed open interest is generated from a distance-based heuristic rather than sourced from an options chain, so the output is a model illustration, not a reading of observed positioning. The indicator provides no validation against actual options data or evidence that price converges to the modeled level; its pin-risk labels should be interpreted accordingly.
Key ideas
- The max-pain estimate selects the modeled settlement strike with the smallest combined call and put payout.
- Call and put open interest are estimated heuristically from underlying volume and distance to the current price.
- A Black–Scholes calculation supplies modeled gamma exposure for the generated strikes.
- The outputs depend on user assumptions and are not based on actual options-chain open interest.
- The document offers visual and pin-risk indicators but no evidence that price moves toward the estimate.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.