PROTECTED SOURCE SCRIPT
ETF→Symbol GEX & IM Mapper (EN)

ETF→Symbol GEX & IM Mapper (EN) — Overview
🔎 Purpose
This indicator lets you paste a levels block (compact or long) with GEX walls, IM range, HVL and BS levels, then maps ETF-based prices to the current symbol using a live/fixed ratio (Diff). It draws lines and labels (color-coded), adds an optional HVL fill (green above / red below), and shows an InfoBox with Basis (CT/BW), optional VIX term structure, and an Auto GEX sign.
🧠 Why it’s useful
Quickly project SPY/QQQ/IWM/DIA levels onto futures, single stocks, or other symbols.
Keep levels consistent intraday with 09:30 NY rebase or manual rebase.
Visual context: Call/Put walls, IM range (+optional SDV bands), HVL, and BS levels, all in one view.
Key Features
ETF→Symbol mapping with live or frozen Diff (rebase at 09:30 NY or manual).
Two input formats:
Compact: price,name[,lX] separated by ;
Long: natural language tokens separated by ,
GEX walls (L1 highlighted; extra GEX above/below price auto-colored).
IM range (Low/High) with optional SDV ±1/2/3σ bands.
HVL line + conditional fill (green/red) anchored to IM or GEX L1 (auto mode included).
BS levels from block (count configurable).
InfoBox: Basis (CT/BW), VIX state (Contango/Backwardation/Flat), GEX sign (Auto/Manual).
Labels: choose position, offsets, and text size.
Inputs You’ll Use Most
Data source
Use COMPACT block instead of LONG (toggle)
Block format: Auto / Long / Compact
Block text: paste your block (long or compact)
Block levels are in ETF (convert with Diff) (toggle)
Prefer 0DTE variants (toggle)
Extra GEX per side (besides L1)
Mapping / Rebase
Anchor: Rebase 09:30 NY / Manual rebase
Rebase now (+1 to execute)
Use ETF open (manual) and ETF open (manual, today)
Drift alert & threshold
Lines / Labels
Line length by: Bars / Days / Full
Label position: Left / Center / Right
Label offsets: bars / days
Label text size: Tiny / Small / Normal / Large / Huge
Styles
Colors, line widths, and styles for GEX / IM / HVL / SDV / BS
Environment
Basis (CT/BW) on/off, VIX on/off (VIX vs. VIX3M), GEX sign (Auto/Manual), InfoBox on/off
How to Use
Select ETF (SPY/QQQ/IWM/DIA) that corresponds to the levels you paste.
Paste your levels block (Compact or Long).
If your block prices are in the ETF, enable “Block levels are in ETF (convert with Diff)”.
Choose Rebase mode:
Rebase 09:30 NY: freezes Diff at RTH open.
Manual rebase: increment “Rebase now” to capture current Diff.
Tweak line span, label size/position, colors, SDV bands, HVL fill, etc.
(Optional) Enable VIX state and GEX sign = Auto to infer regime from VIX term/Basis/HVL.
Compact Block — Format & Example
Format:
Each item: price,name[,lX]
Separate items with ;
Optional width tag: l1 / l2 / l3 (L1 is thickest)
Names you can use:
Call Wall, Put Wall, HVL, IM, GEX N, BS N
Examples of name variants recognized: Call Wall, Put Wall, HVL, IM, GEX 1, BS 3
Example (Compact):
455.0,Call Wall,l1; 448.0,Put Wall,l1; 451.2,HVL;
450.0,IM; 452.5,IM;
456.5,GEX 2; 447.2,GEX 3;
449.0,BS 1; 453.0,BS 2
Tip: If the Compact block is in ETF prices, toggle Block levels are in ETF (convert with Diff).
Long Block — Tokens & Example
Guidelines:
Separate tokens with ,.
The parser looks for keywords (EN/ES) and grabs the last number in that token.
Recognized tokens (English & Spanish):
Call Wall (L1): "call wall …", "call resistance …", "resistencia call …"
Put Wall (L1): "put wall …", "soporte put …"
0DTE variants: add "0dte" (e.g., "call wall 0dte 456"). If Prefer 0DTE is ON, 0DTE overrides standard.
HVL: "hvl …"
IM range: "1d min …", "1 d min …", "1d max …", "1 d max …"
GEX N: "gex N …"
BS N: "bs N …"
Example (Long):
Call Wall 0DTE 455, Put Wall 0DTE 448, HVL 451.2,
1d min 450, 1d max 452.5,
GEX 2 456.5, GEX 3 447.2,
BS 1 449, BS 2 453
Note: If your Long block is in ETF prices, enable Block levels are in ETF (convert with Diff).
Visual Conventions
Call Wall (L1): green line; Put Wall (L1): red line.
Extra GEX (above/below): auto-colored by side of current price; first extra = L2 (thicker), then L3.
IM Low / High: blue lines (with optional SDV bands).
HVL: blue line + fill (green above / red below) clipped to IM or GEX L1 span (per setting).
BS: gray lines.
Tips & Notes
Use Drift Alert to know when to rebase (e.g., after large intraday divergence).
Auto GEX sign can be based on VIX term (VIX3M vs VIX), Basis (CT/BW), or Price vs HVL.
Label text size controls label readability; adjust offsets to avoid overlaps.
If nothing draws, verify:
You pasted some block.
Block levels are in ETF toggle matches your block.
Token names match the formats above (case-insensitive).
Disclaimer
This is an educational tool for visualization. It does not constitute financial advice. Always do your own research and manage risk.
🔎 Purpose
This indicator lets you paste a levels block (compact or long) with GEX walls, IM range, HVL and BS levels, then maps ETF-based prices to the current symbol using a live/fixed ratio (Diff). It draws lines and labels (color-coded), adds an optional HVL fill (green above / red below), and shows an InfoBox with Basis (CT/BW), optional VIX term structure, and an Auto GEX sign.
🧠 Why it’s useful
Quickly project SPY/QQQ/IWM/DIA levels onto futures, single stocks, or other symbols.
Keep levels consistent intraday with 09:30 NY rebase or manual rebase.
Visual context: Call/Put walls, IM range (+optional SDV bands), HVL, and BS levels, all in one view.
Key Features
ETF→Symbol mapping with live or frozen Diff (rebase at 09:30 NY or manual).
Two input formats:
Compact: price,name[,lX] separated by ;
Long: natural language tokens separated by ,
GEX walls (L1 highlighted; extra GEX above/below price auto-colored).
IM range (Low/High) with optional SDV ±1/2/3σ bands.
HVL line + conditional fill (green/red) anchored to IM or GEX L1 (auto mode included).
BS levels from block (count configurable).
InfoBox: Basis (CT/BW), VIX state (Contango/Backwardation/Flat), GEX sign (Auto/Manual).
Labels: choose position, offsets, and text size.
Inputs You’ll Use Most
Data source
Use COMPACT block instead of LONG (toggle)
Block format: Auto / Long / Compact
Block text: paste your block (long or compact)
Block levels are in ETF (convert with Diff) (toggle)
Prefer 0DTE variants (toggle)
Extra GEX per side (besides L1)
Mapping / Rebase
Anchor: Rebase 09:30 NY / Manual rebase
Rebase now (+1 to execute)
Use ETF open (manual) and ETF open (manual, today)
Drift alert & threshold
Lines / Labels
Line length by: Bars / Days / Full
Label position: Left / Center / Right
Label offsets: bars / days
Label text size: Tiny / Small / Normal / Large / Huge
Styles
Colors, line widths, and styles for GEX / IM / HVL / SDV / BS
Environment
Basis (CT/BW) on/off, VIX on/off (VIX vs. VIX3M), GEX sign (Auto/Manual), InfoBox on/off
How to Use
Select ETF (SPY/QQQ/IWM/DIA) that corresponds to the levels you paste.
Paste your levels block (Compact or Long).
If your block prices are in the ETF, enable “Block levels are in ETF (convert with Diff)”.
Choose Rebase mode:
Rebase 09:30 NY: freezes Diff at RTH open.
Manual rebase: increment “Rebase now” to capture current Diff.
Tweak line span, label size/position, colors, SDV bands, HVL fill, etc.
(Optional) Enable VIX state and GEX sign = Auto to infer regime from VIX term/Basis/HVL.
Compact Block — Format & Example
Format:
Each item: price,name[,lX]
Separate items with ;
Optional width tag: l1 / l2 / l3 (L1 is thickest)
Names you can use:
Call Wall, Put Wall, HVL, IM, GEX N, BS N
Examples of name variants recognized: Call Wall, Put Wall, HVL, IM, GEX 1, BS 3
Example (Compact):
455.0,Call Wall,l1; 448.0,Put Wall,l1; 451.2,HVL;
450.0,IM; 452.5,IM;
456.5,GEX 2; 447.2,GEX 3;
449.0,BS 1; 453.0,BS 2
Tip: If the Compact block is in ETF prices, toggle Block levels are in ETF (convert with Diff).
Long Block — Tokens & Example
Guidelines:
Separate tokens with ,.
The parser looks for keywords (EN/ES) and grabs the last number in that token.
Recognized tokens (English & Spanish):
Call Wall (L1): "call wall …", "call resistance …", "resistencia call …"
Put Wall (L1): "put wall …", "soporte put …"
0DTE variants: add "0dte" (e.g., "call wall 0dte 456"). If Prefer 0DTE is ON, 0DTE overrides standard.
HVL: "hvl …"
IM range: "1d min …", "1 d min …", "1d max …", "1 d max …"
GEX N: "gex N …"
BS N: "bs N …"
Example (Long):
Call Wall 0DTE 455, Put Wall 0DTE 448, HVL 451.2,
1d min 450, 1d max 452.5,
GEX 2 456.5, GEX 3 447.2,
BS 1 449, BS 2 453
Note: If your Long block is in ETF prices, enable Block levels are in ETF (convert with Diff).
Visual Conventions
Call Wall (L1): green line; Put Wall (L1): red line.
Extra GEX (above/below): auto-colored by side of current price; first extra = L2 (thicker), then L3.
IM Low / High: blue lines (with optional SDV bands).
HVL: blue line + fill (green above / red below) clipped to IM or GEX L1 span (per setting).
BS: gray lines.
Tips & Notes
Use Drift Alert to know when to rebase (e.g., after large intraday divergence).
Auto GEX sign can be based on VIX term (VIX3M vs VIX), Basis (CT/BW), or Price vs HVL.
Label text size controls label readability; adjust offsets to avoid overlaps.
If nothing draws, verify:
You pasted some block.
Block levels are in ETF toggle matches your block.
Token names match the formats above (case-insensitive).
Disclaimer
This is an educational tool for visualization. It does not constitute financial advice. Always do your own research and manage risk.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.