MACD/RSI/VWAP/MA/S&R BulkThis all-in-one script packs five of the market's most essential technical analysis tools into a single indicator slot. By combining momentum, trend, volume, and structural levels, you get a complete institutional-grade workspace without hitting upgrade walls or paying monthly subscription fees.
☕ If this indicator helps you optimize your charts and save on subscription costs, consider supporting my work! Buy me a coffee here: ko-fi.com
(Need a custom indicator built specifically for your trading strategy? Reach out for custom Pine Script development!)
🛠️ What's Included in the Bulk Suite?
Dual Moving Averages (MA): Fully customizable fast and slow moving averages. Choose your preferred calculation type (SMA, EMA, WMA, HMA, VWMA, RMA), set your exact lengths, and track trend direction directly on your chart.
VWAP (Volume Weighted Average Price): The gold standard for tracking intraday institutional fair value and average price execution.
Support & Resistance (S/R): Automatically plots historical swing points with clean vertical breaks (linebr), giving you clear structural boundaries for breakout and pullback planning.
MACD (Moving Average Convergence Divergence): Standard momentum and trend-following oscillator to capture shifts in market velocity.
RSI (Relative Strength Index): Essential momentum oscillator with customizable overbought and oversold levels to spot exhaustion and reversals.
⚙️ Full Customization & Control
Every single tool inside this suite comes with independent settings. You can completely toggle individual indicators on or off, adjust their lookback lengths, and fine-tune colors to keep your workspace clean, organized, and tailored precisely to your personal trading plan. Indicator

RSI Divergence Indicator RSI Divergence Indicator — Enhanced
An enhanced RSI indicator combining traditional RSI divergence detection with flexible smoothing and a dynamic trend-color system.
This indicator is designed to give traders a cleaner view of momentum, trend direction, and divergence in one RSI pane.
Key Features
Dynamic RSI Trend Coloring
The RSI can automatically change color based on the relationship between a fast and slow RSI:
🟢 Green — Fast RSI is above Slow RSI, indicating bullish momentum.
🔴 Red — Fast RSI is below Slow RSI, indicating bearish momentum.
The feature can be turned on or off from the Divergence settings.
The Fast RSI and Slow RSI lengths are fully adjustable, with defaults of 5 and 14.
RSI Smoothing
Choose from several smoothing methods for the RSI:
None
SMA
SMA + Bollinger Bands
EMA
SMMA (RMA)
WMA
VWMA
The smoothing length is fully adjustable.
RSI Bollinger Bands
When SMA + Bollinger Bands is selected, Bollinger Bands are automatically displayed around the smoothed RSI.
The BB Standard Deviation is adjustable, allowing traders to customize the band width.
Multiple RSI Levels
The indicator includes five important RSI reference levels:
70 — Overbought
60 — Bullish momentum zone
50 — Midline / neutral
40 — Bearish momentum zone
30 — Oversold
The 40 and 60 levels provide additional context for identifying momentum shifts before RSI reaches traditional overbought or oversold levels.
Regular Divergence
Detects traditional divergence between price and RSI:
Bullish Divergence
Price makes a Lower Low
RSI makes a Higher Low
Bearish Divergence
Price makes a Higher High
RSI makes a Lower High
Hidden Divergence
Also identifies hidden divergence:
Hidden Bullish
Price makes a Higher Low
RSI makes a Lower Low
Hidden Bearish
Price makes a Lower High
RSI makes a Higher High
Customizable Divergence Detection
The pivot lookback and divergence range settings allow traders to adjust how sensitive the divergence detection is.
Alerts
Alert conditions are included for:
Regular Bullish Divergence
Hidden Bullish Divergence
Regular Bearish Divergence
Hidden Bearish Divergence
Why Use This Indicator?
The goal of this indicator is to combine several useful RSI tools into one clean and customizable package.
Instead of relying on RSI alone, traders can use:
RSI + Dynamic Momentum Color + Smoothing + Bollinger Bands + 40/60 Momentum Levels + Regular Divergence + Hidden Divergence
This provides multiple ways to assess momentum and potential trend changes without requiring several separate indicators.
Suggested Starting Settings
For a balanced starting point:
RSI Period: 14
Smoothing: None
Fast RSI: 5
Slow RSI: 14
Overbought: 70
Bullish momentum: 60
Midline: 50
Bearish momentum: 40
Oversold: 30
These are simply starting points and can be adjusted depending on the market, timeframe, and trading style.
Important
This indicator is intended as a technical analysis tool and should not be considered financial advice. Divergences and momentum signals can fail, particularly during strong trends or volatile market conditions. Always combine indicator signals with your own analysis and risk management. Indicator

Gann Reversal ConfluenceWhy this works
W.D. Gann never traded a reversal bar in isolation — a swing high/low break, key reversal, or outside bar was a trigger, not a signal on its own. He wanted it lining up with the bigger picture: was the move overextended, was volume backing it, was it a big enough bar to matter. Most free "Gann reversal" scripts on PulseWire just plot the raw bar pattern and stop there — every swing break gets a triangle, whether it's a meaningful turn or noise. This indicator keeps the classic pattern detection but scores each one against the context Gann actually cared about, so you can see how much is lining up, not just that a shape appeared.
How this works
Pattern detection — pick one of three classic reversal triggers: Swing (price closes beyond the recent N-bar high/low), Key Reversal (new extreme that closes back through the prior close), or Outside Bar (engulfs the prior range and closes in the reversal direction).
Confluence scoring — every raw pattern is checked against up to five independent factors:
Range (ATR) — was the bar itself big enough to matter, or just noise?
Volume — did participation back the move?
Momentum (RSI) — was the market actually stretched, or was this a mid-range wiggle?
Trend (EMA) — is this a pullback with the trend, or a potential trend change against it? (shown, not scored against you)
Hour-ruler (optional, off by default) — a traditional Chaldean planetary-hour tag. Descriptive only, not a validated filter — treat it as a curiosity layered on top of the technical factors, not evidence on its own.
Cooldown — a minimum bar gap between signals stops the same swing from re-triggering repeatedly.
Everything commits on bar close only. Nothing here repaints or changes after the fact.
How to use it
Start with the defaults. Watch how the confluence score (shown next to each signal and in the status table) moves with the setups you'd have taken anyway.
Raise "Minimum confluence score to show signal" to hide everything below your conviction threshold — e.g. set it to 3 to only see signals where 3+ factors agree.
Use the level line each signal draws as a reference point for how price behaved on the next visit, not as a target.
This is a confluence aid, meant to sit alongside your own read of the chart and risk management — not a standalone entry/exit system.
Settings
Logic — reversal method, swing length, close vs. wick confirmation, minimum bars between signals.
Confluence — independently toggle ATR/Volume/RSI/Trend, tune each threshold, and set the minimum score required to show a signal.
Astro (optional) — off by default; enables the hour-ruler tag and lets you set a location for the sunrise/sunset calc it depends on.
Display — swing band, signal level lines, background highlight, confluence score label, status table (with position control), colors, and line styling.
Non-repainting. Every signal is final the moment it prints. Indicator

