TFRSI & RSI Analog Dial [CHE]  TFRSI & RSI Analog Dial    — Interactive analog visualization for TFRSI or RSI with gradient zones, radial markers, and a trailing hand pointer.
  Summary 
This indicator renders an interactive analog dial for either TFRSI or standard RSI, providing a visual gauge with gradient-filled zones for oversold, neutral, and overbought regions. The hand pointer tracks the current value, with optional trailing dots at recent positions to show momentum direction. Radial lines mark key thresholds, and a digital readout displays the exact value. This design enhances readability over linear plots by leveraging familiar clock-like intuition, reducing cognitive load during quick scans. Signals are robust due to clamping to safe bounds and mode-specific scaling, ensuring consistent display across different volatility regimes.
  Motivation: Why this design? 
Traditional linear RSI or momentum indicators often feel abstract, especially in fast-paced screening where users scan multiple assets. Sharp swings can make thresholds hard to gauge at a glance, leading to missed nuances in overbought or oversold conditions. This dial addresses that by mapping values to a curved scale with color gradients, making extremes visually pop while the hand's trail hints at recent path without cluttering the chart. The dual-mode support allows seamless switching between advanced momentum (TFRSI) and classic RSI, fitting diverse strategies without reloading scripts.
  What’s different vs. standard approaches? 
- Baseline reference: Diverges from linear plotlines like the built-in RSI oscillator, which stacks values vertically and relies on horizontal lines for thresholds.
- Architecture differences:
  - Curved projection with perspective tilt for depth illusion, using polyline arcs instead of straight plots.
  - Mode-aware clamping and scaling to handle TFRSI's extended range versus RSI's standard bounds.
  - Persistent trail array for hand history, capped at three points to avoid performance drag.
  - Gradient segmentation for smooth zone transitions, rendered via multiple thin polylines.
- Practical effect: Charts show a compact, rotatable dial that fits in pane corners, with colors intuitively signaling bias (lime for buy zones, red for sell). The trail adds qualitative flow without numerical overload, helping spot divergences faster than static bars.
  How it works (technical) 
The indicator first computes the selected metric: for TFRSI, it processes price accelerations through a multi-step filter involving differencing, exponential damping, and normalization to a centered scale; for RSI, it uses the standard gain-loss ratio over the specified period. The value is then clamped between mode-specific minimum and maximum bounds to prevent display overflow.
This clamped value drives the hand angle on a 300-degree arc, projected from a 3D-like model rotated for perspective. Arcs for zones are built as segmented polylines, with colors interpolated linearly across the gradient. Key levels are drawn as radial lines from inner to outer radius, colored by zone. The trail maintains up to three prior angles in an array, updated only on confirmed bars to avoid repainting, and rendered as sized dots fading from small to large.
Initialization seeds filter states to zero on first bar, with persistent variables holding smoothing history. Data flows from price to metric computation, clamping, angle mapping, and projection—all executed globally on the last bar for redraw efficiency.
  Parameter Guide 
Mode — Switches between TFRSI (extended momentum gauge) and RSI (classic oscillator); affects bounds, zones, and labels. Default: "TFRSI". Trade-offs: TFRSI adds sensitivity to accelerations but may amplify noise; RSI is more stable for trend confirmation.
Dial Size — Sets radius in pixels, scaling all elements proportionally. Default: 200. Bounds: 50–500. Tips: Larger for detailed views, smaller for multi-pane layouts; auto-scales hand length to match.
Dial Vertical Offset — Shifts entire dial up/down in pixels. Default: 0. Bounds: -200–200. Trade-offs: Negative pulls toward price action; positive spaces below—use to avoid overlap.
Camera Angle — Tilts view from top-down (0) to side (90) for 3D effect. Default: 45. Bounds: 0–90. Tips: Steeper angles emphasize depth but compress horizontally; flat for precision.
Resolution — Polygon sides for smooth arcs. Default: 64. Bounds: 4–64. Trade-offs: Higher reduces jaggedness but increases draw calls—balance with pane zoom.
TFRSI Hand Length — Base pointer length at 200px dial, auto-scaled. Default: 170. Bounds: 10–200. Tips: Longer for emphasis in large dials; shorter avoids edge clipping.
Show TFRSI Hand — Toggles pointer visibility. Default: true. Trade-offs: Off for clean zones only; on for value tracking.
Show Hand Trail Dots — Displays 3 fading dots at recent tips. Default: true. Trade-offs: Adds motion context but may clutter static views—disable in alerts.
TFRSI Hand Color — Pointer hue, used for trail dots too. Default: 7E57C2. Tips: Match strategy theme; gradients auto-blend to zones.
Dial Base Color — Arc outline/fill tint. Default: blue. Trade-offs: Opaque for contrast; transparent blends with background.
Neutral Color (50) — Mid-zone shade. Default: gray. Tips: Neutral tones reduce bias in balanced markets.
Oversold Color — Low-zone fill. Default: lime. Trade-offs: Bright for alerts; muted for subtlety.
Overbought Color — High-zone fill. Default: red. Trade-offs: As above—pair with hand blending.
Label Size — Text scaling for thresholds. Default: "normal". Options: tiny/small/normal/large/huge. Tips: Smaller for dense charts; larger for presentations.
Digital TFRSI Size — Readout font. Default: "large". Options: as above. Trade-offs: Balances visibility without dominating dial.
Digital Vertical Offset — Readout position shift. Default: -50. Bounds: -200–200. Tips: Negative centers above dial; adjust for multi-indicators.
TFRSI Length — Core lookback for accelerations. Default: 6. Min: 1. Trade-offs: Shorter heightens reactivity, risks whipsaws; longer smooths extremes.
TFRSI Trigger Length — Final smoothing passes. Default: 2. Min: 1. Tips: Increase for fewer false crosses; decrease for quicker pivots.
RSI Length — Period for gain-loss averaging. Default: 14. Min: 1. Trade-offs: Classic 14 balances; shorter for scalps, longer for swings.
  Reading & Interpretation 
The dial arcs sweep from overbought (right, red) through neutral (top, gray) to oversold (left, lime), with the hand pointing to the current value—clockwise for rising, counterclockwise for falling. Trail dots grow larger toward the present, colored to match hand zones, indicating recent direction without numbers. Threshold lines thicken at center (50) for quick zeroing; labels confirm levels. Digital readout below shows precise value prefixed by mode. Hand color gradients from neutral to extremes signal building pressure verbally: deepening red warns of potential pullbacks, brightening lime suggests bounces.
  Practical Workflows & Combinations 
Trend following: Enter long when hand crosses above 50 from oversold trail; confirm with higher highs in price structure. Filter shorts below 50 in downtrends using volume spikes.
Exits/Stops: Trail stops to recent dot positions in overbought; tighten on red gradients exceeding thresholds. Conservative: Exit at neutral; aggressive: Hold to extremes if trail aligns with momentum.
Multi-asset/Multi-TF: Defaults suit forex/stocks on 1H–4H; for crypto, shorten lengths by 20% for volatility. Stack with HTF security calls (e.g., daily mode on 15m chart) for confluence—watch for alignment across dials.
  Behavior, Constraints & Performance 
Closed-bar updates ensure no repainting; live bars show provisional hand/trail, confirmed on close. No security or HTF calls, so zero lookahead bias. Resources: Caps at 500 lines/labels/polylines, rebuilds only on last bar; max_bars_back=2000 handles history without lag. Known limits: Trail may stutter in flat markets; gradients approximate smooth fills via segments, visible at low resolution.
  Sensible Defaults & Quick Tuning 
