[uxo, @envyisntfake] accurate strike -> futures conversion*It is recommended to use this on the lowest timeframe for accuracy.*
Options traders often analyze strike levels on standard ETFs and Indices (like SPY, SPX, or QQQ) to identify key market structures such as call walls, put walls, or heavy gamma levels. However, if you are executing your trades on the corresponding Futures contracts (like ES or NQ), there is a problem: Futures trade at a premium or discount to the spot/ETF market due to factors like time to expiration, dividends, and interest rates.
This indicator seamlessly bridges that gap. It calculates the dynamic ratio between an ETF/Index and its corresponding Futures contract, applies smoothing to filter out micro-volatility, and plots exact Future price targets based on your ETF options strikes.
**How it Works (The Math):**
The script calculates a continuous premium/discount ratio using the formula: `Current Futures Price / Current ETF Price`.
Because this raw ratio can fluctuate tick-by-tick and cause erratic line drawings, the indicator applies a Simple Moving Average (SMA) to the ratio (configurable via the "Level Smoothing" input). It then multiplies your desired ETF strike by this smoothed ratio to pinpoint the exact level on the Futures chart. Furthermore, it calculates an "implied" ETF price to ensure strikes generate continuously 24/5, even when the underlying ETF market is closed during overnight trading.
**Key Features & Input Guide:**
* **Asset Selection:** Choose from pre-configured popular pairings (e.g., ES/SPX, NQ/QQQ) or manually input your own ticker combination.
* **Conversion Engine:** Adjust the "Level Smoothing" (default 100). Higher timeframes may require less smoothing, while 1-minute or 5-minute charts benefit from higher smoothing to keep levels stable.
* **Strike Generation Mode:** * *Batch Text:* Paste your custom levels of interest manually (e.g., pasting levels from an external data provider). Supports optional text labels (e.g., `5100 "Call Wall"`).
* *Auto Strikes around Price:* Automatically generates a configurable number of strikes above and below the current implied price at standard intervals (e.g., every 5 points for SPX, every 1 point for SPY).
* **Batch Processing & Style:** Toggle between Drawing Lines or Boxes (zones). You can also toggle "Mitigated" extension logic, which automatically stops drawing a line to the left once historical price action has touched it, keeping your chart clean.
* **Live Price Monitor:** A customizable on-chart HUD that displays the live prices of your selected Index and ETF so you don't have to look away from your main chart.
*Credit to @envyisntfake for the foundational conversion concept that he has allowed me to use, which has been expanded here with moving average smoothing, auto-strike generation, and advanced drawing styles.*
**Disclaimer:** This is an educational tool designed to visualize price parity between related assets. It does not guarantee accurate fills or predictive levels, as the premium between cash and futures is dynamic and can compress or expand rapidly during high volatility.
Wskaźnik Pine Script®






















