OPEN-SOURCE SCRIPT
SuperTrend MTF Percentiles & Distances v2.1

🌌 SuperTrend MTF Percentiles & Distances v2.1
A multi‑timeframe market tension radar built on the SuperTrend.
🎯 1. Vision & Purpose
SuperTrend MTF Percentiles & Distances v2.1 elevates the classic SuperTrend into a statistical, multi‑dimensional market scanner.
Instead of simply telling you “trend up or trend down”, it answers a far more valuable question:
How compressed, stretched, or extreme is the price relative to the SuperTrend — and across how many timeframes simultaneously?
To achieve this, the indicator:
computes SuperTrend across 8 timeframes (1m → Monthly),
measures the signed % distance between price and ST,
converts this distance into a historical percentile (0–100),
detects rare multi‑TF alignments,
displays visual signals (emojis),
generates smart dynamic alerts.
It is a market tension radar, designed for traders who want to understand the internal structure of price, not just its direction.
📐 2. Internal Logic (clear & educational)
2.1 Multi‑Timeframe SuperTrend
The indicator computes a full SuperTrend on:
1m
15m
1h
2h
4h
Daily
Weekly
Monthly
With customizable:
MA type (EMA, SMA, HULL, T3 Tillson, etc.)
ATR period
ATR method
ATR multiplier
2.2 Signed Distance (%)
For each timeframe, it measures:
positive distance when price is above ST,
negative distance when price is below ST,
the exact amplitude in %.
These distances are then smoothed with an EMA‑20 to reveal the underlying trend of compression or expansion.
2.3 Historical Percentiles
Each distance is stored in a rolling historical array (up to 20,000 bars).
The indicator computes the percentile rank of the current distance:
5% → extreme compression
50% → neutral
95% → extreme stretch
This transforms raw distance into statistical meaning.
🎨 3. Visual Display (colors, EMAs, structure)
3.1 Timeframe Colors
Each timeframe has a dedicated color for instant recognition:
1m → white
15m → grey
1h → aqua
2h → blue
4h → purple
Daily → green
Weekly → yellow
Monthly → red
Colors are intentionally soft and semi‑transparent to avoid clutter.
3.2 EMA‑20 Trend Lines
Each TF has a bold EMA‑20 line:
more opaque,
thicker,
visually dominant.
It shows the directional bias of the percentile or distance.
3.3 Horizontal Statistical Levels
The indicator includes key percentile reference lines:
0 / 5 / 10% → compression zones
50% → median
90 / 95 / 100% → stretch zones
These levels make percentile interpretation immediate.
🔥 4. Heatmap & Summary Table
A built‑in table displays for each timeframe:
the distance %,
the percentile,
a heatmap color:
Percentile Color Meaning
≥ 80 red overextension / overheating
≤ 20 lime compression / rare zone
20–80 grey neutral
This table acts as a multi‑TF tension dashboard.
🟩🟥 5. Dynamic Chart Background (Daily pivot)
The Daily percentile is treated as the market climate indicator:
pD ≥ 50 → green background (bullish tension)
pD < 50 → red background (bearish tension)
Two micro‑signals refine this:
SupED → pD > EMA‑20 → green dot
InfED → pD < EMA‑20 → red dot
These dots mark regime shifts in Daily structure.
🧿 6. Emoji‑Based Signals (instant visual cues)
The indicator uses emojis to highlight rare multi‑TF alignments. When the following occur and does not exist in n+1:
🟢 Compression Signals
⚓ Midas → strong compression (15m → Daily)
🚢 Osimandias → extreme compression (15m → Daily)
🐋 Cyrus → long‑term compression (4h → Weekly)
🔜 Flash2 → ultra‑short‑term compression (1m → 240m)
🔴 Overextension Signals
🏸 Houston → strong stretch (15m → Daily)
🏏 Leica → extreme stretch (15m → Daily)
🛰️ Spoutnik → long‑term stretch (4h → Weekly)
Placement:
above bars for stretch signals,
below bars for compression signals,
top/bottom of chart for structural signals.
🚨 7. Dynamic Alert System (unique & intelligent)
Instead of multiple alerts, the indicator uses one unified alert that dynamically lists all active conditions.
7.1 Alert Trigger
The alert fires when ANY of the following occur and does not exist in n+1:
Midas
Osimandias
Houston
Leica
Spoutnik
Cyrus
Flash2
7.2 Dynamic Message Example
ST MTF Condition Active:
[Midas / Allbelow10 / 15→D]
[Spoutnik / Allabove90 / 240→W]
You instantly know:
which signal triggered,
whether it’s compression or stretch,
which timeframes are involved,
whether it’s short‑term or structural.
🎯 8. How to Use the Indicator
8.1 Scalping
Look for:
Flash2
Midas
Osimandias
Goal:
catch micro‑compressions before explosive moves.
8.2 Swing Trading
Focus on:
Midas / Osimandias (compression 15m→Daily)
Houston / Leica (stretch 15m→Daily)
Goal:
anticipate reversals, expansions, or trend shifts.
8.3 Macro / Position Trading
Watch:
Spoutnik (stretch 4h→Weekly)
Cyrus (compression 4h→Weekly)
Goal:
identify structural tension zones.
A multi‑timeframe market tension radar built on the SuperTrend.
🎯 1. Vision & Purpose
SuperTrend MTF Percentiles & Distances v2.1 elevates the classic SuperTrend into a statistical, multi‑dimensional market scanner.
Instead of simply telling you “trend up or trend down”, it answers a far more valuable question:
How compressed, stretched, or extreme is the price relative to the SuperTrend — and across how many timeframes simultaneously?
To achieve this, the indicator:
computes SuperTrend across 8 timeframes (1m → Monthly),
measures the signed % distance between price and ST,
converts this distance into a historical percentile (0–100),
detects rare multi‑TF alignments,
displays visual signals (emojis),
generates smart dynamic alerts.
It is a market tension radar, designed for traders who want to understand the internal structure of price, not just its direction.
📐 2. Internal Logic (clear & educational)
2.1 Multi‑Timeframe SuperTrend
The indicator computes a full SuperTrend on:
1m
15m
1h
2h
4h
Daily
Weekly
Monthly
With customizable:
MA type (EMA, SMA, HULL, T3 Tillson, etc.)
ATR period
ATR method
ATR multiplier
2.2 Signed Distance (%)
For each timeframe, it measures:
positive distance when price is above ST,
negative distance when price is below ST,
the exact amplitude in %.
These distances are then smoothed with an EMA‑20 to reveal the underlying trend of compression or expansion.
2.3 Historical Percentiles
Each distance is stored in a rolling historical array (up to 20,000 bars).
The indicator computes the percentile rank of the current distance:
5% → extreme compression
50% → neutral
95% → extreme stretch
This transforms raw distance into statistical meaning.
🎨 3. Visual Display (colors, EMAs, structure)
3.1 Timeframe Colors
Each timeframe has a dedicated color for instant recognition:
1m → white
15m → grey
1h → aqua
2h → blue
4h → purple
Daily → green
Weekly → yellow
Monthly → red
Colors are intentionally soft and semi‑transparent to avoid clutter.
3.2 EMA‑20 Trend Lines
Each TF has a bold EMA‑20 line:
more opaque,
thicker,
visually dominant.
It shows the directional bias of the percentile or distance.
3.3 Horizontal Statistical Levels
The indicator includes key percentile reference lines:
0 / 5 / 10% → compression zones
50% → median
90 / 95 / 100% → stretch zones
These levels make percentile interpretation immediate.
🔥 4. Heatmap & Summary Table
A built‑in table displays for each timeframe:
the distance %,
the percentile,
a heatmap color:
Percentile Color Meaning
≥ 80 red overextension / overheating
≤ 20 lime compression / rare zone
20–80 grey neutral
This table acts as a multi‑TF tension dashboard.
🟩🟥 5. Dynamic Chart Background (Daily pivot)
The Daily percentile is treated as the market climate indicator:
pD ≥ 50 → green background (bullish tension)
pD < 50 → red background (bearish tension)
Two micro‑signals refine this:
SupED → pD > EMA‑20 → green dot
InfED → pD < EMA‑20 → red dot
These dots mark regime shifts in Daily structure.
🧿 6. Emoji‑Based Signals (instant visual cues)
The indicator uses emojis to highlight rare multi‑TF alignments. When the following occur and does not exist in n+1:
🟢 Compression Signals
⚓ Midas → strong compression (15m → Daily)
🚢 Osimandias → extreme compression (15m → Daily)
🐋 Cyrus → long‑term compression (4h → Weekly)
🔜 Flash2 → ultra‑short‑term compression (1m → 240m)
🔴 Overextension Signals
🏸 Houston → strong stretch (15m → Daily)
🏏 Leica → extreme stretch (15m → Daily)
🛰️ Spoutnik → long‑term stretch (4h → Weekly)
Placement:
above bars for stretch signals,
below bars for compression signals,
top/bottom of chart for structural signals.
🚨 7. Dynamic Alert System (unique & intelligent)
Instead of multiple alerts, the indicator uses one unified alert that dynamically lists all active conditions.
7.1 Alert Trigger
The alert fires when ANY of the following occur and does not exist in n+1:
Midas
Osimandias
Houston
Leica
Spoutnik
Cyrus
Flash2
7.2 Dynamic Message Example
ST MTF Condition Active:
[Midas / Allbelow10 / 15→D]
[Spoutnik / Allabove90 / 240→W]
You instantly know:
which signal triggered,
whether it’s compression or stretch,
which timeframes are involved,
whether it’s short‑term or structural.
🎯 8. How to Use the Indicator
8.1 Scalping
Look for:
Flash2
Midas
Osimandias
Goal:
catch micro‑compressions before explosive moves.
8.2 Swing Trading
Focus on:
Midas / Osimandias (compression 15m→Daily)
Houston / Leica (stretch 15m→Daily)
Goal:
anticipate reversals, expansions, or trend shifts.
8.3 Macro / Position Trading
Watch:
Spoutnik (stretch 4h→Weekly)
Cyrus (compression 4h→Weekly)
Goal:
identify structural tension zones.
Open-source script
In true PulseWire spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Cette publication exprime juste mon opinion. Elle n'est pas destinée à être, et ne constitut pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by PulseWire. Read more in the Terms of Use.
Open-source script
In true PulseWire spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Cette publication exprime juste mon opinion. Elle n'est pas destinée à être, et ne constitut pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by PulseWire. Read more in the Terms of Use.
