OPEN-SOURCE SCRIPT

Koala Trend Hack

183
What this indicator is
A minimal, “tweet‑faithful” trend read with just two visuals:

1. H4 EMA200 (white): the macro/regime line pulled onto any timeframe.
2. Trend Line (colored): the average of EMA‑8 and EMA‑21; its color shows the current state.

How it works (state → color)
Priority is macro first, then short‑term momentum—so it’s simple but still reactive above H4:
  • Below H4 200 → Red (Be Bearish).
  • Above H4 200 with wick into it → Yellow (Be Bullish & Pray / Watch the retest).
  • Above H4 200 and above both 8 & 21 → Green (Be Bullish).
  • Above H4 200 but below both 8 & 21 → Orange (Be Cautious).
  • If none of the above applies, it falls back to the 8/21 cluster (above both = green, below both = orange) or stays Yellow (Neutral/Watch).

How it aligns with the tweet’s 5 rules
1. Reclaim EMAs = Long → close > 8 & 21 → Green.
2. Close below EMAs = Be cautious* → close < 8 & 21 → Orange.
3. Retest of H4 EMA200 = Be bullish and pray → close > H4 and low ≤ H4 → Yellow.
4. Lose H4 EMA200 = Be bearish* → close < H4 → Red.
5. Reclaim H4 EMA200 = Be bullish again* → back above H4 (and ideally > 8/21) → Green.

How to use
Green favors longs; Orange means lighten up or wait; Yellow says “watch the level” after a retest; Red warns against longs until H4 200 is reclaimed.

Notes:
  • The H4 EMA200 is a higher‑timeframe value fetched with request.security; on sub‑H4 charts it updates during the current 4‑hour candle (responsive but can shift slightly until that candle closes).
  • EMAs 8 & 21 are used internally to color the line; they’re not plotted, keeping the chart clean.
  • What would make this better? Modify it and show me what you built!

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.