OPEN-SOURCE SCRIPT

Weather Score Badge — Lite (0–10, emoji, sparkline)

67
One-liner

Tiny last-bar badge that turns multi-TF momentum into a 0–10 “weather” score with emoji, a trend word, and a mini sparkline.

What it does

Shows a score (0–10) summarizing momentum across multiple timeframes.

Adds a friendly weather word + emoji and a trend label: Uptrend / Chop / Downtrend.

Draws a sparkline of recent scores (▁▂▃▄▅▆▇) so you can feel momentum improving or fading at a glance.

Designed as a lightweight overlay badge on the latest bar (moves as the bar updates).

How the score is built (default logic)

Weights add up and are capped at 10 (all thresholds are inputs):

RSI(1h) ≥ buy-ready → +3

RSI(4h) ≥ buy-ready → +2

Ramp A (5m) = RSI(2) − RSI(14) ≥ trigger → +2

Ramp B (15m) = RSI(2) − RSI(14) ≥ trigger → +2

MACD(1h) > signal & histogram > 0 → +1

MACD(4h) > signal & histogram > 0 → +1

Weather buckets

0–2 → Rainy 🌧️

>2–4 → Storm Clearing 🌫️

>4–6 → Clearing Skies ⛅

>6–8 → Sunny ☀️

>8–10 → Blue Sky 🌈

Trend word

Uptrend if RSI(1h) ≥ 55 and RSI(4h) ≥ 52 and MACD(1h or 4h) rising

Chop / Basing if RSI(1h) ≥ 45 or Ramp-B > 0

Downtrend otherwise

Inputs you can tweak

Timeframes for ramps (5m/15m) and higher-TF momentum (1h/4h)

RSI lengths (2 & 14), ramp triggers, “buy-ready” RSI levels

Emoji on/off, sparkline length, vertical gap from price

Alerts included

One alert per weather bucket so you can ping on Rainy, Sunny, Blue Sky, etc.

How to use

Treat it as context, not signals: it helps you quickly judge quality of wind behind your setups.

Pair with your own entry/exit rules, stops, and risk management.

On fast timeframes, watch the sparkline: a rising series of blocks often precedes better follow-through.

Notes & limitations

Uses MTF data; values finalize on higher-TF bar close. Intra-bar they can update (standard MTF behavior).

The badge shows on the latest bar only to stay unobtrusive.

Works on crypto, FX, stocks; thresholds may need tuning per asset/TF.

Credits

Built by @hacklenajee with GPT-5 Thinking (ChatGPT).
For education/research only. Not financial advice.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.