NeuPortal - Base Rate SignalsFive standard entry rules running simultaneously on the price chart: moving average crossover, RSI reversal, MACD cross, Bollinger re-entry and Stochastic cross. Each marks its own small triangle under or over the candle, tagged with the rule that fired it. When several agree on the same bar, a consensus label is drawn.
That part is ordinary. Thousands of scripts do it.
THE NUMBER EVERY SIGNAL SCRIPT LEAVES OUT
Each rule is scored live against the base rate on your chart. The table prints three things per rule:
hit - how often that rule was followed by a move in its own direction
base - how often ANY bar was followed by that same move over the same window
edge - the difference
That difference is the only thing an entry rule can honestly claim.
A rule that hits 54% sounds like an edge until you ask what a bar picked at random scores. In a market that drifted upward over the sample, "price is higher 20 bars later" might be true 53% of the time whatever you do. A rule at 54% against a 53% baseline has found almost nothing. Every signal indicator in existence reports the 54 and omits the 53.
The edge will often be small and sometimes negative. That is the expected result, not a fault in the script. On ETHUSDT 4h at the time of writing, a WMA 21/65 crossover long scores 44.7% against a base rate of 51.1% - an edge of minus 6.4 across 123 signals and 10,026 scored bars. Buying a random bar would have been better than buying that signal.
THE CONSENSUS ROW IS AN EXPERIMENT, NOT A FEATURE
"Three indicators confirm the entry" rests on an assumption nobody checks: that three indicators are three pieces of evidence.
They are not. Measured over 19,580 four-hour bars of full Binance history, the rank correlation between these families runs around 0.80. Stochastic against Williams %R reaches 0.92; RSI against CCI 0.90. For n readings correlated at r, the effective number of independent readings is about n / (1 + (n - 1) * r). Five rules at 0.80 come to roughly 1.4.
So set how many rules must agree, and watch what happens. If agreement were evidence, the edge would rise as the threshold rises. Usually only the signal count falls. Trading less often for the same expectation is not an improvement, and this is the first indicator I know of that lets you see that rather than assume it.
TIMING
Three modes. Confirmed waits for the bar to close and never changes afterwards. Anticipate fires one bar earlier by projecting each rule's spread across zero, so some of those crosses never happen. Live fires on the unfinished bar and repaints.
Switch between them and watch the edge column. Earlier is only better if the edge improves, and usually it does not. Note that in Live mode the historical percentages were not earned under those conditions - history contains no unfinished bars, so every past signal was scored as confirmed. Live mode flatters itself, and the table marks it.
HOW THE SCORING WORKS
A signal counts as correct if price closed higher (long) or lower (short) a fixed number of bars later. Every count uses only bars that had already completed when the label was drawn, so nothing repaints and no percentage knows anything the chart did not. Early in a chart the sample is tiny and the table says "too few" rather than printing a flattering number from six observations.
WHAT THIS IS NOT
Not a strategy and not advice. Hit rate says nothing about the size of wins against losses: a rule right 60% of the time can lose money steadily. This measures direction only, over one fixed horizon, with no costs, no slippage and no position sizing.
It is a tool for finding out whether a familiar rule does anything at all on your instrument. The usual answer is very little, and knowing that is worth more than another arrow.
Indicator

Indicator

SHK CCI 6 MA BOLLINGER BANDS RSI DUAL DIVERGENCE
SHK CCI 6 MA BOLLINGER BANDS RSI DUAL DIVERGENCE
A dual-oscillator divergence engine that runs CCI and RSI side-by-side in the same pane, cross-confirms divergence signals between them, and wraps the CCI line in an adaptive Bollinger Band for volatility context.
What it does
This indicator plots three things in one pane:
CCI (Commodity Channel Index), colored by trend state and filtered through a selectable signal moving average
RSI (Relative Strength Index), colored by 50-midline bias
A Bollinger Band envelope around the CCI line for spotting volatility expansion/contraction
On top of that, it independently scans both CCI and RSI for regular bullish/bearish divergence against price, and flags the bars where both oscillators agree — a higher-confidence signal than either alone.
How the signal engine works
CCI = (source − SMA(source)) / (0.015 × mean deviation), using HLC3 by default
Signal MA: the CCI line is compared against a moving average of itself to determine trend bias (CCI ≥ MA = bullish tint, CCI < MA = bearish tint). Choose from six MA types: SMA, EMA, ALMA, DEMA, QEMA, DWMA
DEMA/QEMA/DWMA are custom-built (not native to Pine) — DEMA is a double-smoothed EMA, QEMA is a quadruple-nested EMA, DWMA is a double-smoothed WMA. Higher smoothing = fewer whipsaws, more lag
RSI runs on its own independent length setting (separate from the CCI length), so you can tune sensitivity for each oscillator without them fighting each other
Divergence detection uses pivot highs/lows on both CCI and RSI, checked against price action within a configurable bar-distance window (so old, stale pivots don't get matched against fresh ones)
CCI Bollinger Bands: a standard basis ± multiplier × standard deviation envelope calculated on either the raw CCI value or the Signal MA (your choice), letting you see when CCI is stretching outside its normal range
How to read the chart
Element What it means
CCI line color Green/teal shades = CCI above its Signal MA (bullish bias); red/pink shades = CCI below (bearish bias). Deeper/brighter shade = also above/below the zero line, i.e. stronger confluence
Signal MA line Green when the underlying Heikin-Ashi candle is bullish, red when bearish
RSI line Blue above 50, orange below 50
Purple bands around CCI Bollinger envelope — CCI pushing outside the bands signals unusually strong momentum for the current length setting
Fill between CCI and Signal MA Green fill = CCI trending above MA, red fill = CCI trending below
White dashed lines (OB/OS) Customizable overbought/oversold reference levels for CCI (defaults: +100 / −200)
White solid line at 35 Fixed RSI reference level
Labels — how to identify each signal
"C" (aqua, pointing up) — CCI regular bullish divergence: price makes a lower low, CCI makes a higher low
"C" (orange, pointing down) — CCI regular bearish divergence: price makes a higher high, CCI makes a lower high
"R" (green, pointing up) — RSI regular bullish divergence
"R" (red, pointing down) — RSI regular bearish divergence
"D" (lime, larger, pointing up) — Dual confirmation: CCI and RSI both show bullish divergence on the same swing — the strongest bullish signal this script produces
"D" (red, larger, pointing down) — Dual confirmation bearish — the strongest bearish signal this script produces
The "D" labels are the ones to weight most heavily; the standalone "C"/"R" labels are useful context but are single-oscillator signals and appear more frequently.
Inputs, grouped as they appear in settings
CCI Settings — CCI length, source, Signal MA type, Signal MA length
RSI Settings — RSI length (independent of CCI length)
MA Params — ALMA offset/sigma (only relevant if Signal MA Type = ALMA)
Levels — Overbought/Oversold reference lines for CCI
Features — toggle divergence detection on/off entirely
Bollinger Bands - CCI — show/hide, length, multiplier, and whether the band wraps the raw CCI value or the Signal MA
Divergence — pivot lookback (left/right bars) and min/max bar distance between pivots used to validate a divergence
Suggested use
Use the "D" dual-confirmation labels as your primary trigger, and the individual "C"/"R" labels as early warning / confluence-building context
Widen the CCI Bollinger Band multiplier on choppier instruments to reduce noise; tighten it on trending instruments to catch momentum extremes earlier
Try DEMA/QEMA/DWMA as the Signal MA type if you find the default ALMA too reactive or too laggy for your timeframe — each trades off responsiveness against whipsaw filtering differently
Works on any timeframe and instrument; divergence-based tools generally perform best combined with a higher-timeframe trend filter or support/resistance context rather than in isolation
Notes
This is a visual/analytical tool, not a standalone buy/sell signal generator — treat divergence as one input among several in your decision process, not a mechanical trigger
Divergence signals are confirmed only after the right-side pivot lookback bars have closed, so labels appear with a small lag by design (this avoids repainting on the pivot itself)
Disclaimer
This script is for educational and informational purposes only and does not constitute financial advice. It is not a recommendation to buy or sell any security or instrument. Trading and investing involve substantial risk of loss and are not suitable for every investor. Past performance, including any backtested or simulated results, is not indicative of future results.
Always analyze the indicator's behavior across different market conditions and backtest thoroughly on your own instruments and timeframes before using it in live trading. Trade at your own risk — you are solely responsible for your own trading decisions. Indicator

Indicator

Indicator

MT5 Webhook Alert Template JSON alerts for any bridge A ready-to-use alert template that fires webhook-compatible JSON messages on
EMA-cross + RSI-filtered signals. Built to send PulseWire alerts straight to
MetaTrader 5 through any webhook bridge.
HOW TO USE (2 minutes):
1. Add the indicator to your chart.
2. Create an alert (Alt+A) on this indicator, condition "Any alert() function
call", and paste your bridge's webhook URL into the Webhook URL field.
3. Done — the alert message is already valid JSON, don't edit it.
MESSAGE FORMAT (works with most MT5 bridges):
{"action":"buy","symbol":"EURUSD","lot":0.01,"sl":50,"tp":100}
{"action":"sell","symbol":"EURUSD","lot":0.01,"sl":50,"tp":100}
- action: buy | sell | close | closeall
- sl / tp: distance in points (optional, set to 0 to omit)
- Symbol override input if your broker uses suffixes (e.g. EURUSD.pro)
Alerts evaluate on bar close (no intrabar repainting). The indicator is also
useful on its own as a visual signal — no bridge required.
DEFAULT SETTINGS WARNING:
The shipped defaults (Fast EMA 1 / Slow EMA 3 / RSI 2) are an intentionally
fast demo configuration so you can see signals right away. They will fire
VERY often, including many low-quality crosses. Signals only confirm on bar
close, so a cross can still appear and disappear intrabar before confirming.
Tune Fast/Slow EMA and RSI length to your own strategy and symbol before
using it live — treat the defaults as a starting point, not a ready system. Indicator

NeuPortal Market Compass - Empirical Bands, Regime & IndicesNeuPortal Market Compass is a single overlay that instruments any symbol on any timeframe with three layers of context plus a readout dashboard, so you get the useful curves, the envelope, a forward band and the key indices from one indicator instead of stacking five.
WHAT IT DRAWS
1) Trend curves. EMA fast / mid / slow (20 / 50 / 200 by default) and an optional VWAP. The classic structure read at a glance.
2) Volatility envelope. A standard Bollinger band (20, 2 by default) for immediate context on how stretched price is right now.
3) Empirical forecast band. This is the part that is different. Instead of a sigma*sqrt(t) projection, it reads the distribution of the chart's OWN realised H-bar moves over the history window and takes quantiles from it: a core 50% zone (25th to 75th percentile), a wide 80% zone (10th to 90th) and the median, all projected forward H bars into empty space to the right of the last candle.
Why empirical rather than parametric: real markets have fat tails and volatility clustering, so a normal, independent-returns assumption misprices the interval - and it does so in different directions at different horizons. Reading the quantiles straight from history avoids that assumption entirely. The band is only as trustworthy as the sample behind it, so the dashboard prints the number of INDEPENDENT windows (history window / horizon), not the inflated overlapping count.
DASHBOARD (top-right, movable)
- Regime: trend direction from the EMAs, with strength gated by ADX
- RSI, ADX, ATR% - momentum, trend strength and volatility at a glance
- Median, Core 50% and Wide 80% band edges for the chosen horizon
- Band width as a percent of price - how much the market itself says it can move
- Independent windows behind the band - the honest sample size
HOW TO USE
Set the Horizon to how many bars ahead you care about and the History window to how much past data feeds the distribution. Watch coverage over time: across many bars, price should sit inside the 50% core about half the time and inside the 80% band about eighty percent of the time. A band that contains price far more often than that is padded; far less often is overconfident. Both are information.
SETTINGS
Toggle each layer independently (EMAs, VWAP, Bollinger, band, dashboard), set all lengths, recolour the zones, move the dashboard, and optionally tint the background Indicator

