OPEN-SOURCE SCRIPT
已更新 Option Scenario Grid v2 (Time Target)

Overview
Option Scenario Grid v2 is an interactive option price simulator built directly onto your underlying asset's chart. Unlike traditional option calculators that only show you prices for "today," this tool is specifically designed for forward-looking scenario planning.It answers the ultimate trader question: “How much will my option (CALL or PUT) be worth if the underlying price hits a specific level at a specific date and time in the future?”
The script is completely self-contained, utilizes a high-precision mathematical approximation of the Black-Scholes model, and is fully optimized for Pine Script v6.
Key Features
Time Target Modeling: Define the exact date and time you expect the price movement to happen. The script automatically calculates the precise theta decay up to that specific point, showing you the option's value with the remaining time-to-expiry.
Visual Scenario Grid: Plots price levels above and below the current market price using a customizable percentage step. Each level displays the theoretical option value at that exact price boundary.
Visual Timelines on Chart: Automatically draws vertical dashed lines for your Target Time (Blue) and Expiration Date (Red) so you can visually track your trade's time horizon.
Current Price Highlight: The 0% move level (current close) is highlighted with a distinct yellow line, showing what the option will be worth at your target time if the asset price remains completely flat.
How It Works
The script calculates the time remaining for the option ($T$) as the difference between the Expiry Date and your Target Time. This value is plugged into the Black-Scholes formula alongside your custom Implied Volatility (IV) and chosen Strike.
The calculation loops through each price level only on the historical last bar, ensuring maximum chart performance without lagging your interface.
Settings & Inputs
Option Type: Toggle between a CALL or PUT option.
IV %: Set the Implied Volatility of the option.
Step %: The percentage interval between each price level on the grid.
Levels Up/Down: Number of grid levels to display above and below the current price (ranges from 1 to 10).
Target Time: The exact date and time you expect the price target to be met.
Expiry: The option's contract expiration date and time.
Strike Price: Needed option Strike Price.
Option Scenario Grid v2 is an interactive option price simulator built directly onto your underlying asset's chart. Unlike traditional option calculators that only show you prices for "today," this tool is specifically designed for forward-looking scenario planning.It answers the ultimate trader question: “How much will my option (CALL or PUT) be worth if the underlying price hits a specific level at a specific date and time in the future?”
The script is completely self-contained, utilizes a high-precision mathematical approximation of the Black-Scholes model, and is fully optimized for Pine Script v6.
Key Features
Time Target Modeling: Define the exact date and time you expect the price movement to happen. The script automatically calculates the precise theta decay up to that specific point, showing you the option's value with the remaining time-to-expiry.
Visual Scenario Grid: Plots price levels above and below the current market price using a customizable percentage step. Each level displays the theoretical option value at that exact price boundary.
Visual Timelines on Chart: Automatically draws vertical dashed lines for your Target Time (Blue) and Expiration Date (Red) so you can visually track your trade's time horizon.
Current Price Highlight: The 0% move level (current close) is highlighted with a distinct yellow line, showing what the option will be worth at your target time if the asset price remains completely flat.
How It Works
The script calculates the time remaining for the option ($T$) as the difference between the Expiry Date and your Target Time. This value is plugged into the Black-Scholes formula alongside your custom Implied Volatility (IV) and chosen Strike.
The calculation loops through each price level only on the historical last bar, ensuring maximum chart performance without lagging your interface.
Settings & Inputs
Option Type: Toggle between a CALL or PUT option.
IV %: Set the Implied Volatility of the option.
Step %: The percentage interval between each price level on the grid.
Levels Up/Down: Number of grid levels to display above and below the current price (ranges from 1 to 10).
Target Time: The exact date and time you expect the price target to be met.
Expiry: The option's contract expiration date and time.
Strike Price: Needed option Strike Price.
發行說明
Small decorative interface changes發行說明
Now Price on Current price level always shows for current time, not Target Time.This makes set IV easier to make price compare with current price on the exchange.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。