analyze_position
Calculate breakeven, current P&L, and hold/exit levels for an open long option position from spot, strike, entry, days to expiry, and optional VWAP/IV.
Instructions
Score an open long option position: breakeven, current P&L, hold/exit framing.
Args: symbol: underlying symbol (for reporting) right: 'C' or 'P' strike: strike held entry: entry premium per share spot: current underlying price t_days: calendar days to expiry qty_shares: total shares (qty * lot_size), e.g. 6750 for 1 CANBK lot vwap: today's VWAP if known — adds the hold-above/exit-below filter iv: annualized IV; if omitted, estimated 0.28 (India F&O typical) — pass a real one when known
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iv | No | ||
| spot | Yes | ||
| vwap | No | ||
| entry | Yes | ||
| right | Yes | ||
| strike | Yes | ||
| symbol | Yes | ||
| t_days | Yes | ||
| qty_shares | Yes |