Calculate position with P/L graph
calculate_positionEverything probability_of_profit returns, plus the profit/loss graph data the optionsprofitcalculator.com calculator shows: P/L in dollars across a grid of stock prices and dates up to the earliest expiry. Use it to chart a position or to see how profit changes over time. calculatorUrl opens the same position and graph in the calculator on optionsprofitcalculator.com.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iv30 | No | 30-day implied volatility, whole percent. Omit to use the latest. | |
| legs | Yes | ||
| symbol | No | Ticker symbol, e.g. AAPL | |
| ivChange | No | Shift all implied volatilities by this percent, e.g. -10 | |
| priceMax | No | Highest stock price on the graph (default: automatic) | |
| priceMin | No | Lowest stock price on the graph (default: automatic) | |
| underlyingPrice | No | Current stock price. Omit to use the latest quote. |