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
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.