OPEN-SOURCE SCRIPT
更新済 ES/SPX/SPY & HSI Future/Cash Index Realtime converter + GEX

This script is designed for traders who monitor Gamma Exposure (GEX) levels on cash indices (SPX, HSI) but execute trades on their respective Futures (ES, HSI!) or ETFs (SPY).
Because of the "Basis" (the price difference caused by interest rates and dividends), cash levels and futures prices do not align perfectly. This indicator solves that problem by calculating the real-time basis and automatically mapping your GEX levels to your current chart.
🚀 Key Features
Multi-Asset Support:
Integrated Dashboard:
🛠️ How to Use
📊 Technical Details
Disclaimer: This indicator is a tool for visual mapping and data organization. It does not provide financial advice or automated signals. GEX levels must be sourced and input manually by the user.
Because of the "Basis" (the price difference caused by interest rates and dividends), cash levels and futures prices do not align perfectly. This indicator solves that problem by calculating the real-time basis and automatically mapping your GEX levels to your current chart.
🚀 Key Features
- Real-Time Basis Calculation: Automatically calculates the spread between Futures and Cash for both the S&P 500 and the Hang Seng Index.
- Dynamic GEX Mapping: Input your daily Call Wall, Put Wall, and Zero Gamma levels for the cash index, and the script will plot them at the mathematically correct price on your Futures chart.
- Dual-Price Labels: Labels display both the original Cash level and the converted "Futures Equivalent" price for instant clarity.
Multi-Asset Support:
- US Market: ES (Futures), SPX (Index), and SPY (ETF).
- HK Market: HSI (Index) and HSI! (Futures).
Integrated Dashboard:
- Showing Current Basis (+/- points).
- Estimated SPX/SPY prices during non-RTH hours.
- US20Y Yield Monitor: Includes a warning emoji if bond yields cross the 5% threshold.
- Price Mapping Table: A quick-reference table showing cash levels in 50/100 point increments and their corresponding futures prices.
🛠️ How to Use
- Inputs: Every morning, update the SPX GEX Levels or HSI GEX Levels in the settings with data from your preferred gamma provider.
- Date Monitor: Set the GEX Data Date. If you forget to update your levels the next day, a large watermark will appear to warn you that the data is expired.
- UI Customization: You can move the Info Board and Levels Table to any corner of your screen to avoid cluttering your specific chart layout.
📊 Technical Details
- Pine Script® v6: Built using the latest version for maximum performance and stability.
- Sync Logic: Uses request.security to pull data from multiple tickers simultaneously, ensuring the basis calculation is always based on the most recent available tick.
Disclaimer: This indicator is a tool for visual mapping and data organization. It does not provide financial advice or automated signals. GEX levels must be sourced and input manually by the user.
リリースノート
- Update HSI mkt close and open time- Only update prices when bar close, not every tick
リリースノート
- fix HSI syncオープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。