OPEN-SOURCE SCRIPT
Supertrend Alignment Score — MTF Stack (v6)

Supertrend Alignment Score — MTF Stack (v6)
Aggregates up to 7 Supertrends across custom timeframes, weights them, and converts the stack into a single 0–100 alignment score (50 = neutral). Includes faint MTF ST lines, GO/NO-GO bar paints, a per-TF mini table, a live score badge, and “All TFs Up/Down” stamps. Four alert conditions included.
How it works
Pulls Supertrend from up to 7 selectable TFs (e.g., 5/15/30/60/120/240/D).
For each TF it computes:
dir = ST direction (+1 bull, −1 bear)
prox = (close − ST) / ATR (distance in ATRs)
Per-TF score = dir * (0.7 + 0.3 * clamp01(dir*prox)) * 10 → −10…+10
Scores are weighted by your TF weights (1–5), summed, then normalized to 0…100.
All TFs Up/Down triggers when every enabled TF agrees.
Visuals
Optional faint ST lines per TF (color-coded by direction).
Bar paints on GO/NO-GO thresholds (defaults: GO ≥ 70, NO-GO ≤ 30).
Badge showing live composite % and stack state.
Mini table listing each TF’s score % and note (↑/↓ plus ATR proximity).
Inputs
Supertrend: Factor & ATR Length
7 TF slots with enable toggles & weights
Display toggles: bar paints, badge, table, ST lines, line opacity
GO / NO-GO thresholds (editable)
Alerts
GO (score ≥ threshold)
NO-GO (score ≤ threshold)
ALL TFs UP
ALL TFs DOWN
(Also posts a bar-close alert message with the current %.)
Tips
Use a logical TF ladder (e.g., 5m/15m/30m/1h/2h/4h/1D).
Give higher TFs more weight if you’re trend-following.
Tune GO/NO-GO to your market & timeframe; 70/30 is a solid starting point.
Consider confluence with volume/structure before entries.
Notes
This is an analysis tool, not financial advice. Backtest & validate before live use.
Requires real-time data on higher TFs for timely MTF updates.
Aggregates up to 7 Supertrends across custom timeframes, weights them, and converts the stack into a single 0–100 alignment score (50 = neutral). Includes faint MTF ST lines, GO/NO-GO bar paints, a per-TF mini table, a live score badge, and “All TFs Up/Down” stamps. Four alert conditions included.
How it works
Pulls Supertrend from up to 7 selectable TFs (e.g., 5/15/30/60/120/240/D).
For each TF it computes:
dir = ST direction (+1 bull, −1 bear)
prox = (close − ST) / ATR (distance in ATRs)
Per-TF score = dir * (0.7 + 0.3 * clamp01(dir*prox)) * 10 → −10…+10
Scores are weighted by your TF weights (1–5), summed, then normalized to 0…100.
All TFs Up/Down triggers when every enabled TF agrees.
Visuals
Optional faint ST lines per TF (color-coded by direction).
Bar paints on GO/NO-GO thresholds (defaults: GO ≥ 70, NO-GO ≤ 30).
Badge showing live composite % and stack state.
Mini table listing each TF’s score % and note (↑/↓ plus ATR proximity).
Inputs
Supertrend: Factor & ATR Length
7 TF slots with enable toggles & weights
Display toggles: bar paints, badge, table, ST lines, line opacity
GO / NO-GO thresholds (editable)
Alerts
GO (score ≥ threshold)
NO-GO (score ≤ threshold)
ALL TFs UP
ALL TFs DOWN
(Also posts a bar-close alert message with the current %.)
Tips
Use a logical TF ladder (e.g., 5m/15m/30m/1h/2h/4h/1D).
Give higher TFs more weight if you’re trend-following.
Tune GO/NO-GO to your market & timeframe; 70/30 is a solid starting point.
Consider confluence with volume/structure before entries.
Notes
This is an analysis tool, not financial advice. Backtest & validate before live use.
Requires real-time data on higher TFs for timely MTF updates.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.