OPEN-SOURCE SCRIPT
MTF LIVE SMA Heatmap

This tool displays a multi‑timeframe heatmap for SMA 9, SMA 20, and SMA 200.
It combines trend direction, pip distance, and market structure in a compact table.
Features
Pip distance between price and SMA (automatically calculated for each symbol)
Yellow highlight when price is between SMA 9 and SMA 20
Green when price is above both SMAs
Red when price is below both SMAs
SMA‑200 heatmap based on percentage distance (with neutral zone)
Trend comparison 9 vs 20 (9>20, 20>9, or neutral)
Additional row for the current timeframe
Supports Forex, Gold, Silver, Indices, Crypto, and Energies
Pip Engine
A universal pip engine automatically detects the correct pip size for each symbol
(e.g., XAU = 0.10, XAG = 0.01, BTC = 1.0, EURUSD = 0.0001, etc.).
Use Cases
Perfect for:
Trend filtering
Multi‑TF confirmation
Scalping / intraday trading
Identifying transition zones (yellow area)
SMA cluster analysis
9to20 Pip Distance
It combines trend direction, pip distance, and market structure in a compact table.
Features
Pip distance between price and SMA (automatically calculated for each symbol)
Yellow highlight when price is between SMA 9 and SMA 20
Green when price is above both SMAs
Red when price is below both SMAs
SMA‑200 heatmap based on percentage distance (with neutral zone)
Trend comparison 9 vs 20 (9>20, 20>9, or neutral)
Additional row for the current timeframe
Supports Forex, Gold, Silver, Indices, Crypto, and Energies
Pip Engine
A universal pip engine automatically detects the correct pip size for each symbol
(e.g., XAU = 0.10, XAG = 0.01, BTC = 1.0, EURUSD = 0.0001, etc.).
Use Cases
Perfect for:
Trend filtering
Multi‑TF confirmation
Scalping / intraday trading
Identifying transition zones (yellow area)
SMA cluster analysis
9to20 Pip Distance
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。