OPEN-SOURCE SCRIPT
Telah dikemas kini Relative Imbalance Flow Tracker

๐ 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.
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 ActivatedThe 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.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
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.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
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.