RSI Momentum Divergence Zones [ChartPrime]⯁ OVERVIEW
RSI Momentum Divergence Zones is a hybrid oscillator and chart overlay tool that detects RSI-based momentum divergences and projects them as key zones on the chart. By combining RSI divergence logic with horizontal level plotting, this indicator reveals high-probability support and resistance areas where price has historically reacted to hidden or classic divergences.
⯁ KEY FEATURES
Momentum-Based RSI Source:
Instead of the classic RSI input, this tool uses the momentum of price as the RSI source:
rsiSrc = ta.mom(close, 10)
This emphasizes acceleration and deceleration of price moves, sharpening divergence signals and making them more responsive to early shifts in momentum.
Automatic Divergence Detection (Optional):
When enabled, the indicator continuously scans for:
— Bullish Divergence : Price makes a Lower Low while RSI forms a Higher Low
— Bearish Divergence : Price makes a Higher High while RSI forms a Lower High
It ensures divergence is valid by checking the spacing between pivots (min 5, max 50 bars).
Divergence Labels & Markers (RSI Pane + Chart):
When a valid divergence is detected:
— On RSI pane:
Labels appear at HL/LH points (“Bull” / “Bear”)
Colored lines show pivot structures
— On price chart:
Labels (“▲ Bull” / “Bear ▼”) mark price pivot that triggered the divergence
Lines highlight the exact price level at the divergence origin
Divergence Zones / Levels (Toggleable):
The indicator projects horizontal zones across the chart based on confirmed divergence points.
These levels dynamically extend as long as price respects them, and auto-expire once broken.
They act as S/R levels created by market imbalance caused by divergence reactions.
Dynamic Zone Extension Logic:
Once plotted, divergence levels will extend to the right:
— If price respects the level, the zone keeps growing
— If broken in the opposite direction, the level stops extending and turns dashed (visually showing break)
Zone Layering and Limit Control:
You can limit the number of simultaneous zones shown on the chart (e.g., 10 most recent).
Old zones automatically expire and are removed to keep the chart clean and focused.
Color Customization and Intensity:
Different colors for bullish and bearish zones let you easily distinguish trend direction.
Background fill, line width, and transparency are all adjustable.
Clean Zone Management with Arrays:
Behind the scenes, the script uses custom divLevel type arrays to manage plotted levels, ensuring they stay up-to-date, extend correctly, and delete once invalidated.
⯁ USAGE
Use bullish divergence zones as potential demand areas and bearish ones as supply zones.
Combine RSI pane labels with price-level zones to confirm strength of reversal.
Watch for price approaching a divergence level to anticipate reactions or breakouts.
Use divergence levels as trade triggers, stop-loss guides, or take-profit markers.
Limit signal count using the “Qty Divergence Zones” setting to reduce chart clutter.
Enable divergence detection only when you want to focus on key structural zones — ideal for swing or positional setups.
⯁ CONCLUSION
RSI Momentum Divergence Zones blends oscillator divergence logic with price action structure to uncover hidden strength or weakness in the market. With flexible zone plotting and clean visual signals, this tool empowers traders to identify where momentum turns into structure — turning hidden signals into tradable edges.
Oscillators
Smart Money Proxy IndexOverview
The Smart Money Proxy Index (SMPI) is an educational tool that attempts to identify potential institutional-style behavior patterns using publicly available market data. This comprehensive tool combines multiple institutional analysis techniques into a single, easy-to-read 0-100 oscillator.
Important Disclaimer
This is an educational proxy indicator that analyzes volume and price patterns. It cannot identify actual institutional trading activity and should not be interpreted as tracking real "smart money." Use for educational purposes and combine with other analysis methods.
Inspiration & Methodology
This indicator is inspired by MAPsignals' Big Money Index (BMI) methodology but uses publicly available price and volume data with original calculations. This is an independent educational interpretation designed to teach smart money concepts to retail traders.
What It Analyzes
SMPI tracks potential "smart money" activity by combining:
Block Trading Detection - Identifies unusual volume surges with significant price impact
Money Flow Analysis - Volume-weighted price pressure using Money Flow Index
Accumulation/Distribution Patterns - Modified On-Balance Volume signals
Institutional Control Proxy - End-of-day positioning and control analysis
Key Features
– Multi-Component Analysis - Combines 4 different institutional detection methods
– BMI-Style 0-100 Scale - Familiar oscillator range with clear extreme levels
– Professional Visualization - Dynamic colors, gradient fills, and clean data table
– Comprehensive Alerts - Buy/sell signals plus divergence detection
– Fully Customizable - Adjust all parameters, colors, and display options
– Non-Repainting Signals - All alerts use confirmed data for reliability
– Educational Focus - Designed to teach institutional flow concepts
How to Interpret
Above 80: Potential smart money distribution phase (bearish pressure)
Below 20: Potential smart money accumulation phase (bullish opportunity)
Signal Generation: Buy signals when crossing above 20, sell signals when crossing below 80
Divergences: Price vs SMPI divergences can signal potential trend changes
Volume Confirmation: Higher volume ratios strengthen signal reliability
Best Practices
Timeframes: Works best on higher timeframes for institutional behavior analysis
Confirmation: Combine with other technical analysis tools and market context
Volume: Pay attention to volume confirmation in the data table
Context: Consider overall market conditions and fundamental factors
Risk Management: Not recommended as standalone trading system
Customizable Parameters
Block Volume Threshold: Sensitivity for unusual volume detection (default: 2.5x average)
SMPI Smoothing Period: Index calculation smoothing (default: 25 bars)
Extreme Levels: Overbought/oversold thresholds (default: 80/20)
Money Flow Length: MFI calculation period (default: 14)
Visual Options: Colors, signals, and display preferences
Available Alerts
Buy Signal: SMPI crosses above oversold level (20)
Sell Signal: SMPI crosses below overbought level (80)
Extreme Levels: Alerts when reaching overbought/oversold zones
Divergence Detection: Bullish and bearish price vs SMPI divergences
Educational Purpose & Limitations
This indicator is designed as an educational proxy for understanding institutional flow concepts. It analyzes publicly available price and volume data to identify potential smart money behavior patterns.
Cannot access actual institutional transaction data
Signals may be slower than day-trading indicators (intentionally designed for institutional timeframes)
Should be used in conjunction with other analysis methods
Past performance does not guarantee future results
What Makes This Different
Unlike simple volume or momentum indicators, SMPI combines multiple institutional analysis techniques into one comprehensive tool. The multi-component approach provides a more robust view of potential smart money activity.
Multi-Timeframe RSIRSI Divergence (Time-Based Engine)
This script is a powerful and highly customizable tool designed to automatically detect and display RSI divergences from up to three independent, user-defined timeframes directly on your chart. It eliminates the need to manually switch between timeframes to find these critical trading signals, allowing you to see long-term and short-term divergences all in one place.
The engine is built to be flexible, supporting both regular (reversal) divergences and hidden (trend-continuation) divergences. It's designed for traders who rely on divergence analysis as a core part of their strategy.
Key Features
Multi-Timeframe (MTF) Analysis: Configure and display divergences from up to three different timeframes simultaneously (e.g., show 4-Hour, Daily, and Weekly divergences on your 1-Hour chart). Each timeframe operates independently with its own settings.
Regular & Hidden Divergence: The script can detect both standard regular divergences that signal potential reversals and hidden divergences that suggest a trend may continue.
Configurable Pivot Strength: You have full control over the sensitivity of pivot detection. The 'Left Strength' and 'Right Strength' settings allow you to define what qualifies as a significant price pivot, filtering out market noise.
Bar Count Filter: Refine your signals by setting the minimum and maximum number of bars allowed between two pivots. This ensures you only see divergences that fit your specific strategic timeframe.
Dedicated Alerts: Each of the three timeframes has its own "Enable Alerts" toggle. When a new divergence line is drawn on the chart for a specific timeframe, a corresponding alert can be triggered, ensuring you never miss a potential setup.
Full Visual Customization: Tailor the look and feel of the indicator to your preference. Each timeframe has unique color settings for its bullish and bearish lines, allowing for easy visual identification. You can also toggle the visibility of various chart markers to keep your view clean.
How to Use
1. Add the indicator to your chart.
2. Open the Settings panel.
3. For each timeframe you wish to use (1, 2, or 3), check the "Enable Timeframe" box.
4. Select the desired Timeframe, RSI Length, and Pivot Strength for each active engine.
5. Adjust the Min/Max Bars filter to match your trading style.
6. If you want to receive notifications, check the "Enable Alerts" box for the desired timeframe(s). Then, create an alert using TradingView's alert manager, selecting the indicator and choosing the "Any alert() function call" option.
Non-Repainting Buy/Sell Oscillator B Dadasaheb//@version=5
indicator("Non-Repainting Buy/Sell Oscillator", overlay=false, max_labels_count=500)
// Inputs
fastLen = input.int(9, "Fast EMA Length", minval=1)
slowLen = input.int(21, "Slow EMA Length", minval=1)
// EMA Calculation
fastEMA = ta.ema(close, fastLen)
slowEMA = ta.ema(close, slowLen)
// Non-Repaint Conditions: Check crossover on previous bar
buySignal = ta.crossover(fastEMA , slowEMA )
sellSignal = ta.crossunder(fastEMA , slowEMA )
// Oscillator value: 1 for buy, -1 for sell
oscValue = fastEMA > slowEMA ? 1 : fastEMA < slowEMA ? -1 : 0
// Colors
oscColor = oscValue > 0 ? color.green : oscValue < 0 ? color.red : color.gray
// Plot Oscillator
plot(oscValue, title="Buy/Sell Oscillator", color=oscColor, linewidth=2, style=plot.style_histogram)
hline(0, "Zero Line", color=color.gray)
hline(1, "Buy Zone", color=color.green, linestyle=hline.style_dotted)
hline(-1, "Sell Zone", color=color.red, linestyle=hline.style_dotted)
// Buy/Sell Labels (non-repainting)
plotshape(buySignal, title="Buy Label", location=location.bottom, style=shape.labelup, text="BUY", color=color.green, textcolor=color.white, size=size.tiny)
plotshape(sellSignal, title="Sell Label", location=location.top, style=shape.labeldown, text="SELL", color=color.red, textcolor=color.white, size=size.tiny)
// Alerts
alertcondition(buySignal, title="Buy Alert", message="BUY: Fast EMA crossed above Slow EMA (confirmed)")
alertcondition(sellSignal, title="Sell Alert", message="SELL: Fast EMA crossed below Slow EMA (confirmed)")
Global Bond Yields Monitor [MarktQuant]Global Bond Yields Monitor
The Global Bond Yields Monitor is designed to help users track and compare government bond yields across major economies. It provides an at-a-glance view of short- and long-term interest rates for multiple countries, enabling users to observe shifts in global fixed-income markets.
Key Features:
Multi-Country Coverage: Includes major advanced and emerging economies such as the United States, China, Japan, Germany, United Kingdom, Canada, Australia, and more.
Multiple Maturities: Displays yields for the 2-year, 5-year, 10-year, and 30-year maturities (20-year for Russia).
Dynamic Yield Data: Plots real-time yields for the selected country directly from TradingView’s data sources.
Weekly Change Tracking: Calculates and displays the yield change from one week ago ( ) for each maturity.
Table Visualization: Option to display a compact data table showing current yields and weekly changes, color-coded for easier interpretation.
Visual Yield Curve Comparison: Plots yield lines for short- and long-term maturities, with shaded areas between curves for visual clarity.
Customizable Display: Choose table placement and whether to show or hide the weekly change table.
Use Cases
This script is intended for analysts, traders, and investors who want to monitor shifts in sovereign bond markets. Changes in yields can reflect adjustments in monetary policy expectations, inflation outlook, or broader macroeconomic trends.
❗Important Note❗
This indicator is for market monitoring and educational purposes only. It does not generate trading signals, and it should not be interpreted as financial advice. All data is sourced from TradingView’s available market feeds, and accuracy may depend on the source data.
RSI + MACD Long-Only StrategyRSI + MACD Long-Only Strategy
Overview: Momentum-based, long-only strategy combining RSI and MACD. Entries favor upside momentum; exits trigger on momentum fades or risk targets. Signals are state-gated so you get one exit per entry (no multiple exits without a prior entry).
Entry conditions:
RSI crosses above the midline (default 50) while MACD is bullish (MACD > Signal, optionally MACD > 0), OR
MACD crosses above its Signal while RSI is at/above the midline.
Optional filters:
EMA trend filter: only enter if price > EMA(n).
Oversold context: only enter within N bars after RSI dipped below the oversold threshold.
Exit conditions:
RSI crosses below the midline, OR
MACD crosses below its Signal with MACD histogram ≤ 0.
Optional risk exit: Take Profit / Stop Loss based on percentage from average entry price.
Risk management:
Inputs: Use TP/SL (on/off), TP% (default 3.0), SL% (default 1.5).
Implements protective strategy.exit (limit/stop) while in position.
Signal-based exit uses strategy.close to flatten.
Position management:
Long-only, no pyramiding (single position at a time).
Internal state ensures entries occur only when flat and exits only when in a position.
Inputs you can tune:
RSI: length, overbought, oversold, midline.
MACD: fast length, slow length, signal length; toggle “Require MACD > 0”.
Signals: oversold lookback window; EMA trend on/off and EMA length.
Risk: TP% and SL%.
Visuals: show entry/exit markers, bar coloring; optional debug background on raw triggers.
Visuals and alerts:
Plots EMA (optional), draws entry/exit markers, optional bar coloring, and a faint background on raw long triggers to aid tuning.
Alert conditions provided for entries and exits.
Notes:
Designed for bar-close evaluation; performance varies by symbol/timeframe—tune inputs accordingly.
Long-only; intended for trend-following momentum with basic risk control.
Not financial advice.
QUANTUM MARKET ANALYZER X7QUANTUM MARKET ANALYZER X7 — Study Material (Learning & Teaching Guide)
What this tool is (and isn’t)
QUANTUM MARKET ANALYZER X7 is a multi-factor TradingView indicator that summarizes many classic signals into one dashboard. It does not predict the future or guarantee profits. It simply scores what is happening now using oscillators, moving averages, order-block behavior, trendline/channel context, Supertrend bias, and volume/flow clues—so you can make structured, risk-aware decisions.
________________________________________
Quick start (for brand-new traders)
1. Add the indicator to a chart.
2. Pick an Analysis Timeframe (e.g., 60-min for day trading, 4-hour for swing).
3. Read the Summary tile first; then check Oscillators → MAs → OB/Trendline/Supertrend → Volume.
4. Take trades only when multiple sections agree, and always plan stop loss and size before entry.
________________________________________
How the dashboard is built (section by section)
Below you’ll learn what each section measures, how the numbers are produced, and how to interpret them. The script converts each sub-signal into a small integer (e.g., +2, +1, 0, −1, −2). These are summed into section totals and then into a Summary score.
1) Summary (the combined score)
• What it is: The grand total of all sections (Oscillators + Moving Averages + Advanced: OB, Trendline/Channel, Supertrend, Volume).
• How it’s labeled:
o Large positive total → BUY / STRONG BUY
o Around zero → NEUTRAL
o Large negative total → SELL / STRONG SELL
• How to use: Treat it as a headline, not a trigger. Confirm with the sections below and price action.
________________________________________
2) Oscillators (momentum / overbought–oversold)
Inputs used on your chosen timeframe:
• RSI(14):
o 70 → bearish pressure (−)
o <30 → bullish pressure (+)
• Stochastic (14):
o 80 overbought (−), <20 oversold (+)
• CCI(20):
o +100 (−), <−100 (+)
• Williams %R(14):
o −20 overbought (−), <−80 oversold (+)
• MACD(12,26,9):
o MACD line > Signal → (+), below → (−)
• Momentum(10): >0 → (+), <0 → (−)
• ROC(9): >+2% → (+), <−2% → (−)
• Bollinger Bands(20,2):
o Price > Upper band → (−), < Lower band → (+)
How it scores: Each item contributes between −2 and +2 (or −1/+1 for some). The Oscillator total is their sum.
How to use: Oscillators excel for timing. Favor longs when the total is clearly positive and exiting or avoiding when clearly negative.
________________________________________
3) Moving Averages (trend/structure)
MAs used: SMA(10/20/50/100/200) and EMA(10/20/50).
Scoring logic: Compares price vs each MA:
• Price > MA by >2% → +2 (strongly bullish)
• Price > MA by 0–2% → +1
• Price < MA by 0–2% → −1
• Price < MA by >2% → −2
How to use: A clearly positive MA total suggests trend alignment for longs; clearly negative favors shorts or flat. Mixed readings → treat as range/transition.
________________________________________
4) Order-Block (OB) breakout analysis (support/resistance from clustered reactions)
What it approximates: The script searches a lookback window for pivot-like candles and counts repeated “touches” near that level (within ±0.2%) to infer support (bullish OB) or resistance (bearish OB).
Settings you can tune
• OB Lookback Period: how far back to search.
• Min OB Touches: more touches = stronger level.
Signals produced
• BULLISH BRK: Price crosses above the most recent bearish OB (resistance → breakout).
• BEARISH BRK: Price crosses below the most recent bullish OB (support → breakdown).
• ABOVE SUP / BELOW RES: Price position relative to the latest OB levels.
How to use: Use OB with MAs and Volume. Best when a breakout comes with trend alignment and volume expansion.
________________________________________
5) Trendline / Channel analysis (context envelope)
Rather than a single diagonal line, this module forms a dynamic channel:
• Finds highest high and lowest low over your Trendline Lookback.
• Builds a midline = (highest + lowest)/2.
• Creates an upper/lower channel by multiplying the range with Channel Width Multiplier.
Signals produced
• UPPER BRK: Price > upper channel (bullish expansion)
• LOWER BRK: Price < lower channel (bearish expansion)
• ABOVE MID / BELOW MID: Bias zone inside channel
How to use: Treat UPPER/LOWER breaks as momentum context. Confirm with MAs and Volume before acting.
________________________________________
6) Supertrend (ATR-based bias)
• Uses ta.supertrend(ATR Multiplier, ATR Period) on your analysis timeframe.
• Signal:
o BULLISH when Supertrend flips to trend-up state
o BEARISH when it flips to trend-down
Tuning tips:
• Higher ATR Multiplier (e.g., 6) → fewer, higher-quality flips.
• Lower multiplier → more responsive, more noise.
How to use: Use Supertrend as a trend filter. Avoid fighting it unless higher-timeframe context disagrees and you have strong confluence.
________________________________________
7) Volume/Flow analysis (participation & pressure)
This section combines several volume-based tools:
1. Volume Spike vs MA
o Volume MA Period (default 20)
o Volume Spike Threshold (e.g., 1.5×)
o If current volume / MA > threshold → spike.
2. OBV vs OBV-MA → Accumulation (+) / Distribution (−)
3. VPT vs VPT-MA → Price-volume trend alignment (+/−)
4. MFI(14): >70 (−), <30 (+)
5. Accumulation/Distribution vs its MA → (+/−)
Scoring:
• Big spike with up bar → +2; with down bar → −2
• Each of OBV, VPT, MFI, A/D adds +1 or −1
Interpretation labels:
• HIGH ACC / ACCUM → constructive flow
• HIGH DIST / DISTRIB → selling pressure
• NEUTRAL → no edge
How to use: Favor setups where directional signals + trend + volume point the same way.
________________________________________
Putting it together — a repeatable reading order
1. Summary: What’s the combined bias?
2. Oscillators: Is momentum supportive or stretched?
3. MAs: Is price aligned with the trend structure?
4. OB & Trendline/Channel: Are we breaking key levels/zones?
5. Supertrend: Is the higher-level bias with you or against you?
6. Volume: Is there participation to confirm the move?
Only act when at least 3–4 sections agree and you can define a logical stop and position size.
________________________________________
Parameter tuning (step-by-step)
1. Choose timeframe:
o 15–60m for active trading; 4h–1D for swing.
2. Oscillators:
o Keep defaults first; later tighten or loosen thresholds only if you’ve tested.
3. Moving Averages:
o The script’s built-in 0–2% bands around each MA are sensible.
o If your market is very volatile, you can consider widening the 2% threshold to reduce whipsaws (requires code edit).
4. Order Blocks:
o Start with OB Lookback ~50 and Min Touches = 2.
o Increase touches for fewer, stronger zones.
5. Trendline/Channel:
o Longer Trendline Lookback and smaller Channel Width → tighter channel (more breaks).
o Shorter lookback and larger width → fewer breaks.
6. Supertrend:
o If you get too many flips, raise ATR Multiplier.
o If it’s lagging, lower it slightly.
7. Volume:
o For quieter instruments, reduce the Threshold (e.g., 1.2×).
o For very liquid/active markets, 1.5–2.0× works well.
________________________________________
Example playbooks (for practice)
A) Pro-trend long continuation
• Summary: BUY or STRONG BUY
• MAs: clearly positive
• Supertrend: BULLISH
• OB/Trendline: ABOVE MID or UPPER BRK
• Volume: ACCUM or HIGH ACC
Plan: Enter on a minor pullback; stop below recent structure; scale out at logical resistance.
B) Mean-reversion short (cautious)
• Oscillators: multiple overbought readings (RSI>70, price > BB upper)
• MAs: still positive (trend up), so this is countertrend
• Volume: no spike
Plan: If you must, take smaller size, tighter stop, faster targets. Prefer waiting for alignment instead.
C) Breakout with confirmation
• OB: BULLISH BRK of a known resistance
• Trendline/Channel: UPPER BRK
• Volume: spike with up bar
• Supertrend: recently flipped up
Plan: Enter on retest or structured continuation; define stop under breakout level.
________________________________________
Common pitfalls to avoid
• Acting on one section alone. Confluence matters.
• Chasing after long candles without volume follow-through.
• Ignoring timeframe alignment. Check the next higher timeframe.
• Oversizing trades just because “Summary = Strong Buy/Sell.”
• Moving stops farther instead of accepting a planned loss.
________________________________________
Practice & evaluation routine
1. Replay mode (TradingView Bar Replay) to practice reading the tiles in order.
2. Journal each trade: which sections agreed, where stop/target were, outcome.
3. Weekly review: Were losing trades missing confirmation? Did you respect size rules?
4. Iterate cautiously: Change one setting at a time and observe for a week.
________________________________________
Frequently asked questions
Q: Is the Summary score weighted?
A: Each sub-signal contributes small integers; totals from Oscillators, MAs, and Advanced sections are added without fancy weighting, keeping it transparent.
Q: Can I use this as a standalone system?
A: It’s best used as a decision support layer with your own risk rules, not as a mechanical “buy/sell” machine.
Q: Which timeframe is best?
A: The one that matches your holding period. Always confirm with at least one higher timeframe.
________________________________________
Suggested classroom flow (for teaching)
1. Session 1: Oscillators only → identify good vs stretched momentum.
2. Session 2: Moving Averages → trend structure and bias.
3. Session 3: OB + Trendline/Channel → location and breakouts.
4. Session 4: Supertrend + Volume → confirmation and participation.
5. Session 5: Confluence building → case studies and journaling.
6. Session 6: Risk management, sizing, and review habits.
________________________________________
Disclaimer aiTrendview (please read)
This indicator and study material are provided for educational and research purposes only. They do not constitute financial advice, investment recommendations, or a promise of performance. Trading involves substantial risk and may result in losses. Past performance of any method or indicator does not guarantee future results. You are solely responsible for your trading decisions, including risk management, position sizing, and due diligence. Always test ideas in a demo environment before using real capital, and consider consulting a licensed financial advisor.
EMA Deviation with Min/Max Levelshis indicator visualizes the percentage deviation of the closing price from its Exponential Moving Average (EMA), helping traders identify overbought and oversold conditions. It dynamically tracks the minimum and maximum deviation levels over a user-defined lookback period, highlighting extreme zones with color-coded signals:
• 🔵 Normal deviation range
• 🔴 Near historical maximum — potential sell zone
• 🟢 Near historical minimum — potential buy zone
Use it to spot price extremes relative to trend and anticipate possible reversals or mean reversion setups.
Bollinger Bands Signal Pro(Mastersinnifty)Description
Bollinger Bands Signal Pro is a multi-filter trading tool designed to identify high-probability buy and sell opportunities using Bollinger Bands, RSI, volume, and trend confirmation. This indicator provides clear visual signals directly on the chart and a real-time information panel for quick decision-making.
How It Works
Calculates Bollinger Bands using user-defined length and multiplier.
Generates buy signals when price crosses below the lower band with optional RSI oversold, high volume, and bullish trend confirmation.
Generates sell signals when price crosses above the upper band with optional RSI overbought, high volume, and bearish trend confirmation.
EMA crossovers determine the trend filter direction.
Displays a live dashboard showing BB position, RSI value, trend direction, volume condition, and current signal status.
Includes alert conditions for automated notifications.
Inputs
BB Length – Number of bars for Bollinger Bands calculation.
BB Multiplier – Standard deviation multiplier for bands.
RSI Length – Lookback period for RSI.
Volume MA Length – Period for average volume calculation.
RSI Oversold/Overbought Levels – Thresholds for filtering signals.
Use RSI Filter – Enable/disable RSI-based filtering.
Use Volume Filter – Enable/disable volume condition.
Use Trend Filter – Enable/disable EMA-based trend confirmation.
Use Case
Spot overextended market moves with confirmation from multiple conditions.
Enhance signal reliability by filtering with RSI, volume, and trend.
Receive automated alerts for actionable trading opportunities.
Quickly assess market conditions via the built-in signal dashboard.
Disclaimer
This indicator is a technical analysis tool and should not be considered financial advice. Trading involves risk, and past performance does not guarantee future results. Users are encouraged to test the script in a demo environment and apply proper risk management before trading with real capital.
Buy & Sell Arrows with Candle Line [mark804]Catch RSI reversals the moment they happen!"
Buy & Sell Arrows with Candle Line
A clean, visual RSI signal tool that plots Buy arrows when RSI crosses above oversold (30) and Sell arrows when RSI crosses below overbought (70).
For each signal, it also draws a small colored line from the candle to the label, making it easy to see exactly where signals occurred.
Features:
Buy arrow & label when RSI crosses above 30 (oversold exit)
Sell arrow & label when RSI crosses below 70 (overbought exit)
Simple visual lines linking signal to candle for clarity
Works on any chart timeframe or symbol
Best for: quick visual spotting of RSI reversal opportunities without clutter.
✨Smart Option MACD: Bullish, Bearish, Neutral Logic by AKM ✨The **Smart Option MACD: Bullish, Bearish, Neutral Logic by AKM** is an advanced indicator designed for TradingView, tailored for option traders on indices like NIFTY. It automates options trend scanning by applying MACD analysis to both Call (CE) and Put (PE) options near the ATM (At-The-Money) strike, providing actionable market states—Bullish, Bearish, or Neutral—using distinct logic for both strikes and overall market context.
***
### Core Features
- **Option Selection Logic:** The script dynamically calculates ATM, CE, and PE strike prices based on the underlying index spot price and customizable user inputs for expiry, strike distance, and OTM/ITM shift.
- **MACD on Option Prices:** For both CE and PE symbols, the indicator computes the MACD (Moving Average Convergence Divergence) and Signal lines. It uses standard MACD settings: 12-period EMA (fast), 26-period EMA (slow), and 9-period Signal.
- **Strike Status Classification:**
- AZL 🔼: Indicates MACD > 0 for that option, signifying positive momentum.
- BZL 🔽: Indicates MACD 0 & crossover up), PE is bearish (MACD<0 & crossover down).
- **Bearish:** PE is bullish & crossover up, CE is bearish & crossover down.
- **Neutral:** All other scenarios—including mixed or undefined signals.
***
### Table Output
A real-time table is displayed on the chart (top-right) with key option and market details:
- Spot price
- ATM Strike
- CE/PE strike status (momentum + crossover logic)
- Option prices
- Overall market state, color-coded for clarity
***
### How to Use This Indicator
- **Entry Signal:** Use the Bullish/Bearish status for directional trades or option strategies. Bullish calls for buying or selling upward momentum options; Bearish favors downside trades. Neutral advises caution or range-bound trades.
- **Customizability:** Expiry, strike width, OTM/ITM offset, and chart resolution are user-controlled, allowing adaptation to different market contexts.
- **Best Practice:** Use alongside price action, support/resistance zones and other indicators to confirm options momentum, as MACD is powerful yet not infallible.
***
### Who Is It For?
- **Option traders** who want to automate trend/momentum detection for CE/PE strikes instead of manual chart switching.
- **Index traders** (NIFTY, BANKNIFTY...) seeking systematic edge in intraday/positional strategies tied to option momentum.
- **Technical analysts** interested in visual, rule-based signals combining options data and classic MACD logic.
***
The Smart Option MACD indicator streamlines multi-strike, multi-option momentum analysis and presents clear actionable logic directly on your chart for enhanced decision-making. Use it as a core part of your TradingView toolkit for options-focused market views.
MACD-V (Volatility-Normalised Momentum) — Spiroglou, 2022Volatility-normalized MACD per Alex Spiroglou (2022):
MACD-V = (EMA12 − EMA26) / ATR26 × 100, so momentum is expressed in ATR units and stays comparable across assets/timeframes.
What you get
• Trend-colored line: green when price ≥ EMA200, red otherwise.
• Guides: ±50 / ±100 / 0; Extremes: ±140 (editable).
• Regime shading: OB ≥ +140 shaded red; OS ≤ −140 shaded green.
• Clean, on-curve markers: small circles on the MACD-V line at the four edge events — OB (enter ≥ +threshold), OBX (cross back down), OS (enter ≤ −threshold), OSX (cross back up).
• Text labels are off by default; optional toggle only for OB/OBX.
• Signal & histogram: EMA(9) of MACD-V and (MACD-V − Signal) columns.
• Alerts: OB/OS entries & exits included.
How to use
• Favor longs when MACD-V > 0 (ideally > +50); respect OB for possible exhaustion.
• Favor shorts when MACD-V < 0 (ideally < −50); respect OS for possible exhaustion.
• Because it’s ATR-normalized, thresholds transfer well across symbols and timeframes.
RSI by Tamil harmonic trader rajThis indicator will show RSI value in candle chart.
telegram channel link tamilharmonictraderraj
Buy/Sell Alert Strong Signals [TCMaster]This indicator combines Smoothed Moving Averages (SMMA), Stochastic Oscillator, and popular candlestick patterns (Engulfing, 3 Line Strike) to highlight potential trend reversal zones.
Main features:
4 SMMA lines (21, 50, 100, 200) for short-, medium-, and long-term trend analysis.
Trend Fill: Background shading when EMA(2) and SMMA(200) are aligned, visually confirming trend direction.
Stochastic Filter: Filters signals based on overbought/oversold conditions to help reduce noise.
Candlestick pattern recognition:
Bullish/Bearish Engulfing
Bullish/Bearish 3 Line Strike
Alerts for each pattern when Stochastic conditions are met.
⚠️ Note: This is a technical analysis tool. It does not guarantee accuracy and is not financial advice. Always combine with other analysis methods and practice proper risk management.
🛠 How to Use:
1. SMMA Settings
21 SMMA & 50 SMMA: Short- and medium-term trend tracking.
100 SMMA: Optional mid/long-term filter (toggle on/off).
200 SMMA: Major trend direction reference.
2. Trend Fill
EMA(2) > SMMA(200): Background shaded green (uptrend bias).
EMA(2) < SMMA(200): Background shaded red (downtrend bias).
Can be enabled/disabled in settings.
3. Stochastic Filter
K Length, D Smoothing, Smooth K: Adjust sensitivity.
Overbought & Oversold: Default 80 / 20 thresholds.
Buy signals only valid if Stochastic is oversold.
Sell signals only valid if Stochastic is overbought.
4. Candlestick Patterns
3 Line Strike:
Bullish: Three consecutive bullish candles followed by one bearish candle closing below the previous, with potential reversal.
Bearish: Three consecutive bearish candles followed by one bullish candle closing above the previous, with potential reversal.
Engulfing:
Bullish: Green candle fully engulfs the prior red candle body.
Bearish: Red candle fully engulfs the prior green candle body.
5. Alerts
Alerts available for each pattern when Stochastic conditions are met.
Example: "Bullish Engulfing + Stochastic confirm".
📌 Important Notes
Do not use this indicator as the sole basis for trading decisions.
Test on a demo account before applying to live trades.
Combine with multi-timeframe analysis, volume, and proper position sizing.
SMI Base-Trigger Bullish Re-acceleration (Higher High)Description
What it does
This indicator highlights a two-step bullish pattern using Stochastic Momentum Index (SMI) plus an ATR distance filter:
1. Base (orange) – Marks a momentum “reset.” A base prints when SMI %K crosses up through %D while %K is below the Base level (default -70). The base stores the base price and starts a waiting window.
2. Trigger (green) – Confirms momentum and price strength. A trigger prints only if, before the timeout window ends:
• SMI %K crosses up through %D again,
• %K is above the Trigger level (default -60),
• Close > Base Price, and
• Price has advanced at least Min ATR multiple (default 1.0× the 14-period ATR) above the base price.
A dashed green line connects the base to the trigger.
Why it’s useful
It seeks a bullish divergence / reacceleration: momentum recovers from deeply negative territory, then price reclaims and exceeds the base by a volatility-aware margin. This helps filter out weak “oversold bounces.”
Signals
• Base ▲ (orange): Potential setup begins.
• Trigger ▲ (green): Confirmation—momentum and price agree.
Inputs (key ones)
• %K Length / EMA Smoothing / %D Length: SMI construction.
• Base when %K < (default -70): depth required for a valid reset.
• Trigger when %K > (default -60): strength required on confirmation.
• Base timeout (days) (default 100): maximum look-ahead window.
• ATR Length (default 14) and Min ATR multiple (default 1.0): price must exceed the base by this ATR-scaled distance.
How traders use it (example rules)
• Entry: On the Trigger.
• Risk: A common approach is a stop somewhere between the base price and a multiple of ATR below trigger; or use your system’s volatility stop.
• Exits: Your choice—trend MA cross, fixed R multiple, or structure-based levels.
Notes & tips
• Works best on liquid symbols and mid-to-higher timeframes (reduce noise).
• Increase Min ATR multiple to demand stronger price confirmation; tighten or widen Base/Trigger levels to fit your market.
• This script plots signals only; convert to a strategy to backtest entries/exits.
B-Xtrender MTF Companion (custom colors + zero)B-Xtrender MTF Companion (Custom Colors + Zero)
This indicator is a multi-timeframe companion tool for the B-Xtrender system, designed to track momentum shifts across your current chart timeframe and up to two higher timeframes — all in one panel.
Key Features:
Multi-Timeframe Momentum: Plots histogram + signal line for current TF, HTF-1, and HTF-2, with independent color/offset settings for easy visual stacking.
Custom Styling: Full color and width control for bullish/bearish histograms, signal lines, and the zero line.
Smoothing Options: Choose between EMA or T3 smoothing for cleaner signals.
Momentum Flip Alerts: Built-in alert conditions for bullish or bearish flips on each timeframe.
Zero Line Control: Toggle, recolor, and restyle the zero reference line.
How It Works:
The B-Xtrender MTF Companion calculates the difference between two EMAs, applies RSI normalization, and then plots it as a centered oscillator. The signal line slope and histogram color indicate momentum direction, while higher-timeframe signals help confirm trend strength and avoid false entries.
Best Use:
Pair with price action or your primary B-Xtrender setup for trend confirmation.
Monitor higher timeframe momentum while trading intraday.
Combine alert flips with your entry rules for more timely trade triggers.
RSI (14) with Auto Zone Colors — Overbought/Oversold HighlighterThis indicator plots the Relative Strength Index (RSI 14) with dynamic color changes for instant visual clarity:
✅ Green line in overbought zone (≥70)
✅ Red line in oversold zone (≤30)
✅ White line in neutral range (30–70)
Includes reference lines at 70, 50, and 30 for quick decision-making. Perfect for spotting momentum extremes, divergences, and potential reversal points without squinting at numbers. Works on any timeframe.
My script⯁ OVERVIEW
RSI Momentum Divergence Zones \ is a hybrid oscillator & chart overlay that detects RSI-based momentum divergences and projects them as key zones on your chart. By combining RSI divergence logic with horizontal level plotting, it reveals high-probability support and resistance areas where price has historically reacted to hidden or classic divergences.
⯁ KEY FEATURES
Momentum-Based RSI Source:
Automatic Divergence Detection (Optional):
Scans continuously for:
Bullish Divergence: Price ↓ makes Lower Low, RSI ↑ makes Higher Low
Bearish Divergence: Price ↑ makes Higher High, RSI ↓ makes Lower High
Validates divergences by ensuring pivot spacing is between 5–50 bars ⏱.
Divergence Labels & Markers (RSI Pane + Price Chart):
On the RSI pane: labels at HL/LH points (“Bull” / “Bear”), plus colored lines showing pivot structure
On the price chart: “▲ Bull” / “Bear ▼” mark the price pivot triggering divergence, with lines highlighting the divergence level.
Divergence Zones / Levels (Toggleable):
Projects horizontal zones based on confirmed divergence points—these act as dynamic S/R zones.
Zones extend rightward if respected; turn dashed and expire when price breaks them.
Zone Layering & Limit Control:
Option to limit number of zones shown (e.g., last 10), with older zones auto-expiring to declutter.
Color Customization & Intensity:
Choose different colors for bullish and bearish zones. Adjust background fill, line width, transparency for clarity.
Clean Zone Management (Arrays):
Utilizes custom `divLevel` arrays in the script for smooth plotting, extending, and removal of levels.
⯁ USAGE
Use bullish divergence zones as demand zones, bearish ones as supply zones.
Combine RSI pane labels with price-level zones to confirm reversal strength.
Monitor price approaching divergence zones to anticipate reactions or breakouts.
Use zones for trade triggers, stop-loss placement, or take-profit targets.
Reduce clutter using “Qty Divergence Zones” to limit signals.
Enable divergence detection when focusing on key structural zones—great for swing/positional setups.
⯁ CONCLUSION
RSI Momentum Divergence Zones \ blends oscillator divergence logic with price-action structure, uncovering hidden strength or weakness in the market. With flexible zone plotting and clean visual signals, this tool empowers traders to identify where momentum turns into structure—turning hidden signals into tradable edges.
With Emojis Added:
Overview: hybrid indicator that finds key zones where RSI and price diverge
Features: fresh visuals with labels, zones, automatic detection, and customization 🆙
Usage: trade smarter using demand/supply zones, triggers, and visual clarity 🎯
Conclusion: merge momentum and structure to spot hidden edges in the market ✨
Scalping Indicator (EMA + RSI)Buy and Sell Signals. Use with Supply and Demand to find good entries. Do not rely solely on this signal. Monitors with short and long EMA cross along with oversold or overbought RSI.
RSI/Stoch RSI ComboIt shows both rsi and stoch rsi as one indicator. You need to select which one using checkbox.
Clean Multi-Indicator Alignment System
Overview
A sophisticated multi-indicator alignment system designed for 24/7 trading across all markets, with pure signal-based exits and no time restrictions. Perfect for futures, forex, and crypto markets that operate around the clock.
Key Features
🎯 Multi-Indicator Confluence System
EMA Cross Strategy: Fast EMA (5) and Slow EMA (10) for precise trend direction
VWAP Integration: Institution-level price positioning analysis
RSI Momentum: 7-period RSI for momentum confirmation and reversal detection
MACD Signals: Optimized 8/17/5 configuration for scalping responsiveness
Volume Confirmation: Customizable volume multiplier (default 1.6x) for signal validation
🚀 Advanced Entry Logic
Initial Full Alignment: Requires all 5 indicators + volume confirmation
Smart Continuation Entries: EMA9 pullback entries when trend momentum remains intact
Flexible Time Controls: Optional session filtering or 24/7 operation
🎪 Pure Signal-Based Exits
No Forced Closes: Positions exit only on technical signal reversals
Dual Exit Conditions: EMA9 breakdown + RSI flip OR MACD cross + EMA20 breakdown
Trend Following: Allows profitable trends to run their full course
Perfect for Swing Scalping: Ideal for multi-session position holding
📊 Visual Interface
Real-Time Status Dashboard: Live alignment monitoring for all indicators
Color-Coded Candles: Instant visual confirmation of entry/exit signals
Clean Chart Display: Toggle-able EMAs and VWAP with professional styling
Signal Differentiation: Clear labels for entries, X-crosses for exits
🔔 Alert System
Entry Notifications: Separate alerts for buy/sell signals
Exit Warnings: Technical breakdown alerts for position management
Mobile Ready: Push notifications to TradingView mobile app
Market Applications
Perfect For:
Gold Futures (GC): 24-hour precious metals trading
NASDAQ Futures (NQ): High-volatility index scalping
Forex Markets: Currency pairs with continuous operation
Crypto Trading: 24/7 cryptocurrency momentum plays
Energy Futures: Oil, gas, and commodity swing trades
Optimal Timeframes:
1-5 Minutes: Ultra-fast scalping during high volatility
5-15 Minutes: Balanced approach for most markets
15-30 Minutes: Swing scalping for trend following
🧠 Smart Position Management
Tracks implied position direction
Prevents conflicting signals
Allows trend continuation entries
State-aware exit logic
⚡ Scalping Optimized
Fast-reacting indicators with shorter periods
Volume-based confirmation reduces false signals
Clean entry/exit visualization
Minimal lag for time-sensitive trades
Configuration Options
All parameters fully customizable:
EMA Lengths: Adjustable from 1-30 periods
RSI Period: 1-14 range for different market conditions
MACD Settings: Fast (1-15), Slow (1-30), Signal (1-10)
Volume Confirmation: 0.5-5.0x multiplier range
Visual Preferences: Colors, displays, and table options
Risk Management Features
Clear visual exit signals prevent emotion-based decisions
Volume confirmation reduces false breakouts
Multi-indicator confluence improves signal quality
Optional time filtering for session-specific strategies
Best Use Cases
Futures Scalping: NQ, ES, GC during active sessions
Forex Swing Trading: Major pairs during overlap periods
Crypto Momentum: Bitcoin, Ethereum trend following
24/7 Automated Systems: Algorithmic trading implementation
Multi-Market Scanning: Portfolio-wide signal monitoring
Cycle Phase & ETA Tracker [Robust v4]
Cycle Phase & ETA Tracker
Description
The Cycle Phase & ETA Tracker is a powerful tool for analyzing market cycles and predicting the completion of the current cycle (Estimated Time of Arrival, or ETA). It visualizes the cycle phase (0–100%) using a smoothed signal and displays the forecasted completion date with an optional confidence band based on cycle length variability. Ideal for traders looking to time their trades based on cyclical patterns, this indicator offers flexible settings for robust cycle analysis.
Key Features
Cycle Phase Visualization: Tracks the current cycle phase (0–100%) with color-coded zones: green (0–33%), blue (33–66%), orange (66–100%).
ETA Forecast: Shows a vertical line and label indicating the estimated date of cycle completion.
Confidence Band (±σ): Displays a band around the ETA to reflect uncertainty, calculated using the standard deviation of cycle lengths.
Multiple Averaging Methods: Choose from three methods to calculate average cycle length:
Median (Robust): Uses the median for resilience against outliers.
Weighted Mean: Prioritizes recent cycles with linear or quadratic weights.
Simple Mean: Applies equal weights to all cycles.
Adaptive Cycle Length: Automatically adjusts cycle length based on the timeframe or allows a fixed length.
Debug Histogram: Optionally displays the smoothed signal for diagnostic purposes.
Setup and Usage
Add the Indicator:
Search for "Cycle Phase & ETA Tracker " in TradingView’s indicator library and apply it to your chart.
Configure Parameters:
Core Settings:
Track Last N Cycles: Sets the number of recent cycles used to calculate the average cycle length (default: 20). Higher values provide stability but may lag market shifts.
Source: Selects the data source for analysis (e.g., close, open, high; default: close price).
Use Adaptive Cycle Length?: Enables automatic cycle length adjustment based on timeframe (e.g., shorter for intraday, longer for daily) or uses a fixed length if disabled.
Fixed Cycle Length: Defines the cycle length in bars when adaptive mode is off (default: 14). Smaller values increase sensitivity to short-term cycles.
Show Debug Histogram: Enables a histogram of the smoothed signal for debugging signal behavior.
Cycle Length Estimation:
Average Mode: Selects the method for calculating average cycle length: "Median (Robust)", "Weighted Mean", or "Simple Mean".
Weights (for Weighted Mean): For "Weighted Mean", chooses "linear" (moderate emphasis on recent cycles) or "quadratic" (strong emphasis on recent cycles).
ETA Visualization:
Show ETA Line & Label: Toggles the display of the ETA line and date label.
Show ETA Confidence Band (±σ): Toggles the confidence band around the ETA, showing the uncertainty range.
Band Transparency: Adjusts the transparency of the confidence band (0 = fully transparent, 100 = fully opaque; default: 85).
ETA Color: Sets the color for the ETA line, label, and confidence band (default: orange).
Interpretation:
The cycle phase (0–100%) indicates progress: green for the start, blue for the middle, and orange for the end of the cycle.
The ETA line and label show the predicted cycle completion date.
The confidence band reflects the uncertainty range (±1 standard deviation) of the ETA.
If a warning "Insufficient cycles for ETA" appears, wait for the indicator to collect at least 3 cycles.
Limitations
Requires at least 3 cycles for reliable ETA and confidence band calculations.
On low timeframes or low-volatility markets, zero-crossings may be infrequent, delaying ETA updates.
Accuracy depends on proper cycle length settings (adaptive or fixed).
Notes
Test the indicator across different assets and timeframes to optimize settings.
Use the debug histogram to troubleshoot if the ETA appears inaccurate.
For feedback or suggestions, contact the author via TradingView.
Cycle Phase & ETA Tracker
Описание
Индикатор Cycle Phase & ETA Tracker предназначен для анализа рыночных циклов и прогнозирования времени завершения текущего цикла (ETA — Estimated Time of Arrival). Он отслеживает фазы цикла (0–100%) на основе сглаженного сигнала и отображает предполагаемую дату завершения цикла с опциональной доверительной полосой, основанной на стандартном отклонении длин циклов. Индикатор идеально подходит для трейдеров, которые хотят выявлять циклические закономерности и планировать свои действия на основе прогнозируемого времени.
Ключевые особенности
Фазы цикла: Визуализирует текущую фазу цикла (0–100%) с цветовой кодировкой: зеленый (0–33%), синий (33–66%), оранжевый (66–100%).
Прогноз ETA: Показывает вертикальную линию и метку с предполагаемой датой завершения цикла.
Доверительная полоса (±σ): Отображает зону неопределенности вокруг ETA, основанную на стандартном отклонении длин циклов.
Гибкие методы усреднения: Поддерживает три метода расчета средней длины цикла:
Median (Robust): Медиана, устойчивая к выбросам.
Weighted Mean: Взвешенное среднее, где недавние циклы имеют больший вес (линейный или квадратичный).
Simple Mean: Простое среднее с равными весами.
Адаптивная длина цикла: Автоматически подстраивает длину цикла под таймфрейм или позволяет задать фиксированную длину.
Отладочная гистограмма: Опционально отображает сглаженный сигнал для анализа.
Настройка и использование
Добавьте индикатор:
Найдите "Cycle Phase & ETA Tracker " в библиотеке индикаторов TradingView и добавьте его на график.
Настройте параметры:
Core Settings:
Track Last N Cycles: Количество последних циклов для расчета средней длины (по умолчанию 20). Большие значения дают более стабильные результаты, но могут запаздывать.
Source: Источник данных (по умолчанию цена закрытия).
Use Adaptive Cycle Length?: Включите для автоматической настройки длины цикла по таймфрейму или отключите для использования фиксированной длины.
Fixed Cycle Length: Длина цикла в барах, если адаптивная длина отключена (по умолчанию 14).
Show Debug Histogram: Включите для отображения сглаженного сигнала (полезно для отладки).
Cycle Length Estimation:
Average Mode: Выберите метод усреднения: "Median (Robust)", "Weighted Mean" или "Simple Mean".
Weights (for Weighted Mean): Для режима "Weighted Mean" выберите "linear" (умеренный вес для новых циклов) или "quadratic" (сильный вес для новых циклов).
ETA Visualization:
Show ETA Line & Label: Включите для отображения линии и метки ETA.
Show ETA Confidence Band (±σ): Включите для отображения доверительной полосы.
Band Transparency: Прозрачность полосы (0 — полностью прозрачная, 100 — полностью непрозрачная, по умолчанию 85).
ETA Color: Цвет для линии, метки и полосы (по умолчанию оранжевый).
Интерпретация:
Фаза цикла (0–100%) показывает прогресс текущего цикла: зеленый — начало, синий — середина, оранжевый — конец.
Линия и метка ETA указывают предполагаемую дату завершения цикла.
Доверительная полоса показывает диапазон неопределенности (±1 стандартное отклонение).
Если отображается предупреждение "Insufficient cycles for ETA", дождитесь, пока индикатор соберет минимум 3 цикла.
Ограничения
Требуется минимум 3 цикла для надежного расчета ETA и доверительной полосы.
На низких таймфреймах или рынках с низкой волатильностью пересечения нуля могут быть редкими, что замедляет обновление ETA.
Эффективность зависит от правильной настройки длины цикла (fixedL или адаптивной).
Примечания
Протестируйте индикатор на разных таймфреймах и активах, чтобы подобрать оптимальные параметры.
Используйте отладочную гистограмму для анализа сигнала, если ETA кажется неточным.
Для вопросов или предложений по улучшению свяжитесь через TradingView.
RSI Divergence (Regular+Hidden) Detector(Mastersinnifty)Description
The RSI Divergence (Regular + Hidden) Detector identifies both regular and hidden divergences between price and the Relative Strength Index (RSI). It automatically marks divergence points on the chart using short-form labels for quick recognition:
RB – Regular Bullish Divergence
RS – Regular Bearish Divergence
HB – Hidden Bullish Divergence
HS – Hidden Bearish Divergence
This tool helps traders spot potential reversals or trend continuation setups with clear, on-chart visual signals.
How It Works
Calculates RSI based on user-selected source and length.
Scans a specified lookback range for matching high/low points in price and RSI.
Validates divergences based on minimum RSI difference and minimum price percentage difference.
Marks detected divergences with short-form labels directly on the price chart.
Allows toggling between regular and hidden divergence detection.
Inputs
RSI Length – Period for RSI calculation.
Lookback Bars – Number of bars to scan for divergence.
Minimum RSI Difference – Minimum required RSI value change between points.
Minimum Price Difference (%) – Minimum required price percentage change between points.
Overbought / Oversold Levels – RSI thresholds for signal validation.
Show Regular Divergences – Enable/disable regular divergence detection.
Show Hidden Divergences – Enable/disable hidden divergence detection.
Use Case
Identify potential reversal points using regular divergences.
Spot possible trend continuation opportunities with hidden divergences.
Enhance entry/exit timing by combining divergence signals with other technical tools.
Apply in any market and timeframe, from scalping to swing trading.
Disclaimer
This indicator is for educational and research purposes only. It does not guarantee future performance. Always combine signals with your own analysis and risk management strategy before making trading decisions.
Market Regime Matrix [Alpha Extract]A sophisticated market regime classification system that combines multiple technical analysis components into an intelligent scoring framework to identify and track dominant market conditions. Utilizing advanced ADX-based trend detection, EMA directional analysis, volatility assessment, and crash protection protocols, the Market Regime Matrix delivers institutional-grade regime classification with BULL, BEAR, and CHOP states. The system features intelligent scoring with smoothing algorithms, duration filters for stability, and structure-based conviction adjustments to provide traders with clear, actionable market context.
🔶 Multi-Component Regime Engine Integrates five core analytical components: ADX trend strength detection, EMA-200 directional bias, ROC momentum analysis, Bollinger Band volatility measurement, and zig-zag structure verification. Each component contributes to a sophisticated scoring system that evaluates market conditions across multiple dimensions, ensuring comprehensive regime assessment with institutional precision.
// Gate Keeper: ADX determines market type
is_trending = adx_value > adx_trend_threshold
is_ranging = adx_value <= adx_trend_threshold
is_maximum_chop = adx_value <= adx_chop_threshold
// BULL CONDITIONS with Structure Veto
if price_above_ema and di_bullish
if use_structure_filter and isBullStructure
raw_bullScore := 5.0 // MAXIMUM CONVICTION: Strong signals + Bull structure
else if use_structure_filter and not isBullStructure
raw_bullScore := 3.0 // REDUCED: Strong signals but broken structure
🔶 Intelligent Scoring System Employs a dynamic 0-5 scale scoring mechanism for each regime type (BULL/BEAR/CHOP) with adaptive conviction levels. The system automatically adjusts scores based on signal alignment, market structure confirmation, and volatility conditions. Features decision margin requirements to prevent false regime changes and includes maximum conviction thresholds for high-probability setups.
🔶 Advanced Structure Filter Implements zig-zag based market structure analysis using configurable deviation thresholds to identify significant pivot points. The system tracks Higher Highs/Higher Lows (HH/HL) for bullish structure and Lower Lows/Lower Highs (LL/LH) for bearish structure, applying structure veto logic that reduces conviction when price action contradicts the underlying trend framework.
// Define Market Structure (Bull = HH/HL, Bear = LL/LH)
isBullStructure = not na(last_significant_high) and not na(prev_significant_high) and
not na(last_significant_low) and not na(prev_significant_low) and
last_significant_high > prev_significant_high and last_significant_low > prev_significant_low
isBearStructure = not na(last_significant_high) and not na(prev_significant_high) and
not na(last_significant_low) and not na(prev_significant_low) and
last_significant_low < prev_significant_low and last_significant_high < prev_significant_high
🔶 Superior Engine Components Features dual-layer regime stabilization through score smoothing and duration filtering. The score smoothing component reduces noise by averaging raw scores over configurable periods, while the duration filter requires minimum regime persistence before confirming changes. This eliminates whipsaws and ensures regime transitions represent genuine market shifts rather than temporary fluctuations.
🔶 Crash Detection & Active Penalties Incorporates sophisticated crash detection using Rate of Change (ROC) analysis with severity classification. When crash conditions are detected, the system applies active penalties (-5.0) to BULL and CHOP scores while boosting BEAR conviction based on crash severity. This ensures immediate regime response to major market dislocations and drawdown events.
// === CRASH OVERRIDE (Active Penalties) ===
is_crash = roc_value < crash_threshold
if is_crash
// Calculate crash severity
crash_severity = math.abs(roc_value / crash_threshold)
crash_bonus = 4.0 + (crash_severity - 1.0) * 2.0
// ACTIVE PENALTIES: Force bear dominance
raw_bearScore := math.max(raw_bearScore, crash_bonus)
raw_bullScore := -5.0 // ACTIVE PENALTY
raw_chopScore := -5.0 // ACTIVE PENALTY
❓How It Works
🔶 ADX-Based Market Classification The Market Regime Matrix uses ADX (Average Directional Index) as the primary gatekeeper to distinguish between trending and ranging market conditions. When ADX exceeds the trend threshold, the system activates BULL/BEAR regime logic using DI+/DI- crossovers and EMA positioning. When ADX falls below the ranging threshold, CHOP regime logic takes precedence, with maximum conviction assigned during ultra-low ADX periods.
🔶 Dynamic Conviction Scaling Each regime receives conviction ratings from UNCERTAIN to MAXIMUM based on signal alignment and score magnitude. MAXIMUM conviction (5.0 score) requires perfect signal alignment plus favorable market structure. The system progressively reduces conviction when signals conflict or structure breaks, ensuring traders understand the reliability of each regime classification.
🔶 Regime Transition Management Implements decision margin requirements where new regimes must exceed existing regimes by configurable thresholds before transitions occur. Combined with duration filtering, this prevents premature regime changes and maintains stability during consolidation periods. The system tracks both raw regime signals and final regime output for complete transparency.
🔶 Visual Regime Mapping Provides comprehensive visual feedback through colored candle overlays, background regime highlighting, and real-time information tables. The system displays regime history, conviction levels, structure status, and key metrics in an organized dashboard format. Regime changes trigger immediate visual alerts with detailed transition information.
🔶 Performance Optimization Features efficient array management for zig-zag calculations, smart variable updating to prevent recomputation, and configurable debug modes for strategy development. The system maintains optimal performance across all timeframes while providing institutional-grade analytical depth.
Why Choose Market Regime Matrix ?
The Market Regime Matrix represents the evolution of market regime analysis, combining traditional technical indicators with modern algorithmic decision-making frameworks. By integrating multiple analytical dimensions with intelligent scoring, structure verification, and crash protection, it provides traders with institutional-quality market context that adapts to changing conditions. The sophisticated filtering system eliminates noise while preserving responsiveness, making it an essential tool for traders seeking to align their strategies with dominant market regimes and avoid adverse market environments.