Confluence Suite: Pivot Points SuperTrend Confluence Suite: PP SuperTrend + VWAP + MACD + RSI + ADX + Volume
A multi-factor confluence dashboard built around Pivot Point SuperTrend, designed for futures trading on any timeframe.
Overview
This indicator combines six widely-used tools into a single confluence system with a live on-chart dashboard:
Pivot Point SuperTrend — the core trend/entry engine, using pivot highs/lows instead of a simple moving midpoint to anchor its ATR bands
VWAP — session-anchored, used to gauge whether price is trading with or against the volume-weighted average
MACD — momentum confirmation and early continuation signals
RSI — momentum/overbought-oversold context
ADX / DMI — trend-strength filter, so signals can be weighted by whether the market is actually trending or chopping
Volume — flags above-average participation and volume spikes
Higher-timeframe (HTF) bias filter — checks trend direction on a higher timeframe (EMA-based or ATR SuperTrend-based) before treating a signal as confirmed
All of this feeds a compact on-chart dashboard table that shows the live bias of every component at a glance, plus a running bullish/bearish confluence score.
How signals work
Raw flip signals — small triangles mark every Pivot Point SuperTrend direction flip
Confirmed signals — larger LONG/SHORT labels fire when a flip is also aligned with the HTF bias filter (and optionally ADX strength), meant to filter out lower-quality flips
Continuation signals — smaller circular markers that fire while an existing trend is still active, triggered by a pullback-and-reclaim of a short EMA, an RSI reset through 50, or a MACD cross (configurable), so the tool isn't limited to a single signal per swing
Dashboard
A table (position and size configurable) shows the current bias of PP SuperTrend, VWAP, MACD, RSI, ADX, Volume, HTF Bias, and Continuation mode, along with an aggregate bull/bear confluence count — useful for judging signal quality at a glance rather than reading each indicator separately.
Inputs
Every component is independently configurable: Pivot Point period, ATR factor/period, VWAP source, MACD lengths, RSI length/levels, ADX/DMI length and strength threshold, volume MA length and spike multiplier, HTF timeframe and bias method, continuation trigger type and cooldown, and dashboard placement/size. Built-in alert conditions are included for raw flips, confirmed signals, and continuation signals.
How to use it
This is a discretionary confluence tool, not a standalone automated strategy. It's best used to:
Gauge whether a Pivot Point SuperTrend flip has broader support from momentum, volume, and higher-timeframe trend before acting on it
Track ongoing trend health via the continuation signals and dashboard, rather than only reacting at the initial flip
Filter out lower-quality setups using the ADX and HTF alignment options
As with any indicator, backtest and forward-test on your specific instrument and timeframe before trading it live, since default settings won't be optimal for every market or volatility regime.
Credits and originality
The core trend engine is an original implementation of the Pivot Point SuperTrend technique, a widely used community approach that anchors SuperTrend-style ATR bands to pivot highs/lows rather than a simple moving midpoint — a method popularized on PulseWire by LonesomeTheBlue. This script's contribution is combining that engine with VWAP, MACD, RSI, ADX, volume, an HTF bias filter, a continuation-signal engine, and a unified live dashboard into one integrated confluence tool, rather than requiring multiple separate indicators on the chart.
Disclaimer
This script is provided for educational and informational purposes only and does not constitute financial advice. Trading futures involves substantial risk of loss and is not suitable for all investors. Past performance of any strategy or setup does not guarantee future results. Always do your own research and risk management before trading. Indicator

