AI agent for traders
Options Expiration Risk Agent
Every position near expiry has a flagged risk and a tested action with margin effects known
What it does
As options approach expiry, the risks change quickly. A short call can be assigned early before a dividend, a position near the strike can pin, and buying power can change when a spread leg is assigned. Traders watch this by eye across many positions. This agent scans all open option positions each day in the week before expiry. It checks how close each is to the strike, whether a dividend falls before expiry, how much extrinsic value is left and what margin would be needed if assigned. It flags early assignment and pin risk, proposes to close, roll or hedge, and checks the effect of each proposal on buying power. If the proposal would breach margin, it tries another one. The trader approves every order. Edge case: an in-the-money short call with a dividend tomorrow and almost no time value is flagged first.
How it works
Follow the arrows from top to bottom. The orange dashed arrow is the loop: when a check fails, the agent goes back and tries again.
Read the steps as a list
- A trading day within five days of expiry begins
- Pull open option positions, prices and greeks
- Check the dividend calendar and time value for each position
- Flag early assignment and pin risk positions
- Rank flagged positions by risk
- Propose close, roll or hedge for each flagged position
- Calculate the margin and buying power after each proposal
- Does buying power stay above the trader's floor after the action?If not: propose a smaller size or a different strike and recheck. Back to step 5.
- Write a risk summary with the actions and costs
- Trader approves each orderThe agent waits here for your OK.
- Daily expiry risk report
How it decides
It ranks positions by how likely assignment is, based on moneyness, remaining time value and upcoming dividends, and it accepts an action only if buying power remains above the trader's floor.
- Flag a short ITM call when time value is under the dividend
- Flag pin risk when the price is within 1% of the strike on expiry week
- Rank positions with the largest assignment exposure first
- Never propose an action that breaks the buying power floor
Make it yours
Every agent is a starting point. You choose these settings for your own situation.
- Buying power floor
- Pin risk distance (default 1%)
- Days before expiry to start (default 5)
- Actions allowed (close, roll, hedge)
What keeps you in control
It always asks you first
- Every order the agent proposes
Hard limits
- Never places orders
- Shows how it estimated assignment risk
- Flags stale data before acting on it
It stops when
- Done: all flagged positions are handled by the trader
- Stop: position or price data is stale
Set it up
We guide you through the set-up, step by step
Members get the full set-up guide for this agent. No technical skills needed: you copy, paste and upload.
- One set of instructions to paste into your AI, with the clicks for ChatGPT, Claude, Microsoft 365 Copilot, Gemini and Grok
- The agent then walks you through connecting your own data, one source at a time
- A downloadable copy with the flow chart, the rules and the full guide