Start with TFRSI mode, length=6, trigger=2 for responsive momentum on daily charts. Too choppy? Bump trigger to 4 for stability. Lagging entries? Drop length to 4, watch for overreactions. For RSI trend filter, set length=21; combine with MA cross for entries when dial nears 30/70.
  What this indicator is—and isn’t 
This is a visualization layer for momentum gauges, aiding quick bias assessment and threshold spotting. Pair it with price action, volume, and risk rules for decisions. It’s not a standalone signal generator or predictive tool—values reflect past data, prone to whipsaws in ranging conditions.
  Disclaimer 
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.  
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.  
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.  
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.  
 Best regards and happy trading  
Chervolino
Relative Strength Index (RSI)
RSI Trendline Pro - Multi Confirmation
Overview
RSI Trendline Pro is an advanced Pine Script indicator that automatically draws trendlines on the RSI (Relative Strength Index) to detect support and resistance breakouts. It generates high-quality trading signals through a multi-confirmation system.
Key Features
Auto Trendlines: Detects pivot points on RSI to create intelligent support and resistance lines
Multi-Confirmation System: Combines Volume, Stochastic RSI, ADX, and Divergence filters to reduce false signals
RSI Divergence Detection: Automatically identifies bullish/bearish divergences between price and RSI
Live Dashboard: Displays RSI value, active trendlines, ADX strength, and last signal info on a visual panel
Smart Breakout Detection: Identifies trendline breaks and generates LONG/SHORT signals
How to Use
Add to TradingView: Paste code into Pine Editor and add to chart
Configure Parameters:
RSI Length: RSI period (default: 14)
Pivot Strength: Trendline sensitivity (lower = more lines)
Filters: Enable/disable Volume, Divergence, Stoch RSI, and ADX confirmations
Follow Signals:
LONG (Green): When RSI breaks resistance upward
SHORT (Red): When RSI breaks support downward
Divergence: "D" markers indicate potential trend reversals
Alert Setup
Script offers 4 alert types:
LONG Breakout: Resistance break
SHORT Breakout: Support break
Bullish/Bearish Divergence: Divergence detection
Any Signal: Combined alert for all signals
Best Practices
Prioritize high-volume breakouts (Volume Filter enabled)
Trends are stronger when ADX > 25
Confirm divergence signals with price action
Trade when 2-3 confirmations align
🏆 AG Pro Crypto Screener & Signal Dashboard v2.7🏆 AG Pro Multi-Crypto Screener & Signal Dashboard (Completely Free)
Stop wasting your valuable time navigating dozens of charts just to find opportunities!
This completely free and professional signal dashboard scans up to 40 Crypto, Stock, or Forex assets for you from a single screen. The AG Pro Screener is designed for traders who need to make fast, informed decisions. It monitors the market 24/7, identifies 'Buy' signals based on its robust multi-filter strategy, and presents all opportunities on a professional "at-a-glance" interface.
This is not just another indicator; it's a complete Crypto Screener and Signal Panel designed for professional traders.
AG Pro Kripto Tarayıcı ve Sinyal Paneli (Multi-Crypto Screener & Signal Dashboard)
✨ Compelling Features (All 100% Free)
Advanced Dashboard Design: A best-in-class professional table with "Zebra Stripes" for easy reading, a custom-branded title bar, and a compact layout.
Multi-Symbol Scanning: Scans up to 40 different user-defined assets (Coins, Stocks, etc.) simultaneously.
Advanced Multi-Filter Strategy (All Toggleable):
Trend Filter (SMA 200): Capture only strong signals that are aligned with the main trend.
Momentum Filter (RSI): Increase your success rate by confirming signals with relative strength (e.g., RSI > 50).
Entry Signal (EMA Crossover): The core 'Buy' signal based on a fast/slow EMA cross (e.g., 20/50).
Volume Filter: Automatically filter out low-volume, illiquid, and risky assets from your signal list.
"At-a-Glance" Visual Icons: This dashboard doesn't just give signals; it shows you the quality of the signal:
Trend Column: 🔼 (Uptrend) or 🔽 (Downtrend) icons instantly show if the signal is "with the trend."
Signal Freshness Column: Special icons show how "fresh" the signal is:
🔥 (Hot): 0-3 bars ago (A new opportunity!)
❇️ (Fresh): 4-7 bars ago
⏳ (Old): 8+ bars ago (Signal may be stale)
Fully Customizable Interface:
Adjustable Text Size: Choose your own font size (Tiny, Small, Normal) to perfectly fit the table to your screen.
Selectable Timeframe: Scan your current "Chart" timeframe, or lock the panel to a specific timeframe (e.g., "4H" or "1D").
Powerful Alert Support: Set up just one single alert to receive instant notifications for all new 'Buy' signals found across all 40 assets. Perfect for strategy automation and bot setups.
⚙️ How to Use
Add this indicator (AG Pro Screener) to your chart.
Open the Settings (⚙️) panel for the script.
In the "Symbol List" section, fill the 40 empty slots with your favorite assets (e.g., BINANCE:BTCUSDT, BINANCE:ETHUSDT, NASDAQ:AAPL, etc.).
In the "Strategy Settings" section, customize your filters like EMA lengths and RSI levels to match your personal system.
Watch the dashboard scan the market for you and deliver signals in real-time!
🙏 Support & Feedback (Don't Forget to Like!)
A lot of effort went into developing this free tool. If you find it helpful, please take one second to click the Like (👍) button and Follow me for the next scripts in the "AG Pro" series.
You can leave all your suggestions and new feature requests as a comment. Happy trading!
RSI MT5-Style RSI Zones (20/30/70/80) with Signals & Alerts
Description (English first)
What it does
This script reproduces an MT5-style RSI with four-level zones (20/30/70/80) to better distinguish early/late overbought-oversold conditions. It highlights zone transitions, plots optional background shading, and triggers entry/exit alerts on precise crossings.
How it works (high-level logic)
Core is Wilder’s RSI on close (length = ).
Two oversold bands at 20 and 30; two overbought bands at 70 and 80.
Optional smoothing (), and MTF confirmation (optional) compares current RSI vs a higher timeframe RSI.
Signals:
Long setup: RSI crosses above 20 (early) or 30 (conservative); confirmation if higher-TF RSI is rising.
Take-profit / exit: RSI fails to hold above 70 or crosses below 70 after being >80.
Short setup: mirror logic with 70/80 → 30/20.
Inputs
RSI Length (<14>), Source (close)
Upper Bands (70, 80), Lower Bands (30, 20)
Smoothing ( on RSI, optional)
Higher Timeframe (), Confirm with HTF (on/off)
Background Zones (on/off), Alerts (on/off)
How to use
Choose your market/timeframe. For FX/indices, M5–H1 works well; for swing, H1–H4.
Pick your aggressiveness: use 20/80 for early reversals, 30/70 for conservative trend pullbacks.
With MTF confirmation on, prioritize entries aligned with the higher timeframe RSI slope.
Combine with structure (S/R) or a simple MA filter for trend direction.
Originality & usefulness
Unlike generic RSI scripts, this version provides dual-zone logic (20/30/70/80) with clear visual states, optional HTF confirmation, and ready-made alerts designed to match MetaTrader-like RSI workflows. It is not a direct clone of public open-source scripts; zone handling and alert conditions are purpose-built for timing pullbacks vs. extremes.
Best markets & limitations
Works on FX, gold (XAUUSD), and indices (US30/NAS100).
In strong trends, overbought/oversold can persist—use bands as context, not standalone signals.
Spikes around news can cause false triggers—consider widening bands or disabling trades near events.
Alerts included
RSI Crosses Above 20, RSI Crosses Above 30
RSI Crosses Below 70, RSI Crosses Below 80
MTF Confirmed Long/Short (optional)
User interface translations (if your UI is in Spanish)
RSI Length → Periodo RSI
Upper Bands → Bandas Superiores
Lower Bands → Bandas Inferiores
Smoothing → Suavizado
Higher Timeframe → Marco Temporal Superior
Confirm with HTF → Confirmar con MTS
Background Zones → Zonas de Fondo
Alerts → Alertas
Disclaimer
This tool is for educational purposes. Not financial advice.
Mean Reversion Trading V1Overview
This is a simple mean reversion strategy that combines RSI, Keltner Channels, and MACD Histograms to predict reversals. Current parameters were optimized for NASDAQ 15M and performance varies depending on asset. The strategy can be optimized for specific asset and timeframe. 
 How it works 
Long Entry (All must be true): 
 1. RSI < Lower Threshold
 2. Close < Lower KC Band 
 3. MACD Histogram > 0 and rising 
 4. No open trades
Short Entry (All must be true): 
 1. RSI > Upper Threshold
 2. Close > Upper KC Band
 3. MACD Histogram < 0 and falling
 4. No open trades
Long Exit: 
 1. Stop Loss: Average position size x ( 1 - SL percent) 
 2. Take Profit: Average position size x ( 1 + TP percent) 
 3. MACD Histogram crosses below zero
Short Exit: 
 1. Stop Loss: Average position size x ( 1 + SL percent) 
 2. Take Profit: Average position size x ( 1 - TP percent) 
 3. MACD Histogram crosses above zero
Settings and parameters are explained in the tooltips. 
 Important 
Initial capital is set as 100,000 by default and 100 percent equity is used for trades 
PDB - RSI Based Buy/Sell signals with 4 MARSI Based Buy/Sell Signals on Price chart + 4 MA System 
This indicator plots  RSI-based Buy & Sell signals directly on the price chart , combined with a 4-Moving-Average trend filter (20/50/100/200) for higher accuracy and cleaner trade timing.
The signal triggers when RSI reaches user-defined overbought/oversold levels, but unlike a standard RSI, this version plots the signals **on the chart**, not in the RSI window — making entries and exits easier to see in real time.
 RSI Levels Are Fully Customizable 
The default RSI thresholds are 30 (oversold) and 70 (overbought).
However, you can adjust these to fit your trading style. For example:
> When day trading on the 5–15 min timeframe, I personally use 35 (oversold) and 75 (overbought) to catch moves earlier.
> The example shown in the preview image uses 10-minute timeframe settings.
You can change the RSI levels to trigger signals from **any value you choose**, allowing you to tailor the indicator to scalping, day trading, or swing trading.
4 Moving Averages Included:
20, 50, 100, 200 MAs act as dynamic trend filters so you can:
✔ trade signals only in the direction of trend
✔ avoid false reversals
✔ identify momentum shifts more clearly
Works on all markets and timeframes — crypto, stocks, FX, indices.
Liquidity Grab + RSI Divergence═══════════════════════════════════════════════════════════════
LIQUIDITY GRAB + RSI DIVERGENCE INDICATOR
═══════════════════════════════════════════════════════════════
📌 OVERVIEW
This indicator identifies high-probability reversals by combining:
  • Liquidity sweeps (stop hunts)
  • RSI divergence confirmation
  • Filters false breakouts automatically
═══════════════════════════════════════════════════════════════
🟢 BUY SIGNAL (Green Triangle Up)
REQUIRES BOTH CONDITIONS:
1. Liquidity Grab Below Previous Low
   • Price breaks BELOW recent low
   • Candle CLOSES ABOVE that low
   • Traps sellers who shorted the breakdown
2. Bullish RSI Divergence
   • Price: Lower Low (LL)
   • RSI: Higher Low (HL)
   • Shows weakening downward momentum
➜ Result: Potential bullish reversal
═══════════════════════════════════════════════════════════════
🔴 SELL SIGNAL (Red Triangle Down)
REQUIRES BOTH CONDITIONS:
1. Liquidity Grab Above Previous High
   • Price breaks ABOVE recent high
   • Candle CLOSES BELOW that high
   • Traps buyers who bought the breakout
2. Bearish RSI Divergence
   • Price: Higher High (HH)
   • RSI: Lower High (LH)
   • Shows weakening upward momentum
➜ Result: Potential bearish reversal
═══════════════════════════════════════════════════════════════
📊 VISUAL INDICATORS
Main Signals:
  🔺 Large Green Triangle = BUY (Liq Grab + Bullish Div)
  🔻 Large Red Triangle = SELL (Liq Grab + Bearish Div)
Reference Levels:
  ━ Red Line = Previous High Level
  ━ Green Line = Previous Low Level
Additional Markers (Optional):
  ○ Small Green Circle = Liquidity grab low only
  ○ Small Red Circle = Liquidity grab high only
  ✕ Small Blue Cross = Bullish divergence only
  ✕ Small Orange Cross = Bearish divergence only
═══════════════════════════════════════════════════════════════
⚙️ SETTINGS
1. Lookback Period (Default: 20)
   • Range: 5-100
   • Sets how far back to identify previous highs/lows
   • Higher = fewer but stronger levels
   • Lower = more frequent but weaker levels
2. RSI Length (Default: 14)
   • Range: 5-50
   • Standard RSI calculation period
   • 14 is industry standard
3. RSI Divergence Lookback (Default: 5)
   • Range: 3-20
   • Controls pivot point sensitivity
   • Higher = fewer divergence signals
   • Lower = more divergence signals
4. Show Labels (Default: ON)
   • Toggle BUY/SELL text labels
   • Disable for cleaner chart view
═══════════════════════════════════════════════════════════════
💡 HOW TO USE
Step 1: WAIT FOR CONFIRMATION
  • Only trade LARGE TRIANGLE signals
  • Ignore small circles/crosses alone
Step 2: CHECK TIMEFRAME
  • Best on: 15min, 1H, 4H, Daily
  • Avoid: 1min, 5min (too noisy)
Step 3: CONFIRM CONTEXT
  • Check overall market trend
  • Identify key support/resistance
  • Look for confluence with price action
Step 4: ENTRY & RISK MANAGEMENT
  • Enter on signal candle close or pullback
  • Stop loss below/above the liquidity grab wick
  • Target: Previous swing high/low or key levels
  • Risk/Reward: Minimum 1:2 ratio
Step 5: SET ALERTS
  • Create alert for "BUY Signal"
  • Create alert for "SELL Signal"
  • Never miss opportunities
═══════════════════════════════════════════════════════════════
✅ BEST PRACTICES
DO:
  ✓ Use on multiple timeframes for confluence
  ✓ Combine with support/resistance zones
  ✓ Wait for both conditions (liq grab + divergence)
  ✓ Practice on demo account first
  ✓ Use proper position sizing
DON'T:
  ✗ Trade every small circle/cross
  ✗ Use on very low timeframes (<15min)
  ✗ Ignore overall market context
  ✗ Trade without stop loss
  ✗ Risk more than 1-2% per trade
═══════════════════════════════════════════════════════════════
⚠️ IMPORTANT NOTES
• This is a CONFIRMATION tool, not a holy grail
• No indicator is 100% accurate
• Combine with your trading strategy
• Backtest on your preferred instruments
• Adjust parameters for your trading style
• Higher timeframes = more reliable signals
• Always use risk management
═══════════════════════════════════════════════════════════════
🔔 ALERTS INCLUDED
Two alert conditions are built-in:
  1. "BUY Signal" - Liquidity Grab + Bullish RSI Divergence
  2. "SELL Signal" - Liquidity Grab + Bearish RSI Divergence
═══════════════════════════════════════════════════════════════
📈 RECOMMENDED SETTINGS BY TIMEFRAME
5-15 Min Charts:
  • Lookback: 10-15
  • RSI Length: 14
  • RSI Div Lookback: 3-5
1H-4H Charts:
  • Lookback: 20-30
  • RSI Length: 14
  • RSI Div Lookback: 5-7
Daily Charts:
  • Lookback: 30-50
  • RSI Length: 14
  • RSI Div Lookback: 7-10
═══════════════════════════════════════════════════════════════
Good luck and trade safe! 🚀
Reverse RSI LevelsSimple reverse RSI calculation
As default RSI values 30-50-70 are calculated into price.
This can be used similar to a bollinger band, but has also multiple other uses.
70 RSI works as overbought/resistance level.
50 RSI works as both support and resistance depending on the trend.
30 RSI works as oversold/support level.
Keep in mind that RSI levels can go extreme, specially in Crypto.
I haven't made it possible to adjust the default levels, but I've added 4 more calculations where you can plot reverse RSI calculations of your desired RSI values.
If you're a RSI geek, you probably use RSI quite often to see how high/low the RSI might go before finding a new support or resistance level. Now you can just put the RSI level into on of the 4 slots in the settings and see where that support/resistance level might be on the chart.
TRI - RSI & StochRSI Multi-TimeframeThis indicator displays RSI and Stochastic RSI values across multiple timeframes
in a clear, color-coded table format.
 FEATURES: 
 
 Monitors 7 timeframes: 1m, 5m, 15m, 1h, 4h, 1D, 1W
 Color-coded cells: Green (oversold), Red (overbought), Orange/Blue (neutral)
 Direction indicators for RSI trend
 StochRSI K/D comparison indicators
 Customizable oversold/overbought levels
 Configurable table position and size
 
 ALERTS: 
 
 RSI entering oversold/overbought zones
 StochRSI entering oversold/overbought zones
 StochRSI K/D crossovers (bullish and bearish)
TRI - RSI Overlay ViewerDESCRIPTION: 
Advanced RSI and Stochastic RSI indicator with visual signals on price chart.
Combines RSI momentum analysis with Stochastic RSI oversold/overbought detection.
 FEATURES: 
 
 RSI with customizable smoothing (EMA)
 Stochastic RSI with K and D lines
 Background coloring for oversold/overbought zones
 Visual shape signals for key crossover events
 Alert system for all signal types
 
 SIGNALS: 
 
 Small Circle (Green): StochRSI crosses above oversold threshold
 Small Circle (Red): StochRSI crosses below overbought threshold  
 Triangle Up (Green): RSI crosses above oversold threshold (stronger signal)
 Triangle Down (Red): RSI crosses below overbought threshold (stronger signal)
 
 STRATEGY USAGE: 
 
 Triangle signals = Primary entry/exit signals (RSI confirmation)
 Circle signals = Early warning signals (StochRSI only)
 Use higher timeframes for trend confirmation
 Combine with price action and support/resistance levels
Dual Table Dashboard - Correct V3add RSI Data## 📈 Trading Applications
### 1. Trend Following Strategy
```
1. Check TABLE 1 for trend direction (AnEMA29 + PDMDR)
2. If both green → Look for longs
3. If both red → Look for shorts
4. Use TABLE 2 for entry levels
```
### 2. Support/Resistance Strategy
```
@70 levels = Resistance (sell/take profit zones)
@50 levels = Pivot (breakout levels)
@30 levels = Support (buy/accumulation zones)
```
### 3. Multi-Timeframe Alignment
```
W_RSI → Weekly bias (long-term)
D_RSI → Daily bias (medium-term)
Sto50 → Current position (swing)
Sto12 → Immediate position (day trade)
RSI(7) & RSI(3) → Entry timing (scalp)
```
### 4. Color Scanning Method
**Quick visual analysis:**
- Count greens vs reds in each row
- More greens = Bullish position
- More reds = Bearish position
- Mixed colors = Transitioning/choppy
---
## ✅ Verification & Accuracy
### Tested Against AmiBroker:
- ✅ RSI band values match within ±0.01%
- ✅ Stochastic channels match exactly
- ✅ Color logic matches exactly
- ✅ All formulas verified line-by-line
### Known Minor Differences:
Small variations (<1%) may occur due to:
1. **Platform calculation precision** - Different floating-point engines
2. **Historical data feeds** - Slight variations in past prices
3. **Weekly bar boundaries** - TradingView vs AmiBroker week definitions
4. **Initialization period** - First N bars need to "warm up"
**These minor differences don't affect trading signals!**
---
## ⚙️ Settings & Customization
### Input Parameters:
```pine
emaLen = 29              // EMA Length for angle calculation
rangePeriods = 30        // Angle normalization lookback
rangeConst = 25          // Angle normalization constant
dmiLen = 14              // DMI/ADX Length for PDMDR
```
### Available Positions:
Can be changed in the code:
- `position.top_left`
- `position.top_center`
- `position.top_right`
- `position.middle_left` (Table 2 default)
- `position.middle_center`
- `position.middle_right`
- `position.bottom_left` (Table 1 default)
- `position.bottom_center`
- `position.bottom_right`
### Text Sizes:
- `size.tiny`
- `size.small` (current default)
- `size.normal`
- `size.large`
- `size.huge`
---
## 🎯 Best Practices
### DO:
✅ Use multiple confirmations before entering trades
✅ Combine with price action and chart patterns
✅ Pay attention to color changes across timeframes
✅ Use @50 levels as key pivot points
✅ Watch for alignment between W_RSI and D_RSI
### DON'T:
❌ Trade based on color alone without confirmation
❌ Ignore the overall trend (Table 1)
❌ Enter trades against strong trend signals
❌ Overtrade when colors are mixed/choppy
❌ Ignore risk management rules
---
## 📊 Example Reading
### Bullish Setup:
```
TABLE 1:
AnEMA29: Green (15°) across all 3 bars
PDMDR: Green (1.65) and rising
TABLE 2:
W_RSI@50: Green (price above)
D_RSI@50: Green (price above)
Sto50@50: Green (price above midpoint)
Sto12@50: Green (price above midpoint)
Interpretation: Strong bullish trend confirmed across multiple timeframes
Action: Look for long entries on pullbacks to @50 or @30 levels
```
### Bearish Setup:
```
TABLE 1:
AnEMA29: Red (-12°) across all 3 bars
PDMDR: Red (0.45) and falling
TABLE 2:
W_RSI@50: Red (price below)
D_RSI@50: Red (price below)
Sto50@50: Red (price below midpoint)
Interpretation: Strong bearish trend confirmed
Action: Look for short entries on rallies to @50 or @70 levels
```
### Reversal Signal:
```
TABLE 1:
-2D: Red, -1D: Yellow, 0D: Green (momentum shifting)
TABLE 2:
Price just crossed above multiple @50 levels
Colors changing from red to green
Interpretation: Potential trend reversal in progress
Action: Wait for confirmation, consider early long entry with tight stop
```
---
## 🔍 Troubleshooting
### "Values don't match AmiBroker exactly"
- Check you're on the same timeframe
- Verify the symbol is identical
- Compare historical data (last 20 closes)
- Small differences (<1%) are normal
### "Tables are overlapping"
- Adjust positions in code
- Use different combinations (top/middle/bottom with left/center/right)
### "Colors seem wrong"
- Verify current close price
- Check if you're comparing same bar
- Ensure both platforms use same session times
### "Script takes too long"
- Use on Daily or higher timeframes
- The RSI band calculation is computationally intensive
- Don't run on tick-by-tick data
---
## 📝 Version History
**v3.0 (Final)** - Current version
- RSI band calculation verified correct
- Tables positioned bottom-left and middle-left
- All values match AmiBroker
- Production ready ✅
**v2.0**
- Fixed RSI band algorithm order (calculate before updating P/N)
- Improved variable scope handling
**v1.0**
- Initial implementation
- Had incorrect RSI band calculation
---
## 📄 Files in Package
Dynamic Length RSI (DRSI)Dynamic Length RSI (DRSI)
This indicator is an advanced tool that seeks to improve the sensitivity and adaptability of the traditional Relative Strength Index (RSI).
Its main feature is that it uses a variable length calculation instead of a fixed length (like the standard 14), automatically adjusting to market volatility conditions. The length used to calculate the RSI dynamically adjusts between a predefined minimum and maximum, based on volatility (ATR).
The change in length is indicated by the candlestick background. Gray candles represent ascending Dyn (weakness/consolidation/declining volatility), blue or white candles represent descending Dyn (strength, trend, rising volatility).
RSI FlipIndicator Description: RSI Flip (30/70 Threshold)
This indicator uses a 7-period Relative Strength Index (RSI) to detect potential market reversals based on classic momentum thresholds:
- RSI < 30 → triggers a Long Deal Signal (1) indicating potential bullish reversal.
- RSI > 70 → triggers a Short Deal Signal (2) indicating potential bearish reversal.
🔧 Features:
- Backtest-compatible output: Hidden plots emit 1 for long and 2 for short, enabling seamless integration with strategy scripts.
- Bias tracking: Internal bias state updates on each trigger, allowing for modular lifecycle logic.
- Background tinting ready: The bias variable can be used to drive visual overlays or downstream automation.
🧩 Integration Notes:
- Designed for symbol-specific use — no external feeds or dependencies.
- Ideal for modular signal stacking, lifecycle-safe deal initiation, or audit-grade strategy mapping.
RSI Divergence Strategy v6 What this does
Detects regular and hidden divergences between price and RSI using confirmed RSI pivots. Adds RSI@pivot entry gates, a normalized strength + volume filter, optional volume gate, delayed entries, and transparent risk management with rigid SL and activatable trailing. Visuals are throttled for clarity and include a gap-free horizontal RSI gradient.
How it works (simple)
🧮 RSI is calculated on your selected source/period.
📌 RSI pivots are confirmed with left/right lookbacks (lbL/lbR). A pivot becomes final only after lbR bars; before that, it can move (expected).
🔎 The latest confirmed pivot is compared against the previous confirmed pivot within your bar window:
• Regular Bullish = price lower low + RSI higher low
• Hidden Bullish = price higher low + RSI lower low
• Regular Bearish = price higher high + RSI lower high
• Hidden Bearish = price lower high + RSI higher high
💪 Each divergence gets a strength score that multiplies price % change, RSI change, and a volume ratio (Volume SMA / Baseline Volume SMA).
• Set Min divergence strength to filter tiny/noisy signals.
• Turn on the volume gate to require volume ratio ≥ your threshold (e.g., 1.0).
🎯 RSI@pivot gating:
• Longs only if RSI at the bullish pivot ≤ 30 (default).
• Shorts only if RSI at the bearish pivot ≥ 70 (default).
⏱ Entry timing:
• Immediate: on divergence confirm (delay = 0).
• Delayed: after N bars if RSI is still valid.
• RSI-only mode: ignore divergences; use RSI thresholds only.
🛡 Risk:
• Rigid SL is placed from average entry.
• Trailing activates only after unrealized gain ≥ threshold; it re-anchors on new highs (long) or new lows (short).
What’s NEW here (vs. the reference) — and why you may care
• Improved pivots + bar window → fewer early/misaligned signals; cleaner drawings.
• RSI@pivot gates → entries aligned with true oversold/overbought at the exact decision bar.
• Normalized strength + volume gate → ignore weak or low-volume divergences.
• Delayed entries → require the signal to persist N bars if you want more confirmation.
• Rigid SL + activatable trailing → trailing engages only after a cushion, so it’s less noisy.
• Clutter control + gradient → readable chart with a smooth RSI band look.
Suggested starting values (clear ranges)
• RSI@pivot thresholds: LONG ≤ 30 (oversold), SHORT ≥ 70 (overbought).
• Min divergence strength:
0.0 = off
3–6 = moderate filter
7–12 = strict filter for noisy LTFs
• Volume gate (ratio):
1.0 = at least baseline volume
1.2–1.5 = strong-volume only (fewer but cleaner signals)
• Pivot lookbacks:
lbL 1–2, lbR 3–4 (raise lbR to confirm later and reduce noise)
• Bar window (between pivots):
Min 5–10, Max 30–60 (increase Min if you see micro-pivots; increase Max for wider structures)
• Risk:
Rigid SL 2–5% on liquid majors; 5–10% on higher-volatility symbols
Trailing activation 1–3%, trailing 0.5–1.5% are common intraday starts
Plain-text examples
• BTCUSDT 1h → RSI 9, lbL 1, lbR 3, Min strength 5.0, Volume gate 1.0, SL 4.5%, Trail on 2.0%, Trail 1.0%.
• SPY 15m → RSI 8, lbL 1, lbR 3, Min strength 7.0, Volume gate 1.2, SL 3.0%, Trail on 1.5%, Trail 0.8%.
• EURUSD 4h → RSI 14, lbL 2, lbR 4, Min strength 4.0, Volume gate 1.0, SL 2.5%, Trail on 1.0%, Trail 0.5%.
Notes & limitations
• Pivot confirmation means the newest candidate pivot can move until lbR confirms it (expected).
• Results vary by timeframe/symbol/settings; always forward-test.
• Educational tool — no performance or profit claims.
Credits
• RSI by J. Welles Wilder Jr. (1978).
• Reference divergence script by eemani123: 
• This version by tagstrading 2025 adds: improved pivot engine, RSI@pivot gating, normalized strength + optional volume gate, delayed entries, rigid SL and activatable trailing, and a gap-free RSI gradient.
RSI to Price Projection PanelThis indicator calculates the current RSI based on the closing price and projects estimated prices for user-defined RSI target levels. Results are displayed in a table at the top-right corner of the chart.
RSI Colored by Relative StrengthThis indicator enhances the traditional RSI by combining it with Relative Strength (RS) — the ratio of an asset’s price to a chosen benchmark (e.g., SPY, QQQ, BTCUSD) — to create a more accurate, powerful, and dynamic momentum confirmation tool.
Instead of relying solely on RSI’s internal momentum, this version color-codes RSI values and backgrounds based on whether the asset is outperforming, underperforming, or neutral relative to the benchmark, not only identifying the RSI value, but color codes it in relation to the overall market to give more accurate confirmations.
	•	RS > 1 → The asset is outperforming the benchmark (relative strength).
	•	RS < 1 → The asset is underperforming.
	•	RS ≈ 1 → Neutral or moving in sync with the benchmark.
Gradient background zones:
	•	Green tones = outperformance (RS > 1).
	•	Red tones = underperformance (RS < 1).
	•	Gray neutral band = parity (RS ≈ 1).
Intensity adjusts dynamically based on how far RS deviates from 1, giving an at-a-glance view of market leadership strength.
	•	Color-coded RSI line: Green when RS > 1, red when RS < 1.
	•	Optional markers and labels show confirmed RS+RSI crossovers with smart spacing to prevent clutter.
	•	Alerts included for bullish and bearish RS+RSI alignment events.
How to Use
	1.	Add your preferred benchmark symbol (default: SPY).
	2.	Move this indicator into the same pane as your RSI (No need to overlay, does so automatically) and can also be used standalone.
	3.	Watch for:
	•	Green RSI & background: Significant momentum strength (asset trending upward and outpacing the market).
	•	Red RSI & background: False or insignificant momentum (asset lagging).
	•	Gray zone: neutral phase — consolidation or rotation period.
Use this as a trend-confirmation filter rather than a signal generator.
For example:
	•	Confirm and refine breakout entries when RS > 1 (RSI support = stronger conviction).
	•	Take profits when RSI weakens and RS slips below 1.
Puell Multiple Variants [OperationHeadLessChicken]Overview 
This script contains three different, but related indicators to visualise Bitcoin miner revenue.
 
 The classical  Puell Multiple : historically, it has been good at signaling Bitcoin cycle tops and bottoms, but due to the diminishing rewards miners get after each halving, it is not clear how you determine overvalued and undervalued territories on it. Here is how the other two modified versions come into play:
 Halving-Corrected Puell Multiple : The idea is to multiply the miner revenue after each halving with a correction factor, so overvalued levels are made comparable by a horizontal line across cycles. After experimentation, this correction factor turned out to be around 1.63. This brings cycle tops close to each other, but we lose the ability to see undervalued territories as a horizontal region. The third variant aims to fix this:
 Miner Revenue Relative Strength Index (Miner Revenue RSI) : It uses RSI to map miner revenue into the 0-100 range, making it easy to visualise over/undervalued territories. With correct parameter settings, it eliminates the diminishing nature of the original Puell Multiple, and shows both over- and undervalued revenues correctly.
 
 Example usage 
The goal is to determine cycle tops and bottoms. I recommend using it on high timeframes, like  monthly  or  weekly . Lower than that, you will see a lot of noise, but it could still be used. Here I use  monthly  as the example.
 
  The classical  Puell Multiple  is included for reference. It is calculated as  Miner Revenue  divided by the  365-day Moving Average of the Miner Revenue . As you can see in the picture below, it has been good at signaling tops at 1,3,5,7.
The problems:
- I have to switch the Puell Multiple to a logarithmic scale
- Still, I cannot use a horizontal oversold territory
- 5 didn't touch the trendline, despite being a cycle top
- 9 touched the trendline despite not being a cycle top 
 Halving-Corrected Puell Multiple  (yellow): Multiplies the Puell Multiple by 1.63 (a number determined via experimentation) after each halving. In the picture below, you can see how the  Classical  (white) and  Corrected  (yellow) Puell Multiples compare:
Advantages:
- Now you can set a constant overvalued level (12.49 in my case)
- 1,3,7 are signaled correctly as cycle tops
- 9 is correctly not signaled as a cycle top
Caveats:
- Now you don't have bottom signals anymore
- 5 is still not signaled as cycle top
Let's see if we can further improve this:
 Miner Revenue RSI  (blue):
On the monthly, you can see that an RSI period of 6, an overvalued threshold of 90, and an undervalued threshold of 35 have given historically pretty good signals.
Advantages:
- Uses two simple and clear horizontal levels for undervalued and overvalued levels
- Signaling 1,3,5,7 correctly as cycle tops
- Correctly does not signal 9 as a cycle top
- Signaling 4,6,8 correctly as cycle bottoms
Caveats:
- Misses two as a cycle bottom, although it was a long time ago when the Bitcoin market was much less mature
- In the past, gave some early overvalued signals
 
 Usage 
Using the example above, you can apply these indicators to any timeframe you like and tweak their parameters to obtain signals for overvalued/undervalued BTC prices
 
 You can show or hide any of the three indicators individually
 Set overvalued/undervalued thresholds for each => the background will highlight in green (undervalued) or red (overvalued)
 Set special parameters for the given indicators: correction factor for the Corrected Puell and RSI period for Revenue RSI
 Show or hide halving events on the indicator panel
 All parameters and colours are adjustable
RSI Value Table – match builtin🧭 Overview
“RSI Value Table – match builtin” displays the exact RSI value (identical to TradingView’s built-in RSI) for any selected timeframe — directly on your chart.
It’s designed for professional traders who need quick RSI confirmation without switching panels or opening multiple indicators.
⚙️ Core Logic
Reads RSI from any timeframe using request.security() with gaps_off and lookahead_off — ensuring a perfect match with the native RSI.
Optional EMA smoothing (non-standard) for visual stability.
Color-coded cell:
🟩 Green → RSI > 50 (bullish momentum)
🟥 Red → RSI < 50 (bearish momentum)
🟨 Yellow → Neutral zone around 50
Adjustable table position: top/bottom, left/right corners.
⚡ Alerts
Built-in alert conditions trigger automatically:
RSI > 50 → bullish momentum confirmation.
RSI < 50 → bearish momentum confirmation.
📈 How to Use
Select your preferred RSI timeframe (e.g., Daily, Weekly, 4H).
Watch the color-coded cell:
Green → trade long bias only.
Red → short bias only.
Ideal as a confirmation module for multi-timeframe systems or smart signal engines.
Mean Reversion Oscillator [Alpha Extract]An advanced composite oscillator system specifically designed to identify extreme market conditions and high-probability mean reversion opportunities, combining five proven oscillators into a single, powerful analytical framework.
By integrating multiple momentum and volume-based indicators with sophisticated extreme level detection, this oscillator provides precise entry signals for contrarian trading strategies while filtering out false reversals through momentum confirmation.
🔶 Multi-Oscillator Composite Framework
Utilizes a comprehensive approach that combines Bollinger %B, RSI, Stochastic, Money Flow Index, and Williams %R into a unified composite score. This multi-dimensional analysis ensures robust signal generation by capturing different aspects of market extremes and momentum shifts.
 // Weighted composite (equal weights)
normalized_bb = bb_percent
normalized_rsi = rsi
normalized_stoch = stoch_d_val
normalized_mfi = mfi
normalized_williams = williams_r
composite_raw = (normalized_bb + normalized_rsi + normalized_stoch + normalized_mfi + normalized_williams) / 5
composite = ta.sma(composite_raw, composite_smooth) 
🔶 Advanced Extreme Level Detection
Features a sophisticated dual-threshold system that distinguishes between moderate and extreme market conditions. This hierarchical approach allows traders to identify varying degrees of mean reversion potential, from moderate oversold/overbought conditions to extreme levels that demand immediate attention.
🔶 Momentum Confirmation System
Incorporates a specialized momentum histogram that confirms mean reversion signals by analyzing the rate of change in the composite oscillator. This prevents premature entries during strong trending conditions while highlighting genuine reversal opportunities.
 // Oscillator momentum (rate of change)
osc_momentum = ta.mom(composite, 5)
histogram = osc_momentum
// Momentum confirmation
momentum_bullish = histogram > histogram 
momentum_bearish = histogram < histogram 
// Confirmed signals
confirmed_bullish = bullish_entry and momentum_bullish
confirmed_bearish = bearish_entry and momentum_bearish 
🔶 Dynamic Visual Intelligence
The oscillator line adapts its color intensity based on proximity to extreme levels, providing instant visual feedback about market conditions. Background shading creates clear zones that highlight when markets enter moderate or extreme territories.
🔶 Intelligent Signal Generation
Generates precise entry signals only when the composite oscillator crosses extreme thresholds with momentum confirmation. This dual-confirmation approach significantly reduces false signals while maintaining sensitivity to genuine mean reversion opportunities.
How It Works
🔶 Composite Score Calculation
The indicator simultaneously tracks five different oscillators, each normalized to a 0-100 scale, then combines them into a smoothed composite score. This approach eliminates the noise inherent in single-oscillator analysis while capturing the consensus view of multiple momentum indicators.
 // Mean reversion entry signals
bullish_entry = ta.crossover(composite, 100 - extreme_level) and composite  < (100 - extreme_level)
bearish_entry = ta.crossunder(composite, extreme_level) and composite  > extreme_level
// Bollinger %B calculation
bb_basis = ta.sma(src, bb_length)
bb_dev = bb_mult * ta.stdev(src, bb_length)
bb_percent = (src - bb_lower) / (bb_upper - bb_lower) * 100 
🔶 Extreme Zone Identification
The system automatically identifies when markets reach statistically significant extreme levels, both moderate (65/35) and extreme (80/20). These zones represent areas where mean reversion has the highest probability of success based on historical market behavior.
🔶 Momentum Histogram Analysis
A specialized momentum histogram tracks the velocity of oscillator changes, helping traders distinguish between healthy corrections and potential trend reversals. The histogram's color-coded display makes momentum shifts immediately apparent.
🔶 Divergence Detection Framework
Built-in divergence analysis identifies situations where price and oscillator movements diverge, often signaling impending reversals. Diamond-shaped markers highlight these critical divergence patterns for enhanced pattern recognition.
🔶 Real-Time Information Dashboard
An integrated information table provides instant access to current oscillator readings, market status, and individual component values. This dashboard eliminates the need to manually check multiple indicators while trading.
🔶 Individual Component Display
Optional display of individual oscillator components allows traders to understand which specific indicators are driving the composite signal. This transparency enables more informed decision-making and deeper market analysis.
🔶 Adaptive Background Coloring
Intelligent background shading automatically adjusts based on market conditions, creating visual zones that correspond to different levels of mean reversion potential. The subtle color gradations make pattern recognition effortless.
1D
  
3D
  
🔶 Comprehensive Alert System
Multi-tier alert system covers confirmed entry signals, divergence patterns, and extreme level breaches. Each alert type provides specific context about the detected condition, enabling traders to respond appropriately to different signal strengths.
🔶 Customizable Threshold Management
Fully adjustable extreme and moderate levels allow traders to fine-tune the indicator's sensitivity to match different market volatilities and trading timeframes. This flexibility ensures optimal performance across various market conditions.
🔶 Why Choose AE - Mean Reversion Oscillator?
This indicator provides the most comprehensive approach to mean reversion trading by combining multiple proven oscillators with advanced confirmation mechanisms. By offering clear visual hierarchies for different extreme levels and requiring momentum confirmation for signals, it empowers traders to identify high-probability contrarian opportunities while avoiding false reversals. The sophisticated composite methodology ensures that signals are both statistically significant and practically actionable, making it an essential tool for traders focused on mean reversion strategies across all market conditions.
Hyper Strength Index | QuantLapse🧠 Hyper Strength Index (HSI) | QuantLapse 
 Overview: 
The Hyper Strength Index (HSI) is a composite momentum oscillator designed to unify multiple strength measures into a single, adaptive framework. It combines the Relative Strength Index (RSI), Chande Momentum Oscillator (CMO), Money Flow Index (MFI), and Stochastic RSI to deliver a refined, multidimensional view of market momentum and overbought/oversold conditions.
Unlike traditional oscillators that rely on a single formula, the HSI averages four distinct momentum perspectives — price velocity, directional conviction, volume participation, and stochastic behavior — offering traders a more balanced and noise-resistant reading of market strength.
 ⚙️ Calculation Logic: 
The Hyper Strength Index is computed as the normalized average of:
 
 📈 RSI — classic measure of relative momentum.
 💪 CMO — captures directional bias and intensity of moves.
 💵 MFI — integrates volume and money flow pressure.
 🔄 Stochastic RSI (K-line) — identifies momentum extremes and short-term turning points.
 
This fusion creates a smoother, more comprehensive signal, mitigating the weaknesses of any single oscillator.
 🎯 Interpretation: 
Overbought Zone (Default: > 75):
Indicates potential exhaustion of bullish momentum — a cooling phase or reversal may follow.
Oversold Zone (Default: < 7):
Suggests bearish exhaustion — a rebound or accumulation phase may emerge.
Neutral Zone (Between 7 and 75):
Represents balanced market conditions or trend continuation phases.
Visual cues highlight key conditions:
🔺 Red Highlights — Overbought regions or downward inflection points.
🔻 Green Highlights — Oversold regions or upward inflection points.
Neutral zones are shaded with subtle gray backgrounds for clarity.
 💡 Key Features: 
🔹 Multi-factor strength analysis (RSI + CMO + MFI + StochRSI).
🔹 Adaptive overbought/oversold detection.
🔹 Visual alerts via colored backgrounds and bar markers.
🔹 Customizable smoothing and length parameters for fine-tuning sensitivity.
🔹 Intuitive visualization ideal for both short-term scalping and swing trading setups.
🧭 Usage Notes:
Works best as a momentum confirmation tool — pair with trend filters like EMA, SuperTrend, or ADX.
In trending markets, use crossovers from extreme zones as potential continuation or exhaustion signals.
In ranging markets, exploit overbought/oversold reversals for high-probability mean reversion trades.
📘 Summary:
The Hyper Strength Index | QuantLapse distills multiple dimensions of market strength into a single, cohesive oscillator. By merging price, volume, and directional momentum, it provides traders with a more robust, responsive, and context-aware perspective on market dynamics — a next-generation evolution beyond the limitations of RSI or CMO alone.
Logit RSI [AdaptiveRSI]The traditional 0–100 RSI scale makes statistical overlays, such as Bollinger Bands or even moving averages, technically invalid. This script solves this issue by placing RSI on an unbounded, continuous scale, enabling these tools to work as intended.
The  Logit function  takes bounded data, such as RSI values ranging from 0 to 100, and maps them onto an unbounded scale ranging from negative infinity (−∞) to positive infinity (+∞).
An RSI reading of 50 becomes 0 on the Logit scale, indicating a balanced market. Readings above 50 map to positive Logit values (price above Wilder’s EMA / RSI above 50), while readings below 50 map to negative values (price below Wilder’s EMA / RSI below 50).
For the detailed formula, which calculates RSI as a scaled distance from Wilder’s EMA, check the  RSI
: alternative derivation  script.
The main issue with the 0–100 RSI scale is that different lookback periods produce very different distributions of RSI values. The histograms below illustrate how often RSIs of various lengths spend time within each 5-point range.
On RSI(2), the tallest bars appear at the edges (0–5 and 95–100), meaning short-term RSI spends most of its time at the extremes. For longer lookbacks, the bars cluster around the center and rarely reach 70 or 30.
  
This behavior makes it difficult to generalize the two most common RSI techniques:
 
   Fixed 70/30 thresholds:  These overbought and oversold levels only make sense for short- or mid-range lookbacks (around the low teens). For very short periods, RSI spends most of its time above or below these levels, while for long-term lookbacks, RSI rarely reaches them.
   Bollinger Bands (±2 standard deviations):  When applied directly to RSI, the bands often extend beyond the 0–100 limits (especially for short-term lookbacks) making them mathematically invalid. While the issue is less visible on longer settings, it remains conceptually incorrect.
 
To address this, we apply the  Logit Transform :
 Logit RSI = LN(RSI / (100 − RSI)) 
The transformed data fits a smooth bell-shaped curve, allowing statistical tools like Bollinger Bands to function properly for the first time.
  
 Why Logit RSI Matters: 
 
  Makes RSI statistically consistent across all lookback periods.
  Greatly improves the visual clarity of short-term RSIs
  Allows proper use of volatility tools (like Bollinger Bands) on RSI.
  Replaces arbitrary 70/30 levels with data-driven thresholds.
  Simplifies RSI interpretation for both short- and long-term analysis.
 
 INPUTS: 
 
 RSI Length  — set the RSI lookback period used in calculations.
 RSI Type  — choose between  Regular RSI  or  Logit RSI .
 Plot Bollinger Bands  — ON/OFF toggle to overlay statistical envelopes around RSI or Logit RSI.
 SMA and Standard Deviation Length  — defines the lookback period for both the SMA (Bollinger Bands midline) and Standard Deviation calculations.
 Standard Deviation Multiplier  — controls the width of the Bollinger Bands (e.g., 2.0 for ±2σ).
 
While simple, the Logit transformation represents an unexplored yet powerful mathematically grounded improvement to the classic RSI.
It offers traders a structured, intuitive, and statistically consistent way to use RSI across all timeframes.
 I welcome your feedback, suggestions, and code improvements—especially regarding performance and efficiency. Your insights are greatly appreciated.
CMF, RSI, CCI, MACD, OBV, Fisher, Stoch RSI, ADX (+DI/-DI)Eight normalized indicators are used in conjunction with the CMF, CCI, MACD, and Stoch RSI indicators. You can track buy and sell decisions by tracking swings. The zero line is for reversal tracking at -20, +20, +50, and +80. You can use any of the nine indicators individually or in combination.
Momentum-Based Fair Value Gaps [BackQuant]Momentum-Based Fair Value Gaps  
 A precision tool that detects Fair Value Gaps and color-codes each zone by momentum, so you can quickly tell which imbalances matter, which are likely to fill, and which may power continuation.
 What is a Fair Value Gap 
 A Fair Value Gap is a 3-candle price imbalance that forms when the middle candle expands fast enough that it leaves a void between candle 1 and candle 3.
  
  Bullish FVG : low  > high . This marks a bullish imbalance left beneath price.
  Bearish FVG : high  < low . This marks a bearish imbalance left above price.
  These zones often act as magnets for mean reversion or as fuel for trend continuation when price respects the gap boundary and runs.
  
 Why add momentum 
 Not all gaps are equal. This script measures momentum with RSI on your chosen source and paints each FVG with a momentum heatmap. Strong-momentum gaps are more likely to hold or propel continuation. Weak-momentum gaps are more likely to fill.
 Core Features 
  
  Auto FVG Detection  with size filters in percent of price.
  Momentum Heatmap  per gap using RSI with smoothing. Multiple palettes: Gradient, Discrete, Simple, and scientific schemes like Viridis, Plasma, Inferno, Magma, Cividis, Turbo, Jet, plus Red-Green and Blue-White-Red.
  Bull and Bear Modes  with independent toggles.
  Extend Until Filled : keep drawing live to the right until price fully fills the gap.
  Auto Remove Filled  for a clean chart.
  Optional Labels  showing the smoothed RSI value stored at the gap’s birth.
  RSI-based Filters : only accept bullish gaps when RSI is oversold and bearish gaps when RSI is overbought.
  Performance Controls : cap how many FVGs to keep on chart.
  Alerts : new bullish or bearish FVG, filled FVG, and extreme RSI FVGs.
  
 How it works 
  
  Source for Momentum : choose Returns, Close, or Volume.
 Returns computes percent change over a short lookback to focus on impulse quality.
  RSI and Smoothing : RSI length and a small SMA smooth the signal to stabilize the color coding.
  Gap Scan : each bar checks for a 3-candle bullish or bearish imbalance that also clears your minimum size filter in percent of price.
  Heatmap Color : the gap is painted at creation with a color from your palette based on the smoothed RSI value, preserving the momentum signature that formed it.
  Lifecycle : if Extend Unfilled is on, the zone projects forward until price fully trades through the far edge. If Auto Remove is on, a filled gap is deleted immediately.
  
 How to use it 
  
  Scan for structure : turn on both bullish and bearish FVGs. Start with a moderate Min FVG Size percent to reduce noise. You will see stacked clusters in trends and scattered singletons in chop.
  Read the colors : brighter or stronger palette values imply stronger momentum at gap formation. Weakly colored gaps are lower conviction.
  Decide bias : bullish FVGs below price suggest demand footprints. Bearish FVGs above price suggest supply footprints. Use the heatmap and RSI value to rank importance.
  Choose your playbook :
 Mean reversion : target partial or full fills of opposing FVGs that were created on weak momentum or that sit against higher timeframe context.
 Trend continuation : look for price to respect the near edge of a strong-momentum FVG, then break away in the direction of the original impulse.
  Manage risk : in continuation ideas, invalidation often sits beyond the opposite edge of the active FVG. In reversion ideas, invalidation sits beyond the gap that should attract price.
  
 Two trade playbooks 
  
  Continuation - Buy the hold of a bullish FVG 
 Context uptrend.
 A bullish FVG prints with strong RSI color.
 Price revisits the top of the gap, holds, and rotates up. Enter on hold or first higher low inside or just above the gap.
 Invalidation: below the gap bottom. Targets: prior swing, measured move, or next LV area.
  Reversion - Fade a weak bearish FVG toward fill 
 Context range or fading trend.
 A bearish FVG prints with weak RSI color near a completed move.
 Price fails to accelerate lower and rotates back into the gap.
 Enter toward mid-gap with confirmation.
 Invalidation: above gap top. Target: opposite edge for a full fill, or the gap midline for partials.
  
 Key settings 
  
  Max FVG Display : memory cap to keep charts fast. Try 30 to 60 on intraday.
  Min FVG Size % : sets a quality floor. Start near 0.20 to 0.50 on liquid markets.
  RSI Length and Smooth : 14 and 3 are balanced. Increase length for higher timeframe stability.
  RSI Source :
 Returns : most sensitive to true momentum bursts
 Close : traditional.
 Volume : uses raw volume impulses to judge footprint strength.
  Filter by RSI Extremes : tighten rules so only the most stretched gaps print as signals.
 Heatmap Style and Palette : pick a palette with good contrast for your background. Gradient for continuous feel, Discrete for quick zoning, Simple for binary, Palette for scientific schemes.
  Extend Unfilled - Auto Remove : choose live projection and cleanup behavior to match your workflow.
  
 Reading the chart 
  
  Bullish zones  sit beneath price. Respect and hold of the upper boundary suggests demand. Strong green or warm palette tones indicate impulse quality.
  Bearish zones  sit above price. Respect and hold of the lower boundary suggests supply. Strong red or cool palette tones indicate impulse quality.
  Stacking : multiple same-direction gaps stacked in a trend create ladders. Ladders often act as stepping stones for continuation.
  Overlapping : opposing gaps overlapping in a small region usually mark a battle zone. Expect chop until one side is absorbed.
  
 Workflow tips 
  
  Map higher timeframe trend first. Use lower timeframe FVGs for entries aligned with the higher timeframe bias.
  Increase Min FVG Size percent and RSI length for noisy symbols.
  Use labels when learning to correlate the RSI numbers with your palette colors.
  Combine with VWAP or moving averages for confluence at FVG edges.
  If you see repeated fills and refills of the same zone, treat that area as fair value and avoid chasing.
  
 Alerts included 
  
  New Bullish FVG
  New Bearish FVG
  Bullish FVG Filled
  Bearish FVG Filled
  Extreme Oversold FVG - bullish
  Extreme Overbought FVG - bearish
  
 Practical defaults 
  
  RSI Length 14, Smooth 3, Source Returns.
  Min FVG Size 0.25 percent on liquid majors.
  Heatmap Style Gradient, Palette Viridis or Turbo for contrast.
  Extend Unfilled on, Auto Remove on for a clean live map.
  
 Notes 
 This tool does not predict the future. It maps imbalances and momentum so you can frame trades with clearer context, cleaner invalidation, and better ranking of which gaps matter. Use it with risk control and in combination with your broader process.






