Indicator

RSI Divergence + EMA Trend FilterDescription:
Divergence is one of the most discussed concepts in technical analysis and one of the most misapplied. The core idea is simple: when price makes a new high but the RSI makes a lower high, momentum is weakening even as price advances. That disconnect between price action and momentum is what divergence measures — and it often precedes reversals before price itself confirms the change in direction.
This strategy formalizes that concept into a rule-based, backtestable system with two components: RSI divergence detection and an EMA trend filter that determines which divergences to act on.
What divergence actually measures
RSI measures the speed and magnitude of price changes. When price reaches a new swing high but RSI fails to reach a correspondingly higher reading, it means the buying pressure behind the new high was weaker than the buying pressure behind the previous high. The market got to a higher price but required less momentum to do it — which suggests the move is losing conviction. Bearish divergence (price higher, RSI lower) signals potential exhaustion in an uptrend. Bullish divergence (price lower, RSI higher) signals potential exhaustion in a downtrend.
Important: divergence is a momentum signal, not a reversal guarantee. Price can continue making new highs with weakening RSI for a significant period before actually reversing. This is why divergence signals work best when combined with a trend filter that identifies the broader market context.
The EMA filter
The 200 EMA defines the dominant trend regime. Bearish divergence signals — where momentum is weakening on the upside — are only acted on when price is below the 200 EMA, meaning the broader trend is already bearish and divergence represents a potential resumption of that trend after a counter-trend bounce. Bullish divergence signals are only acted on when price is above the 200 EMA, where they represent potential continuations of the dominant uptrend after a pullback with improving momentum.
This filter deliberately reduces the total number of signals. Many valid divergences occur against the dominant trend and produce short-lived reversals that reverse again quickly. By requiring trend alignment, the strategy trades fewer setups but acts on the ones with a higher probability of following through.
How divergence is detected
The strategy identifies swing highs and swing lows using a lookback period — the number of bars on each side of a pivot that must be lower (for a high) or higher (for a low) to qualify as a genuine swing point. When two consecutive swing highs show price making a higher high but RSI making a lower high, bearish divergence is flagged. When two consecutive swing lows show price making a lower low but RSI making a higher low, bullish divergence is flagged.
The lookback length is the most important input to tune. A shorter lookback detects more swing points and generates more signals, but many will be minor pivots in the context of noise. A longer lookback requires more significant swing points and generates fewer, higher-quality signals. On daily charts, a lookback of 5 works well. On lower timeframes, 3 to 4 is more appropriate.
Exits
Positions exit at an ATR-based stop-loss and a fixed ATR-based take-profit. The stop is placed beyond the swing point that generated the divergence signal — for a bearish divergence, the stop sits above the swing high; for a bullish divergence, below the swing low. This is intentional: if price breaks through the very level that defined the divergence, the signal is invalidated regardless of what RSI was doing. The take-profit is set at 2x ATR to maintain a positive reward-to-risk ratio across the system.
What to evaluate in backtesting
Look at the signal distribution across different market environments. Divergence strategies tend to perform differently in trending versus ranging markets — in strong trending environments, bearish divergences against the dominant trend will produce many false signals even with the EMA filter. Look at whether the EMA filter is doing real work by temporarily disabling it and comparing signal quality. Check average trade duration — divergence signals that take too long to play out often give back open profit before the take-profit level is reached.
This is not a high-frequency strategy. On daily charts with a 5-bar lookback, signals may appear only a few times per month on a given instrument. That frequency is appropriate — divergence setups require specific conditions to form and should not be forced.
Shared for educational purposes and discussion. This is not investment advice. Backtest on your own instruments and timeframes before drawing conclusions about expected performance. Strategy

Multi-Timeframe Trend Matrix [JOAT]Multi-Timeframe Trend Matrix
Reads several timeframes with several methods at once and scores their agreement into a single alignment signal — without lookahead.
What it is
Trading a single timeframe blinds you to the larger context; watching many by eye is slow and inconsistent. This indicator evaluates a grid of timeframes and trend methods, turns the whole grid into one alignment score, and signals when top-down agreement forms. It is an original multi-timeframe aggregation tool built to avoid the common pitfalls of higher-timeframe requests.
How it works
• The matrix — a set of higher and lower timeframes is each assessed by several independent trend methods (such as a moving-average relationship, a directional trend measure and a momentum read). Each cell of the grid returns simply bullish or bearish, so the picture is easy to interpret.
• No lookahead — every higher-timeframe value is pulled with lookahead disabled, so the indicator never borrows future data from an unclosed higher-timeframe bar. This is a deliberate, disclosed design choice that keeps the signals honest and non-repainting on historical bars.
• Alignment score — the grid is condensed into one signed score representing how strongly all timeframes and methods agree. Full agreement produces a strong reading; a split grid produces a weak, near-neutral one.
• State-machine signals — a Buy fires when alignment turns sufficiently bullish from a non-bullish state; a Sell is the mirror. Requiring a state change means the matrix will not re-signal the same direction repeatedly — the signals are self-spacing.
Trade levels
Each signal draws a red risk box to the ATR stop and a green reward box to the third target, with inner dividers and right-edge labels for entry, stop and each take-profit at your R multiples.
The dashboard
An adjustable alignment-matrix panel displays every timeframe-by-method cell as bullish or bearish, a bipolar alignment-score headline, the active signal, a conviction estimate, and a live first-target-before-stop tally from closed bars only. The grid shows exactly which timeframes agree and which disagree.
How to use it
• Works on any asset; pick a base timeframe and let the grid supply the higher-timeframe context.
• Favour entries when the grid is broadly aligned; be cautious when it is mixed.
• Use it as a top-down filter alongside your own entry method, or take its aligned signals directly.
Settings
The set of timeframes, the methods and their lengths, the alignment threshold, ATR risk multiple and target R multiples, plus visual and dashboard controls.
Originality and usefulness
The contribution is the aggregation framework: a disciplined, lookahead-free multi-timeframe, multi-method grid condensed into one transparent alignment score with a state-machine trigger. Seeing the full grid — not just a final arrow — is what lets a trader trust or override the signal for themselves.
Notes and limitations
• Higher-timeframe values update only as those bars close, so alignment can shift when a higher-timeframe bar completes — this is expected and prevents lookahead bias.
• Strong alignment can still precede a reversal; agreement is context, not certainty.
• The tally reflects only past bars on the current chart and is not a forecast.
• Educational and analytical tool, not financial advice.
— made with passion by officialjackofalltrades
Indicator

