OPEN-SOURCE SCRIPT
Telah dikemas kini

Relative Imbalance Flow Tracker

493
๐Ÿš€ RIFT: Relative Imbalance Flow Tracker
A totally unique RSI envelope system that uses dual moving averages and color-coded dominance to show potential reversal zones before they happen. No standard Bollinger Bands. No gray confusion. Just clean, smart, visual logic.

๐Ÿง  How It Works
RSI is calculated and optionally smoothed (RMA/EMA/SMA/WMA).

Two RSI-based MAs are plotted:
- Fast MA (e.g. 16) = reactive
- Slow MA (e.g. 32) = steady

Each MA gets its own envelope based on a % distance.

If fast envelope dominates (outside the slow one), it lights up. Otherwise, they fade and cancel each other visually.

๐ŸŽจ Color Logic
๐Ÿ”ด Upper Band (Red) = Overbought danger zone
When fast upper > slow upper, it's a warning flare.

๐ŸŸข Lower Band (Green) = Oversold bounce zone
When fast lower < slow lower, bulls may step in.

๐ŸŸ  RSI Line Orange = Mixed signals
RSI is between the two MAsโ€”no one's in control.

๐ŸŸข - RSI Line Green = RSI > both MAs = strong momentum

๐Ÿ”ด- RSI Line Red = RSI < both MAs = bearish pressure

๐Ÿ” How to Read It
- Red Band + Green RSI = uptrend stalling
- Green Band + Red RSI = selloff slowing
- No Fill = Envelopes overlapping, no edge
- RSI flips from green/red to orange = tug-of-war

โš™๏ธ Why Itโ€™s Useful
- Gives early reversal clues before RSI tags extreme levels.
- Filters out fakeouts by showing when RSI canโ€™t reach the โ€œtarget zone.โ€
- Dynamic: adapts with trend strength and volatility via envelope width.
- Fully customizable: lengths, smoothing, envelope %, colors, fills.

๐Ÿ’ก Quick Visual Tips
๐Ÿ”ด - Red Band visible but RSI stalls? = Likely reversal.
๐ŸŸข - Green Band shows up and RSI flips green? = Go time.
๐ŸŸ  - RSI turns orange + no fills? = Sit out or scalp light.
Nota Keluaran
๐Ÿ”ฅ RIFT Update: Tri-Layer Envelope Logic Activated
The Relative Imbalance Flow Tracker (RIFT) just got a serious brain transplant.

๐Ÿง  Whatโ€™s New
โž• Added MA96 + Envelope Layer:
- A third moving average (MA96) and its own envelope have been added to the RSI space.
- Now RIFT tracks short-term (MA16), medium-term (MA32), and long-term (MA96) flow dynamicsโ€”layered and color-coded.

๐ŸŽจ Triple Envelope Cancellation Logic:
- Only the dominant envelope remains visible.
- The script checks if an envelope (e.g. MA16 upper band) is higher than the other two. If not, it fades to nothing.
- This avoids clutter and highlights the real-time momentum driverโ€”whichever envelope is in control.

๐Ÿ” Envelope Colors Now Represent Relative Strength Zones:
๐Ÿ”ด - Upper envelopes still warn of potential overbought reversal.
๐ŸŸข - Lower envelopes show possible oversold exhaustion.

MA96 flips the script: if RSI canโ€™t tag the outermost band, the moveโ€™s probably cooked.

๐Ÿ“ Optional MA Types for All Layers:

- Each MA (16, 32, 96) can now be toggled between SMA and WMA for tailored responsiveness.

๐ŸŽ› Visual Tweaks:
- Transparency logic reworked to reflect true envelope dominance.
- MA96 line color defaults to aqua for long-term clarity.
- Envelope linewidths adjusted to prioritize mid/long-term flow visually.

๐Ÿงฌ Why This Matters
This turns RIFT into more than an RSI toolโ€”itโ€™s now a layered volatility displacement engine that:
- Dynamically shows which trend tier is active (short, mid, or long)
- Fades inactive zones to prevent visual clutter
- Adds confluence and context to RSI direction without relying on price

No more guessing if RSI is โ€œjust tapping 70.โ€ You now see exactly which envelope itโ€™s respecting, and when the short-term noise is getting steamrolled by long-term flow.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.