RSI Divergence Hunter [JOAT]RSI Divergence Hunter
Automatically detects the four classic RSI divergence types on confirmed pivots and frames each one as a trade.
What it is
Divergence between price and momentum is one of the oldest reversal and continuation reads, but marking it by hand is subjective and easy to force. This indicator detects all four divergence types algorithmically on confirmed pivots, so what you see is defined and repeatable, and then attaches a full trade structure to each. It is an original divergence engine, not a plain RSI plot.
How it works
• RSI core — the relative strength index measures the speed and size of recent moves. It is the momentum reference every divergence is measured against.
• Confirmed pivots — the engine waits for pivots on both price and RSI to confirm a set number of bars back before comparing them. Because pivots are only evaluated once confirmed, a plotted divergence does not repaint into or out of existence.
• The four types — regular bullish (price lower low, RSI higher low) and regular bearish (price higher high, RSI lower high) point to potential reversals; hidden bullish and hidden bearish point to trend continuation after a pullback. Each is drawn with a connecting line on both price and RSI and labelled by type.
• Zones and gating — overbought and oversold zones give context, and a minimum-gap control keeps divergence signals from stacking on lower timeframes.
Trade levels
Each qualifying divergence draws a red risk box to the stop and a green reward box to the third target, with inner dividers and right-edge labels for entry, stop and each take-profit at your R multiples. The stop is anchored beyond the pivot that formed the divergence.
The dashboard
An adjustable divergence-scope panel shows the current RSI value and zone, the most recent divergence type detected, the active signal, a conviction estimate, and a live first-target-before-stop tally from closed bars only.
How to use it
• Works on any asset and timeframe.
• Treat regular divergences as counter-trend reversal cues and hidden divergences as with-trend continuation cues — the distinction matters.
• Combine with structure or a trend filter; divergence works well as confluence, not in isolation.
Settings
RSI length and source, pivot strength, which divergence types to display, overbought/oversold levels, risk multiple and target R multiples, plus visual and dashboard controls.
Originality and usefulness
The contribution is a complete, confirmed-pivot detector for all four divergence classes with clear per-type labelling and integrated, non-repainting trade framing. By fixing the definition of a divergence and waiting for pivot confirmation, it removes much of the hindsight bias that makes manual divergence unreliable.
Notes and limitations
• Divergence signals can persist and reappear in strong trends; a divergence is a condition, not a timing guarantee.
• Confirmed pivots introduce a natural delay equal to the pivot strength — this is the cost of not repainting.
• The tally reflects only past bars on the current chart and is not a forecast.
• Educational and analytical tool, not financial advice.
— made with passion by officialjackofalltrades
Indicator

RSI Liquidity Sweep Confluence Engine [PhenLabs]📊 RSI Liquidity Sweep Confluence Engine
Version: PineScript™ v6
📌 Description
The RSI Liquidity Sweep Confluence Engine rebuilds the RSI as dynamic, price-projected support and resistance levels — then waits for liquidity to be swept exactly at those levels before firing a signal. It solves the two biggest problems retail traders face with RSI and liquidity tools: RSI divergence readings that never map to price, and liquidity sweep alerts that fire on every wick with no filter.
By requiring full confluence — an RSI-derived level, a genuine liquidity sweep, and volume confirmation all aligning on the same bar — the engine suppresses noise and only marks the reversals where smart-money delivery actually shifts. Signals do not repaint on closed bars.
This is a fusion indicator. It takes the week’s most popular concept (RSI rebuilt as S/R), PhenLabs’ core specialty (liquidity sweep mapping), and the highest-traction publishing format (confluence-scored, fire-only-on-full-alignment engines) and combines them into one clean, dashboard-backed tool.
🚀 Points of Innovation
RSI pivots mapped directly onto price as live support/resistance levels, not oscillator readings
Liquidity sweep detection gated to fire only when the sweep occurs at an RSI-derived level
Triple-confluence gate: RSI S/R + liquidity sweep + volume confirmation must all align
Adaptive ATR-based tolerance so the confluence zone scales with current volatility
WMA-smoothed S/R lines with a single soft channel fill for a clean, uncluttered chart
No repaint on closed bars — signals confirm on bar close
🔧 Core Components
RSI Core Levels : Confirmed RSI pivots (left/right bars configurable) are recorded with their corresponding price high/low, building a rolling set of dynamic S/R zones projected onto the chart as smoothed lines
Liquidity Sweep Detector : Tracks swing high/low liquidity pools over a lookback window and flags genuine sweeps (wick beyond pool, optional close-back inside for reversal confirmation)
Confluence Gate : Measures the distance between the swept price and the nearest RSI S/R level using ATR-scaled tolerance, then confirms with a volume-vs-SMA check
🔥 Key Features
Triple Confluence Gating : Signals fire only when RSI level, liquidity sweep, and volume all agree — drastically reducing false reversals
RSI-as-Price S/R : Converts oscillator extremes into actionable price levels you can trade against directly
ATR-Adaptive Tolerance : Confluence zone widens in high volatility, tightens in ranges — works across timeframes and instruments without re-tuning
Close-Back Reversal Filter : Optional requirement that price closes back inside the swept pool, filtering stop-runs that continue
Clean Visual Layer : Two smoothed S/R lines, one soft channel fill, subtle state-tinted background and color-coded bars — premium look without chart clutter
Live State Dashboard : Compact on-chart table shows RSI, nearest S/R levels, volume confirm, ATR, and current state at a glance
Dual-Direction Alerts : Separate bullish and bearish alertconditions for automated notification
🎨 Visualization
Smoothed S/R lines : A red resistance line above price and a green support line below, WMA-smoothed so transitions ease instead of snapping
Soft channel fill : A single subtle purple band between support and resistance defining the active RSI value zone
State background tint : Chart background subtly greens on bullish confluence, reds on bearish confluence, gold-tints when a sweep is armed
Color-coded bars : Candle bodies shift green / red / gold based on the live confluence state
Sweep marker + label : A single dashed box marks the exact swept liquidity pool, with a compact BULL / BEAR label at the signal bar
Top-right dashboard : Compact state table with RSI, resistance, support, volume confirm, ATR, and Scanning / Armed / Confluence state
📖 Usage Guidelines
RSI Length — Default: 14 — Range: 2-50 — Controls RSI period used to derive S/R levels; lower = more reactive levels, higher = more structural
RSI Pivot Left / Right — Default: 5 / 5 — Range: 1-20 — Bars used to confirm RSI pivots; higher = fewer but more reliable levels
Active RSI Levels Kept — Default: 4 — Range: 1-10 — Number of most-recent RSI S/R levels kept active on chart
Level Smoothing (WMA) — Default: 3 — Range: 1-10 — WMA length applied to S/R lines for smoother transitions
Sweep Lookback — Default: 20 — Range: 5-100 — Bars defining the swing high/low liquidity pools
Require Close-Back — Default: true — Toggles whether price must close back inside the swept pool to validate a sweep
RSI Level Tolerance (ATR x) — Default: 0.30 — Range: 0.0-2.0 — Distance (in ATR multiples) within which a sweep counts as touching an RSI level; 0.0 disables RSI confluence
Volume Multiplier — Default: 1.20 — Range: 0.0-5.0 — Volume must exceed this multiple of its SMA to confirm; 0.0 disables volume confluence
ATR Length — Default: 14 — Range: 1-100 — ATR period used to scale the confluence tolerance
✅ Best Use Cases
Intraday and swing reversal trading on indices, FX majors, and high-liquidity crypto
Smart-money / ICT traders who want a filtered sweep signal instead of raw sweep noise
Traders who already use RSI but want it mapped to price as tradable S/R
Multi-timeframe confluence stacking — run on higher TF for bias, lower TF for entries
⚠️ Limitations
Like all pivot-based tools, signals are confirmed pivotRight bars after the pivot forms; expect a small structural lag on the S/R levels themselves
Confluence gating reduces signal frequency by design — fewer but higher-quality signals, not a continuous signal generator
Volume conformance requires sufficient volume data; on symbols with no volume feed, set Volume Multiplier to 0.0
Best on instruments with genuine liquidity pools and clean swings; choppy low-range sessions produce fewer qualified setups
💡 What Makes This Unique
RSI-as-S/R fused with liquidity sweeps : No top community script currently combines RSI-derived price levels with sweep detection — this fills that white space
Fire-only-on-full-confluence design : Uses the highest-viral-ratio publishing format (confluence-scored engines) applied to PhenLabs’ core liquidity specialty
🔬 How It Works
RSI S/R construction : The engine computes RSI, detects confirmed pivots via left/right lookbacks, and records the price high (resistance) or low (support) at each RSI pivot bar. The most recent levels are kept in a rolling buffer, WMA-smoothed, and projected as clean lines on the chart with a soft channel fill between them.
Liquidity pool tracking : Swing highs and lows over the configured lookback define resting liquidity pools. A sweep is registered when price wicks beyond a pool — and optionally closes back inside it, confirming a reversal rather than a continuation stop-run.
Triple confluence gating : The engine checks that the sweep occurred within an ATR-scaled tolerance of the nearest RSI S/R level, and that volume exceeded its moving average by the configured multiple. Only when all three gates align does a bullish or bearish signal marker fire, with a dashed box marking the exact swept pool and a BULL / BEAR label at the signal bar.
💡 Note:
Best results come from pairing the engine with your own market-structure read and using it as a high-probability entry filter rather than a standalone signal. Tune RSI Length and Tolerance to your timeframe — shorter for scalping, longer for swing. This tool is an analytical aid to support your own judgment and is not financial advice.
Indicator

Divergence Indicator RSI, MACD,, Hidden Reversal Signals LunqFXDivergence Indicator is a multi-engine divergence scanner for PulseWire that reads RSI, MACD and OBV at every confirmed swing and only draws a divergence when the engines agree — so instead of the usual flood of weak one-oscillator signals, you get a few graded, high-conviction ones. Every divergence is rated by strength: ★★★ all three engines confirm (rare, strongest), ★★ two confirm, single-engine noise is filtered out by default. It detects regular divergences (price makes a new extreme, oscillators refuse — potential reversal) and hidden divergences (trend continuation), on any market — forex, crypto, stocks, indices, gold — and any timeframe. Built in Pine Script v6, fully non-repainting. Keywords: divergence indicator, RSI divergence, MACD divergence, OBV divergence, hidden divergence, regular divergence, reversal, momentum, exhaustion, multi oscillator scanner.
◆ WHY MULTI-ENGINE
Any single oscillator diverges constantly — that's why classic divergence tools feel random. Requiring independent confirmation from momentum (RSI), trend-momentum (MACD) and volume flow (OBV) removes most false positives: when all three refuse to follow price, the move is genuinely running out of fuel.
◆ WHAT IT DRAWS
Divergence lines on price — solid neon violet for bullish, neon amber for bearish; dashed for hidden divergences.
Star-graded labels — ★★ / ★★★ with tooltips explaining exactly what diverged.
Exhaustion candles — a unique display layer: candles glow at full neon while price and engines agree, and fade as engines stop confirming — you see a divergence brewing before it prints.
Status strip dashboard — a horizontal HUD along the bottom: last signal + strength, a live engine board (P / RSI / MACD / OBV direction arrows), a FUEL meter, and bull/bear counters.
◆ HOW IT WORKS
Swings are detected with confirmed pivots (N closed bars each side).
At each new confirmed pivot the scanner compares price and each engine against the previous pivot: price lower low + engine higher low = regular bull; price higher low + engine lower low = hidden bull (mirrored for highs).
The number of agreeing engines (1–3) becomes the star rating; signals below your minimum are skipped.
The live engine board and fuel meter track slope agreement in real time — display-only context that never alters signals.
◆ HOW TO USE IT
Treat ★★★ regular divergences as your primary reversal alerts — look for entries with your own structure/levels.
Use hidden divergences to join the trend on pullbacks.
Watch the FUEL meter: when it drains and candles fade, tighten stops on trend trades.
Raise Min strength to 3 for only the rarest, cleanest signals; lower pivot bars for faster (but noisier) detection.
◆ SETTINGS
Pivot left/right bars, max gap between swings, minimum strength, hidden divergences on/off, engine toggles (RSI/MACD/OBV), RSI length, exhaustion candles, label size, dashboard position/size.
◆ ALERTS
Bullish divergence · Bearish divergence (fire when a confirmed signal prints).
◆ LIMITATIONS
Signals confirm with a pivot delay (right bars) — that is the honest cost of zero repaint; lower it for speed, raise it for reliability.
On symbols without volume data the OBV engine adds no information — disable it there.
Divergence marks exhaustion, not timing — always combine with structure and risk management.
◆ ORIGINALITY & NON-REPAINTING
Original work: the three-engine agreement grading, the exhaustion-candle layer, the live engine board and the fuel meter are my own implementation — no third-party code. All divergences are built from confirmed pivots only; a drawn line or label never moves or disappears.
Educational analysis tool, not financial advice. © LunqFX. Indicator

Strategy

Indicator

Adaptive Multi-Timeframe RSI Divergence📈 Adaptive Multi-Timeframe RSI Divergence
Brief Description
A multi-timeframe RSI oscillator that combines weighted higher-timeframe momentum, adaptive trend confirmation, divergence detection, and configurable Flip alerts into a unified momentum analysis framework.
📖 Overview
Adaptive Multi-Timeframe RSI Divergence expands the traditional RSI by introducing a Composite RSI calculated from multiple higher timeframes.
Instead of evaluating momentum from a single timeframe, the indicator compares local RSI behavior with broader market momentum while integrating trend confirmation, divergence detection, and adaptive visualization into one oscillator.
The objective is to reduce noise while providing a more reliable interpretation of momentum shifts.
⭐ Key Features
🔹 Composite Multi-Timeframe RSI
• Combines RSI values from three configurable higher timeframes.
• Uses customizable weighting for each timeframe.
• Smooths the result with an EMA to reduce noise.
🔹 Adaptive Trend Detection
Trend changes require multiple confirmation conditions:
✅ RSI crossover
✅ Minimum RSI distance
✅ RSI slope confirmation
✅ Confirmation bars
✅ Deadband filtering
This helps avoid false flips during ranging markets.
🔹 Flip Detection Engine
The Flip Engine confirms bullish and bearish momentum transitions only after all validation rules have been satisfied.
Flip labels and alerts are generated after confirmation rather than immediately at crossover.
🔹 RSI Divergence Detection
Supports:
• Regular Bullish
• Hidden Bullish
• Regular Bearish
• Hidden Bearish
using configurable pivot detection and lookback filtering.
🔹 Dynamic RSI Zones
Highlights active overbought and oversold regions only when RSI enters those zones, improving readability without permanently coloring the oscillator.
🔹 Trend Ribbon
🟢 Green = Confirmed Bullish Momentum
🔴 Red = Confirmed Bearish Momentum
🟣 Purple = Momentum Transition
🔔 Alerts
Includes alert conditions for:
• Bullish Flip
• Bearish Flip
Alerts trigger only after confirmation.
⚙️ Inputs
The script allows customization of:
• RSI Settings
• Composite RSI Timeframes
• Timeframe Weights
• Flip Detection
• Confirmation Rules
• Divergence Settings
📊 How to Interpret
🟢 Bullish Flip
Momentum has shifted toward bullish conditions after confirmation.
🔴 Bearish Flip
Momentum has shifted toward bearish conditions after confirmation.
📈 Composite RSI
Represents weighted higher-timeframe momentum.
📍 Divergences
Highlight potential exhaustion or continuation depending on the divergence type.
🎯 Best Applications
• Swing Trading
• Trend Confirmation
• Momentum Analysis
• Multi-Timeframe Analysis
• Divergence Confirmation
⚠️ Limitations
Like all momentum indicators, this script should be used as a decision-support tool rather than a standalone trading system.
Divergences and momentum shifts may persist before price reacts. Additional confirmation from price action or risk management techniques is recommended.
💡 Originality
Unlike a traditional RSI indicator, this script introduces several original concepts:
✔ Weighted Composite RSI using multiple higher timeframes.
✔ Adaptive trend confirmation using RSI distance, slope, persistence filters, and deadband logic.
✔ Configurable Flip Detection Engine.
✔ Trend-state ribbon.
✔ Integrated divergence detection.
✔ Built-in alert system.
Rather than simply combining existing indicators, the objective is to create a unified momentum framework that filters market noise while providing a broader view of momentum across multiple time horizons. Indicator

Standing Wave Phase Coherence [JOAT]STANDING WAVE PHASE COHERENCE
A phase-coherence engine that asks a question almost no public indicator can answer: are the LTF and HTF oscillators in phase or out of phase ? Two oscillators that move together (peaks and troughs aligned) form a standing wave — a state of constructive interference where the trend is amplified. Two oscillators that move opposite (peaks aligned with troughs) form an anti-standing wave — a state of destructive interference where a reversal is forming. Standing Wave Phase Coherence measures phase, computes the coherence between the two timeframes, and surfaces a single number bounded in that tells you which regime you are in.
Phase, not just direction
A moving average tells you "where price is sitting". A momentum oscillator tells you "which way it is moving". Phase is the location inside the cycle — are we approaching a peak, leaving a peak, approaching a trough, leaving a trough? Two oscillators on different timeframes can be:
In phase — both rising or both falling at the same rate of cycle progression. Constructive interference. Trend amplifies.
Anti-phase — one rising, the other falling at the same cycle rate. Destructive interference. Reversal forms.
Decoherent — phases are uncorrelated. The wave structure is breaking down. No directional edge from coherence.
The script estimates phase from each timeframe's RSI series (both legs at the same RSI length for fair comparison), differences the phase smoothly, then takes the cosine of the phase difference — which is exactly the quantum-mechanical coherence metric on a scale.
Non-repainting HTF construction
The HTF leg uses request.security with lookahead_on AND a offset on the expression — the only non-repainting form per Pine v6 docs. This is exposed as a toggle but ON by default; the warning in the input tooltip explains the trade-off (turn off only for research, never live).
Three thresholds, three states
Coherence > +0.70 (configurable) — IN PHASE . Standing wave constructive. Trend amplifies. Bull-palette background tint.
Coherence < −0.70 — ANTI PHASE . Standing wave destructive. Reversal forms. Bear-palette background tint.
|Coherence| < 0.30 (decoherent band) — DECOHERENT . No standing wave. Mid-palette neutral.
In between — transitional.
Phase-status arrows print inside the pane at every regime entry, so the chart history shows when each standing wave formed and collapsed.
Visual system
Coherence line with configurable width.
Glow halo — a wider semi-transparent copy of the coherence line below the main line, creating a soft glow effect.
Background tint by phase status — bull when IN PHASE, bear when ANTI PHASE, none when decoherent. Transparency configurable.
Threshold lines at ±0.70 (toggleable).
Zero line .
Fill between threshold and ±1 — soft bull / bear fill highlights the active phase zone so it is immediately obvious which side is engaged.
Phase status arrows inside the pane on state transitions.
The pane uses the JOAT default palette (cyan-teal bull / magenta bear).
Amplification factor
A separate EMA-smoothed trend amplification factor is computed from the coherence and surfaced in the dashboard. When coherence is sustained high (in-phase), the amplification factor rises — quantifying how much the LTF/HTF agreement is reinforcing the move. Useful as a position-sizing input: bigger amplification = stronger conviction = larger size.
Dashboard
Monospaced table, positionable to any of nine corners. Surfaces:
Current coherence value and bar age.
Phase status (IN PHASE / ANTI PHASE / DECOHERENT) with glyph.
LTF and HTF RSI values.
Phase difference in radians and degrees.
Trend amplification factor (smoothed).
HTF timeframe in use with non-repaint flag.
Alerts
Multiple alert conditions:
Coherence crosses above +0.70 (IN PHASE entry)
Coherence crosses below −0.70 (ANTI PHASE entry)
Coherence returns to decoherent band
Sustained IN PHASE (held above threshold for N bars)
Sustained ANTI PHASE
How to read it
Three reads, in order of conviction:
Sustained IN PHASE — the highest-conviction trend read. LTF and HTF oscillators are decisively moving together. This is the regime in which momentum tools have their largest edge.
Entry into ANTI PHASE — the reversal warning. The two timeframes have rotated opposite each other; whichever direction LTF is moving, HTF is opposing. Often precedes meaningful reversals.
Decoherent zone — stand-aside signal. The wave structure has broken down. Coherence-based reads are not actionable; switch to a regime-classification tool (FDI, Hurst, Entropy).
The cleanest workflow: only take trend trades when IN PHASE; only take reversal trades when ANTI PHASE; do nothing when DECOHERENT.
Suggested settings
Defaults (RSI 14, HTF 4H, phase smoothing 3, coherence smoothing 8, ±0.70 thresholds, ±0.30 decoherent band) are tuned for 15m–1H charts. The HTF should always be greater than or equal to the chart timeframe; mismatching produces meaningless phase reads. For HTF (4H+ chart timeframes) raise HTF to Daily and consider the LTF/HTF coherence as a daily-vs-weekly read.
Originality
The implementation — the dual-timeframe RSI phase estimator, the smoothed phase-difference cosine coherence (quantum-style metric), the non-repainting HTF request with -offset + lookahead_on pattern, the three-threshold phase classifier with decoherent band, the trend amplification factor formulation, the glow-halo line render, and the pane-overlay phase-status arrows — is JOAT-original. No third-party code reused. The notion of phase coherence between timeframes as a market regime metric is the original quantitative contribution, borrowed conceptually from optical and quantum physics.
Limitations
Phase estimation from discrete bar data is inherently noisy on short windows; the smoothing inputs (phase EMA and coherence EMA) exist to address that — over-smoothing destroys phase information, so the defaults are intentionally light. The HTF request is non-repainting in the useStrictHtf = ON configuration; do not turn it off in live trading. The decoherent band is a heuristic to avoid acting on noise reads; widen it on instruments with naturally choppy oscillator structure.
—
-made with passion by jackofalltrades
Indicator

RSI Divergence (Bull/Bear) RSI Divergence (Bull/Bear) is an advanced momentum analysis indicator that automatically detects bullish and bearish RSI divergence between price action and the Relative Strength Index (RSI). These divergence signals can help traders identify potential market reversals, trend exhaustion, and high-probability trading opportunities across multiple financial markets.
The indicator continuously analyzes swing highs and swing lows in both price and RSI, highlighting areas where momentum no longer confirms the current price movement. These conditions often appear before significant trend reversals or corrective moves.
Features
• Automatic Bullish RSI Divergence Detection
• Automatic Bearish RSI Divergence Detection
• Swing High & Swing Low Analysis
• Visual Buy & Sell Signal Labels
• Divergence Confirmation Zones
• Optional RSI Sensitivity Settings
• Clean & Lightweight Chart Layout
• Multi-Timeframe Compatible
• Non-Repainting Divergence Detection
• Customizable Signal Display
How It Works
The indicator monitors price swings alongside RSI momentum.
When price forms a **Lower Low** while RSI forms a **Higher Low**, a **Bullish Divergence** is detected, suggesting weakening selling pressure and a possible bullish reversal.
When price forms a **Higher High** while RSI forms a **Lower High**, a **Bearish Divergence** is detected, indicating weakening buying momentum and a potential bearish reversal Signals are displayed directly on the chart, allowing traders to quickly identify possible turning points.
Signal Types
🟢 Bullish Divergence
• Price makes a Lower Low
• RSI makes a Higher Low
• Possible bullish reversal
• Momentum strengthening
🔴 Bearish Divergence
• Price makes a Higher High
• RSI makes a Lower High
• Possible bearish reversal
• Momentum weakening
Best Markets
• Forex • Gold (XAUUSD) • Silver (XAGUSD)
• Crypto • Indices • Stocks • Futures
Recommended Timeframes
Scalping • M5 • M15
Intraday • M30 • H1
Swing Trading • H4 • Daily
Indicator Highlights
• Automatic RSI Divergence Detection
• Early Reversal Identification
• Visual Buy & Sell Signals
• High-Probability Momentum Analysis
• Non-Repainting Logic
• Adjustable RSI Parameters
• Beginner Friendly
• Professional Trading Tool
• Works in Trending and Ranging Markets
Suggested Trading Workflow
1. Identify the overall market trend.
2. Wait for a Bullish or Bearish RSI Divergence signal.
3. Confirm the setup using market structure, support/resistance, or candlestick confirmation.
4. Enter the trade with proper risk management and position sizing.
Notes
This indicator is designed to assist traders in identifying potential momentum shifts through RSI divergence analysis. It should be used alongside market structure, price action, and sound risk management principles. Like all technical analysis tools, it does not predict future price movements or guarantee profitable trades. Indicator

RSI Slope Divergence HelperRSI Slope Divergence Helper compares the rolling slope of price with the rolling slope of RSI.
This is not a classic pivot-divergence detector. It does not wait for confirmed swing pivots. Instead, it compares rolling price behavior and rolling RSI behavior directly by converting both slopes into normalized, unitless values and displaying them in the same pane.
The purpose of this script is to help users observe when price slope and RSI slope are moving together, moving against each other, or moving with low slope. It is a context and visualization tool only. It does not provide trade-action instructions and it is not a trading system.
What it shows
- Normalized price slope.
- Normalized RSI slope.
- A spread histogram between the two normalized slopes.
- Neutral slope-relationship states.
- A compact dashboard.
- Optional factual markers.
- A neutral Divergence Footprint layer.
How the calculation works
The script first calculates RSI using the selected RSI source and RSI length.
For price, it estimates a rolling linear-regression slope by comparing the current linear-regression value with the prior linear-regression value. The price slope is expressed as a percentage of the prior fitted price value so it can be compared across different symbols and price levels.
For RSI, the script estimates a rolling linear-regression slope from RSI itself. Since RSI is already bounded from 0 to 100, its slope is measured in RSI points.
The two slope series have different units, so they are normalized separately:
- price slope is divided by its own rolling standard deviation
- RSI slope is divided by its own rolling standard deviation
This converts both slopes into comparable unitless values.
The displayed spread is:
normalized price slope - normalized RSI slope
A positive spread means the normalized price slope is above the normalized RSI slope. A negative spread means the normalized price slope is below the normalized RSI slope.
No request.security() is used. The script uses current chart bars only and does not use lookahead or future data.
Why it is different from classic RSI divergence scripts
Many RSI divergence scripts compare confirmed price pivots with confirmed RSI pivots. This script takes a different approach.
It focuses on rolling slope behavior:
- price slope
- RSI slope
- normalized slope spread
- duration of the current disagreement episode
- peak spread during the current episode
- spread motion
- phase gap
Because it is slope-based, it is intended as a visual helper for observing disagreement between price movement and RSI movement. It is not a reversal detector and it does not forecast future price behavior.
Divergence Footprint
The Divergence Footprint is a neutral context layer that describes the current slope-disagreement episode.
It can show:
- whether slope disagreement is active
- how many bars the current disagreement episode has persisted
- the peak absolute spread reached during the current episode
- whether the absolute spread is expanding, cooling, or holding
- the phase gap between normalized price slope and normalized RSI slope
The phase gap is calculated by applying an angle transform to each normalized slope and then comparing the two angles. It is descriptive only. It is not a probability, score, forecast, or confirmation tool.
Optional phase-gap and duration plots are off by default to keep the pane clean.
State model
The dashboard uses neutral state names:
- Warming up
- Aligned upward
- Aligned downward
- Upper disagreement
- Lower disagreement
- Flat / low slope
- Mixed slopes
Upper disagreement means price slope is positive while RSI slope is negative.
Lower disagreement means price slope is negative while RSI slope is positive.
These states describe the current relationship between the two slopes. They do not imply reversal or continuation.
Markers and alerts
Markers are optional and off by default.
The marker display mode can be set to:
- Off
- Disagreement only
- All events
When enabled, markers are small and factual:
- P+ R- means price slope is positive while RSI slope is negative.
- P- R+ means price slope is negative while RSI slope is positive.
- Align marks slope agreement returning after a prior slope-disagreement episode, when enabled.
Alerts use the same neutral event logic:
- Upper slope disagreement
- Lower slope disagreement
- Slope agreement restored
- Spread crossed above threshold
- Spread crossed below threshold
Alerts are confirmed on bar close by default. Intrabar mode is available, but realtime values can update until the bar closes.
Dashboard
The default dashboard is compact and auto-sized. It is designed to stay readable without covering the indicator pane.
Compact layout shows:
- State
- Price slope
- RSI slope
- Spread
- Footprint
- Event mode
Standard and Detailed layouts add more context, including RSI value, spread motion, phase gap, disagreement bars, episode peak spread, active warm-up bars, and bar status.
Visual customization
Users can adjust:
- table layout
- table position
- table text size
- header text size
- table colors
- row backgrounds
- state-row highlighting
- plot colors
- histogram transparency
- marker colors
- background tint
- fixed table sizing, when desired
By default, fixed table cell sizing is off, so the dashboard auto-sizes to its content. Markers and background tint are also off by default to keep the pane clean.
Visual settings do not affect the calculations.
Live behavior and robustness
The script includes:
- automatic warm-up floor
- guarded denominators
- minimum normalized slope threshold
- optional spread-threshold filter for events
- optional minimum persistence for disagreement events
- optional event cooldown
- confirmed-bar event handling by default
- realtime / confirmed bar status disclosure in the table
If there is not enough history, or if the normalization denominator is not usable, the script avoids producing misleading slope states and displays safe fallback text such as n/a or Warming up.
Limitations
This script is not financial advice and not a trading system.
Slope disagreement can persist.
Slope disagreement can disappear without a major price move.
Slope disagreement does not predict reversal or continuation.
RSI is a bounded oscillator and can remain extended while price continues moving.
Default settings are starting points, not optimized settings.
Normalization length, slope length, smoothing length, and thresholds affect sensitivity.
Japanese notes
価格の傾きとRSIの傾きを正規化して比較し、両者の乖離をスプレッドとDivergence Footprintで表示する補助ツールです。通常のピボット型RSIダイバージェンス検出ではありません。売買判断や将来の値動きを示すものではなく、状況把握のための可視化ツールです。既定ではCompact表示、マーカーと背景色はオフ、確定足イベント処理がオンです。 Indicator
