Signal-to-Noise Ratio█ SNR Trend/Noise + Statistical Significance (Single-TF)
A momentum-quality and divergence suite that blends directional Signal-to-Noise, Sharpe/T-tests, and clean divergence lines—on one panel.
█ Overview
This tool quantifies how directional price action is ( SNR ) and how statistically credible its payoff is ( Sharpe & t-stats )—then draws regular/hidden divergences directly on the oscillator. It’s built to separate “looks like a trend” from “is a robust, risk-adjusted edge,” so you can fade or follow with intent.
Single timeframe (uses chart TF), single pane, no price overlay.
Two SNR modes : regression slope / residual stdev (trend vs path noise) and slope / ATR (trend vs range volatility).
Sharpe & t-Statistics : classic t-mean and t-eff (autocorrelation-aware via n_eff).
t-Slope : significance of the price trend itself (corr(price, time)).
Divergence engine : crisp lines on the indicator (scale-safe), regular & hidden, with alerts.
█ Concepts
Directional SNR (trend/noise) — Regression slope normalized by residual stdev (or ATR). Sign: > 0 up, < 0 down. Magnitude ≈ trend cleanliness.
Raw Sharpe (μ/σ) & t-Statistic — Payoff quality.
t = Sharpe × √n
t-eff scales confidence by an effective sample size n_eff from lag-1 autocorr.
t-Slope — t-stat of the regression slope via correlation of price with time.
Δ (SNR − Sharpe) — “Structure premium”: how much trendiness isn’t showing up in Sharpe (useful for fade vs follow).
█ Key Features
Two SNR engines: Slope/Residuals (path-noise aware) and Slope/ATR (range-vol aware).
Sharpe, t-mean , and t-eff (autocorr-aware confidence).
t-Slope for trend significance.
Divergence Suite : regular & hidden divergences, indicator-to-indicator lines, compact shapes, const-title alerts.
Clean UX: zero line, optional Δ plot, scale-safe (no price axis contamination).
█ How It Works
SNR : computes regression slope over Window (bars) and normalizes by residual stdev (or ATR ) → directional signal vs path noise.
Sharpe & t-stats : arithmetic returns over the same window; t-eff replaces n with n_eff from lag-1 autocorr (set by Correlation Window (bars) ).
Divergences : pivot-based (user L/R). On confirmation, draws a line between the last two indicator pivots (HH vs LH, LL vs HL). Separate colors for regular/hidden and optional alerts.
█ Usage & Playbooks
Trend-Following (quality trend)
Trade with SNR sign when SNR > threshold and t-stat > threshold (e.g., t_eff > 1.65 ). Trail by ATR or residual noise.
Mean-Reversion / Carry (drift)
Prefer when Sharpe/t are strong but SNR is modest (good payoff without a steep path). Use smaller targets and faster exits.
Contrarian on Exhaustion
Watch Δ = SNR − Sharpe spikes and regular divergences (price HH/LL, indicator LH/HL). Fade tactically into the mean/regression; stops beyond the pivot.
Hidden Divergences
Use with a simple trend filter (SNR sign or EMA slope) to time continuations after pullbacks.
█ Inputs (most relevant)
Window (bars) — length for SNR/Sharpe/t and t-Slope.
Correlation Window (bars) — length for ρ₁ when computing n_eff .
SNR Mode — Slope/Residuals or Slope/ATR.
Thresholds — Min SNR, Min Raw Sharpe, Min t-Statistic.
Divergences — enable/disable, source (SNR / t-eff / t-mean / t-slope), pivot L/R, hidden on/off, trend filter, colors, line style/width.
Extras — show Δ(SNR−Sharpe), show t-Slope.
█ Quick Summary (EN)
SNR (trend/noise)
= directional price slope normalized by “noise” (regression residual stdev or ATR).
Measures how directional the move is per bar.
Sensitive to the structure of the path (candles aligning along a line).
Can remain high even if single bars are choppy, as long as the overall trajectory is tilted.
Raw Sharpe (μ/σ of returns)
= mean of arithmetic returns / standard deviation.
Measures how well risk is “paid” within the lookback (risk-adjusted return).
Sensitive to the distribution of returns (volatility, outliers).
Penalizes turbulent regimes even if directionality exists.
What changes in trading (operationally)
SNR↑ & Sharpe↑ : directional trend with well-compensated risk → “quality trend”.
Playbook : classic trend-following (pullback/breakout), tight stops (ATR/residuals), longer holds, scaling allowed.
SNR↑ & Sharpe↓ : trend exists but is noisy/unstable (high vol, spikes).
Playbook : tighter confirmations (micro-pullbacks), reduced size, wider stops, faster/partial TP. For contrarians, good spot to seek exhaustion.
SNR≈0 & Sharpe≈0 : range / no edge.
Playbook : stay flat or very tactical mean-reversion with small targets.
SNR↓ & Sharpe↓ : noisy downtrend (mirror of SNR↑ & Sharpe↓, but short side).
Playbook : selective shorts; same risk rules as above.
Sharpe↑ but low SNR : slow drift with compressed volatility (good μ/σ but little slope).
Playbook : intraday carry/scalps with small targets; not ideal for pure trend-following.
Practical rules
Use SNR for directional bias and trend quality; use Sharpe to gauge conviction (position sizing & management).
Entries : require SNR consistent with direction; filter with Sharpe > threshold to avoid poorly paid trends.
Stops/TP : with high SNR → trail on ATR/residuals; with low Sharpe → closer TPs and wider stops (or smaller size).
Contrarian : look for divergences like very high SNR but weak Sharpe (extended trend, poorly paid) or Sharpe spikes without SNR rise (episodic/non-structural move).
t-Statistic (of the mean)
t = Sharpe × √n
where μ = mean return, σ = stdev of returns, n = bars in lookback.
Hypothesis test : how significantly different from zero the mean return is.
H0: μ = 0. Typical thresholds: ~1.65 (one-tailed 5%), 1.96 (two-tailed 5%), 2.58 (1%). If |t| exceeds the threshold with the correct sign, the edge is statistically meaningful.
Relation to Sharpe : t is Sharpe scaled by √n; for the same Sharpe, larger n ⇒ larger t (more confidence).
Use : quality filter. Example (intraday): go long only if t > 1.65 and SNR > threshold . Be cautious when SNR is high but t is weak → geometric trend but poor payoff.
Time-series caveats
Returns are not i.i.d.: autocorrelation/heteroskedasticity can inflate t. Quick fix: use an effective sample size
n_eff ≈ n × (1 − ρ1) / (1 + ρ1)
then t_eff = Sharpe × √(n_eff)
Beware overfitting: calibrate thresholds out-of-sample.
Bonus: t-stat of the slope (true trend)
Test the statistical significance of the price trend itself:
t_slope = r × √((n − 2) / (1 − r²)) where r = corr(price, time) .
Pairs naturally with directional SNR (slope/noise): SNR says how clean the trend is; t_slope says whether the slope is statistically different from zero.
█ Alerts
Bearish Divergence , Bullish Divergence
Hidden Bearish , Hidden Bullish
Momentum Indicator (MOM)
WA-%Chg with BackgroundDescription
The WA-%Chg with Background indicator measures the percentage change in a selected price source over a user-defined period. It allows traders to visually and quickly assess bullish and bearish momentum through dynamic color coding and background shading.
Percentage Change Calculation – Uses ta.roc to determine the rate of change over the chosen length.
Customizable Alerts – Set upper (HiAlert) and lower (LoAlert) thresholds to get notified when momentum crosses bullish or bearish trigger levels.
Dynamic Line Coloring – Blue when above the bullish threshold, red when below the bearish threshold, and gray when in neutral territory.
Background Highlighting – Light blue shading for bullish zones, light red shading for bearish zones.
User Customization – Modify calculation length, colors, and alert thresholds to suit your trading style.
This tool is useful for identifying breakout conditions, momentum shifts, and potential reversals at a glance. Traders can combine it with other indicators for confirmation.
Disclaimer
This indicator is provided for educational purposes only and should not be considered financial advice. Past performance of any indicator or strategy is not indicative of future results. Trading in financial markets involves significant risk, including the risk of losing capital. Always perform your own analysis and consult with a qualified financial advisor before making any investment decisions. The author assumes no liability for any losses incurred from the use of this tool.
Triple EMA with Alert | 21, 50, 200 EMA Strategy + Crossover🚀 Boost your trading edge with the Triple EMA with Alert — a professional-grade indicator designed for traders who want precise, real-time trend confirmation across short, medium, and long-term market movements.
🔹 What Makes This Indicator Powerful?
Three Adjustable EMAs — Default: 21, 50, 200 periods (fully customizable 1–200).
Toggle Visibility — Show only the EMAs you need for your strategy.
Real-Time Alerts — Get notified instantly when:
EMA 1 crosses EMA 2 → short-term trend change.
EMA 2 crosses EMA 3 → medium-term trend alignment.
Works on All Markets & Timeframes — Forex, crypto, stocks, indices, and commodities.
🔹 Why Traders Love It
📊 Multi-Timeframe Trend Confirmation — Filter out noise and trade with market momentum.
🎯 Accurate Crossover Signals — Identify bullish and bearish momentum shifts.
🔔 Hands-Free Monitoring — Alerts keep you informed even when you’re away from the chart.
💡 Versatile for Any Strategy — Perfect for scalping, swing trading, or long-term investing.
🔹 How to Use It
Bullish Signal — EMA 1 crossing above EMA 2 or EMA 2 crossing above EMA 3.
Bearish Signal — EMA 1 crossing below EMA 2 or EMA 2 crossing below EMA 3.
Combine with support/resistance zones, RSI, or volume for higher probability trades.
📌 Pro Tip:
Use EMA 21 & EMA 50 for momentum confirmation.
Use EMA 200 to spot the overall market direction.
If you’re serious about trend trading with precision, the Triple EMA with Alert will keep you one step ahead of market moves — no more missed entries or exits.
MACD Light-Bar Reversal SignalsThis custom indicator is designed for traders who like to track MACD momentum shifts at the earliest possible stage — right when the histogram bars switch from solid to light coloring in the default TradingView MACD display. These moments can signal potential momentum exhaustion and possible reversal points before the MACD lines themselves cross.
Key Features:
• 📊 Momentum Shift Detection – Automatically identifies the first bar after a momentum peak (light green) or trough (light red) in the MACD histogram.
• 🎯 Early Visual Signals – Plots up or down triangles on your main price chart exactly at those momentum inflection points.
• ⚙️ Customizable Settings – User-defined MACD parameters to adapt to any market or timeframe.
• 🔔 Built-in Alerts – Receive instant notifications when a light-bar signal appears, so you never miss a potential setup.
• 🖥 Clean Chart Integration – Works alongside your existing MACD or on its own for minimal chart clutter.
How It Works:
• Above Zero Line (Bullish Side): Detects the first lighter-green bar after a darker-green sequence, suggesting upward momentum is slowing and a potential bearish shift may occur.
• Below Zero Line (Bearish Side): Detects the first lighter-red bar after a darker-red sequence, suggesting downward momentum is slowing and a potential bullish shift may occur.
Important Notes:
• This tool is intended for educational and informational purposes only.
• It is not financial advice and does not guarantee future results.
• Always combine with your own analysis, risk management, and trading plan before making decisions.
SMT Oscillator: Smarter Money Divergence Detector [PhenLabs]📊Phenlabs - SMT Oscillator: Smarter Money Divergence Detector
Version: PineScript™v6
📌Description
The SMT Oscillator is a sophisticated tool designed to identify smart money divergence between two correlated assets. By analyzing the momentum and volume-weighted price action of a primary and secondary symbol, traders can spot subtle shifts in market dynamics that often precede significant price movements. This indicator is built to provide a clearer, more filtered view of inter-market relationships, solving the common problem of false signals and market noise. Its primary purpose is to equip traders with a quantifiable edge in detecting potential reversals or continuations that are not obvious on a standard price chart.
🚀Points of Innovation
Dual-Symbol Divergence Core: Directly compares momentum (RSI or MACD) between two user-selected symbols to pinpoint true SMT divergence.
Volume-Weighted Analysis: Integrates volume delta into the divergence calculation, giving more weight to moves backed by significant market participation.
Entropy Filter for Noise Reduction: Employs an entropy calculation to filter out low-quality signals during choppy or consolidating market conditions.
Predictive Forecast Line: Utilizes a linear regression model to project the oscillator’s future trajectory, offering a forward-looking glimpse of potential momentum shifts.
Customizable Signal Sensitivity: Allows fine-tuning of overbought and oversold levels to adapt to different market volatilities and trading styles.
Integrated Signal Alerts: Provides built-in alerts for bullish/bearish zero crosses and overbought/oversold conditions.
🔧Core Components
Momentum Engine: The user can select either RSI or MACD as the underlying engine for the divergence calculation, allowing for flexibility in analysis.
Normalization Function: Price data from both symbols is normalized using percentage change to ensure a true “apples-to-apples” comparison, regardless of their nominal price differences.
Divergence Calculator: The core algorithm that subtracts the secondary symbol’s momentum from the primary’s and normalizes the result using the combined standard deviation.
Smoothing Mechanism: An Exponential Moving Average (EMA) is applied to the raw oscillator output to reduce choppiness and provide a clearer signal line.
🔥Key Features
Multi-Asset Comparison: Go beyond single-asset analysis by comparing correlated pairs like ES/NQ or BTC/ETH to uncover hidden trading opportunities.
Heatmap Visualization: An optional heatmap mode provides an intuitive visual representation of divergence strength, making it easier to gauge market sentiment at a glance.
Configurable Lookback and Timeframe: Adjust the lookback period and analysis timeframe to suit your specific strategy, from short-term scalping to long-term trend analysis.
Signal Markers: Visual markers are plotted directly on the chart for bullish and bearish zero-line crossovers, providing clear entry and exit signals.
🎨Visualization
SMT Oscillator Line: The primary visual element, colored blue for bullish (positive) divergence and orange for bearish (negative) divergence.
Zero Line: A solid horizontal line at the zero level, indicating the equilibrium point between the two assets. Crossovers of this line signal a shift in relative strength.
Overbought/Oversold Zones: Dotted lines at the +80 and -80 levels (customizable) that highlight extreme divergence readings, often indicating potential exhaustion points.
Forecast Line: A predictive line that plots the anticipated path of the oscillator, giving traders an advanced warning of potential changes in momentum.
📖Usage Guidelines
Setting Categories
Primary Symbol
Default: (Chart Symbol)
Description: The main asset you are analyzing. Leave blank to use the symbol currently on your chart.
Secondary Symbol
Default: CME_MINI:ES1! (used with NASDAQ futures due to inherent heavy correlation
Description: The asset to compare against the primary symbol.
Lookback Period
Default: 14
Range: 8-100
Description: Controls the calculation window for momentum (RSI/MACD). Higher values result in a smoother, less sensitive oscillator.
Divergence Type
Default: RSI
Options: RSI, MACD
Description: Choose the momentum indicator to use for the divergence calculation.
Enable Volume Weighting
Default: true
Description: When enabled, gives more weight to divergence signals that are accompanied by significant volume.
✅Best Use Cases
Identifying high-probability reversal points by spotting divergence in overbought or oversold territory.
Confirming the strength of a trend by observing sustained positive or negative divergence.
Pairs trading by taking a long position on the outperforming asset and a short position on the underperforming one during a divergence.
Risk management by recognizing when a current trend is losing its underlying momentum.
⚠️Limitations
Requires Correlated Assets: The indicator’s effectiveness is highly dependent on the selection of two assets with a known correlation (e.g., ES and NQ).
Not a Standalone System: Divergence signals should be used in conjunction with other forms of analysis (price action, market structure) and not as a complete trading system.
Lagging by Nature: As it is based on moving averages and past price data, the oscillator is inherently lagging and may not capture all rapid price changes.
💡What Makes This Unique
Combined Momentum & Volume: Unlike standard oscillators, it fuses momentum with volume delta for a more robust “Smart Money” perspective.
Noise-Filtering Mechanism: The proprietary entropy filter is a unique feature designed to weed out insignificant market chatter and focus on high-conviction signals.
🔬How It Works
Data Normalization:
The script first normalizes the price data of the two selected symbols into percentage changes. This ensures that the comparison is fair, regardless of the difference in their price scales.
Momentum Calculation:
It then calculates the chosen momentum value (either RSI or MACD histogram) for each of the normalized price series.
Divergence Computation:
The core of the indicator lies in subtracting the momentum of the secondary symbol from the primary one. This raw divergence is then optionally weighted by volume and filtered for market noise (entropy) to produce the final oscillator value.
💡Note:
For best results, use this indicator on adequate timeframes to filter out market noise. Always confirm signals with price action analysis before entering a trade.
Momentum_EMABand📢 Reposting Notice
I am reposting this script because my earlier submission was hidden due to description requirements under TradingView’s House Rules. This updated version fully explains the originality, the reason for combining these indicators, and how they work together. Follow me for future updates and refinements.
🆕 Momentum EMA Band, Rule-Based System
Momentum EMA Band is not just a mashup — it is a purpose-built trading tool for intraday traders and scalpers that integrates three complementary technical concepts into a single rules-based breakout & retest framework.
Originality comes from the specific sequence and interaction of these three filters:
Supertrend → Sets directional bias.
EMA Band breakout with retest logic → Times precise entries.
ADX filter → Confirms momentum strength and avoids noise.
This system is designed to filter out weak setups and false breakouts that standalone indicators often fail to avoid.
🔧 How the Indicator Works — Combined Logic
1️⃣ EMA Price Band — Dynamic Zone Visualization
Plots upper & lower EMA bands (default: 9-period EMA).
Green Band → Price above upper EMA = bullish momentum
Red Band → Price below lower EMA = bearish pressure
Yellow Band → Price within band = neutral zone
Acts as a consolidation zone and breakout trigger level.
2️⃣ Supertrend Overlay — Reliable Trend Confirmation
ATR-based Supertrend adapts to volatility:
Green Line = Uptrend bias
Red Line = Downtrend bias
Ensures trades align with the prevailing trend.
3️⃣ ADX-Based No-Trade Zone — Choppy Market Filter
Manual ADX calculation (default: length 14).
If ADX < threshold (default: 20) and price is inside EMA Band → gray background marks low-momentum zones.
🧩 Why This Mashup Works
Supertrend confirms trend direction.
EMA Band breakout & retest validates the breakout’s strength.
ADX ensures the market has enough trend momentum.
When all align, entries are higher probability and whipsaws are reduced.
📈 Example Trade Walkthrough
Scenario: 5-minute chart, ADX threshold = 20.
Supertrend turns green → trend bias is bullish.
Price consolidates inside the yellow EMA Band.
ADX rises above 20 → trend momentum confirmed.
Price closes above the green EMA Band after retesting the band as support.
Entry triggered on candle close, stop below band, target based on risk-reward.
Exit when Supertrend flips red or ADX momentum drops.
This sequence prevents premature entries, keeps trades aligned with trend, and avoids ranging markets.
🎯 Key Features
✅ Multi-layered confirmation for precision trading
✅ Built-in no-trade zone filter
✅ Fully customizable parameters
✅ Clean visuals for quick decision-making
⚠ Disclaimer: This is Version 1. Educational purposes only. Always use with risk management.
Quant Signals: Econophysics-based MomentumPhysical Momentum Switcher (p0 / p1 / p2 / p3)
This indicator implements a “physical momentum” concept from quantitative finance research, where momentum is defined similarly to physics:
Momentum (p) = Mass × Velocity
Instead of using only the standard cumulative return (classic momentum), it lets you switch between multiple definitions:
p0: Cumulative return over the lookback period (no mass, just price change).
p1: Sum of (mass × velocity) over the lookback period.
p2: Weighted average velocity = (Σ mass×velocity) ÷ (Σ mass).
p3: Sharpe-like momentum = average velocity ÷ volatility (massless).
Velocity can be measured as:
Log return: ln(Pt / Pt-1)
Normal return: (Pt / Pt-1 – 1)
Mass (for p1/p2) can be defined as:
Unit mass (1) — equal weighting, equivalent to traditional momentum.
Turnover proxy — Volume ÷ average volume over k bars.
Value turnover proxy — Dollar volume ÷ average dollar volume.
Inverse volatility — 1 ÷ return volatility over a specified period.
Features:
Switchable momentum definition, velocity type, and mass type.
Adjustable lookback (k) and smoothing period for the signal line.
Optional ±1σ display bands for quick overbought/oversold visual cues.
Alerts for crosses above/below zero or the signal line.
Table display summarizing current settings and values.
Typical uses:
Momentum trading: Buy when PM > 0 (or crosses above the signal), sell/short when PM < 0 (or crosses below).
Contrarian strategies: Reverse the logic when testing mean-reversion effects.
Cross-asset testing: Apply to different instruments to see which PM definition works best.
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.
Hurst Cycle Projections & Market Phase Analyzer(Mastersinnifty)Description
The Hurst Cycle Projections & Market Phase Analyzer is a technical analysis tool designed to detect dominant market cycles, project potential future price paths, and identify prevailing market phases. Using the Hurst exponent, harmonic cycle analysis, and trend strength evaluation, it provides traders with visual cycle channels, forward projections, and an at-a-glance market condition table.
This indicator is ideal for traders who want to combine cycle theory with trend analysis for timing entries, exits, and managing risk.
How It Works
Calculates the Hurst exponent to determine whether the market is trending or mean-reverting.
Identifies the dominant cycle length using pivot-based cycle detection.
Generates a cycle price channel to frame current market action.
Performs harmonic analysis to track multiple related cycles.
Projects future price levels based on cycle phase, trend strength, and mean reversion tendencies.
Displays a summary table with Hurst exponent, cycle length, trend strength, cycle phase, and market state.
Includes alerts for Hurst exponent crossovers and cycle turning points.
Inputs
Cycle Analysis Length – Number of bars used for cycle detection and Hurst exponent calculation.
Projection Bars – Number of future bars to project prices.
Show Cycle Lines – Toggle visibility of cycle markers.
Show Price Projections – Enable/disable forward price lines.
Show Cycle Channel – Display cycle-based price channel.
Cycle Sensitivity – Adjust responsiveness of cycle detection.
Colors – Customize cycle, projection, and channel colors.
Use Case
Identify whether the market is currently trending or mean-reverting.
Anticipate potential price turning points based on cycle phases.
Project possible future price levels for trade planning.
Spot trend strength and direction within the context of cycles.
Assist in swing trading, position trading, or long-term analysis.
Disclaimer
This indicator is for educational and analytical purposes only. It does not constitute financial advice. Trading in financial markets involves risk, and past performance is not indicative of future results. Always use proper risk management and consult with a licensed financial professional before making investment decisions.
Bullish Divergence SMI Base & Trigger with ATR FilterDescription:
A bullish divergence indicator combining the Stochastic Momentum Index (SMI) and Average True Range (ATR) to pinpoint high-probability entries:
1. Base Arrow (Orange ▲):
• Marks every SMI %K / %D bullish crossover where %K < –70 (deep oversold)—the first half of the divergence setup.
• Each new qualifying crossover replaces the previous base, continuously “arming” the divergence signal.
• Configurable SMI lookbacks, oversold threshold, and a base timeout (default 100 days) to clear stale bases.
2. Trigger Arrow (Green ▲):
• Completes the bullish divergence: fires on the next SMI bullish crossover where %K > –60 and price has dropped below the base arrow’s close by at least N × ATR (default 1 × 14-day ATR).
• A dashed green line links the base and trigger to visually confirm the divergence.
• Resets after triggering, ready for a new divergence cycle.
Inputs:
• SMI %K Length, EMA Smoothing, %D Length
• Oversold Base Level (–70), Trigger Level (–60)
• ATR Length (14), ATR Multiplier (1.0)
• Base Timeout (100 days)
Ideal for any market, this study highlights genuine bullish divergences—oversold momentum crossovers that coincide with significant price reactions—before entering long trades.
GRJMOM - Risk-Adjusted MomentumGRJMOM – Risk-Adjusted Momentum
GRJMOM stands for Generalized Risk-Adjusted Momentum. This indicator adjusts traditional momentum by dividing it by realized volatility over the same formation period. The result is a cleaner, more risk-sensitive momentum signal designed to avoid momentum crashes and volatility-driven false breakouts.
How it works:
Calculates raw momentum: Close - Close
Computes realized volatility using standard deviation of log returns
Outputs a risk-adjusted momentum score (Momentum / Volatility)
Optional smoothing can be applied to reduce short-term noise
Background coloring highlights bullish (green) and bearish (red) regimes
Use Cases:
GRJMOM > 0 suggests a bullish risk-adjusted trend
GRJMOM < 0 indicates a weakening or bearish trend
Can be used as a trend confirmation filter
Pairs well with cycle indicators like HHT or FFT for timing
Best for:
Swing traders, trend followers, and systematic strategy builders looking for smarter momentum signals with built-in risk awareness
Smooth Cloud + RSI Liquidity Spectrum + Zig Zag Volume ProfileSmooth Cloud + RSI Liquidity Spectrum + Zig Zag++ Volume Profile" Indicator
| Advanced Trend & Liquidity Analysis.
---
📌 Key Features & Enhancements (Zig Zag++)
This advanced indicator combines **trend-following moving averages, RSI momentum with liquidity factors, and an improved Zig Zag++ algorithm with volume profiling** for precise swing detection.
🔹 Zig Zag++ Upgrades:
✅ **Dynamic Reversal Detection** – Adapts to volatility using percentage-based pivots.
✅ **Volume-Weighted Swing Points** – Highlights high-liquidity turning points.
✅ **Multi-Timeframe Confirmation** – Uses historical pivots for stronger signals.
✅ **Volume Profile Clustering** – Reveals key support/resistance zones based on traded volume.
---
📊 Indicator Components Breakdown
1️⃣ Smooth Cloud (Trend Filter)
- **Fast MA (20-period) & Slow MA (50-period)** – Configurable as EMA, SMA, or WMA.
- **Cloud Coloring** – Green when fast MA > slow MA (bullish), red otherwise (bearish).
- **Purpose**: Acts as a trend filter—only take trades in the direction of the cloud.
2️⃣ RSI Liquidity Spectrum (Momentum + Volume)
- **RSI (14-period default)** – Standard momentum oscillator.
- **Liquidity-Adjusted Momentum** = `(RSI + ROC(RSI,3)) * (Volume / SMA(Volume, RSI Length))`
- **Purpose**: Identifies overbought/oversold conditions with volume confirmation (high volume = stronger signal).
3️⃣ Zig Zag++ (Swing Detection & Volume Profiling)
📈 Zig Zag Logic:**
- **Percentage-Based Reversals** (default: 5%) – Only plots swings exceeding this threshold.
- **Pivot Tracking** – Stores price & bar index of each swing point in arrays.
- **Dynamic Line Drawing** – Connects swing points with yellow trendlines.
📊 Volume Profile at Swings:
- **Lookback Period** (200 bars default) – Analyzes volume distribution between Zig Zag turns.
- **10-Price Bin Clustering** – Splits the price range into 10 levels and calculates traded volume at each.
- **Transparency Scaling** – Higher volume zones appear darker (stronger support/resistance).
---
🎯 Step-by-Step Trading Strategies
📈 Strategy 1: Trend-Following with RSI Liquidity Confirmation**
1. **Enter Long** when:
- Smooth Cloud is **green** (fast MA > slow MA).
- RSI Liquidity Momentum crosses above **30** (bullish momentum + volume).
- Price pulls back to the **Volume Profile high-volume zone** (demand area).
2. **Enter Short** when:
- Smooth Cloud is **red** (fast MA < slow MA).
- RSI Liquidity Momentum crosses below **70** (bearish momentum + volume).
- Price rallies into the **Volume Profile high-volume zone** (supply area).
3. **Exit** when:
- Zig Zag++ detects a new reversal (5% move against position).
- RSI Liquidity Momentum crosses back mid-level (50).
---
📉 Strategy 2: Swing Trading with Zig Zag++ Pivots**
1. **Buy at Swing Lows** when:
- Zig Zag++ prints a **higher low** (bullish structure).
- Volume Profile shows **strong absorption** (high volume at the low).
- RSI Liquidity Momentum is rising from oversold (<30).
2. **Sell at Swing Highs** when:
- Zig Zag++ prints a **lower high** (bearish structure).
- Volume Profile shows **distribution** (high volume at the top).
- RSI Liquidity Momentum is falling from overbought (>70).
3. **Stop Loss**:
- Below the recent Zig Zag low (for longs).
- Above the recent Zig Zag high (for shorts).
---
📌 Additional Enhancements (Pro Tips)**
- **Combine with Higher Timeframe (HTF) Cloud** – Use a 4H/1D cloud to filter trades.
- **Divergence Detection** – Hidden bullish/bearish divergences between Zig Zag & RSI Liquidity.
- **Volume Spike Confirmation** – Only trade if volume exceeds SMA(volume, 20) at reversal points.
---
🚀 Conclusion
This **all-in-one indicator** provides:
✔ **Trend direction** (Smooth Cloud)
✔ **Momentum + Liquidity strength** (RSI Spectrum)
✔ **Precise swing points** (Zig Zag++)
✔ **Volume-based S/R zones** (Profile Clustering)
Best used on **15M-4H timeframes** for swing/day trading. Adjust parameters based on asset volatility.
RSI-Stochastic Combined Oscillator(Mastersinnifty)Description
The RSI-Stochastic Combined Oscillator blends the strengths of RSI and Stochastic indicators to offer a refined view of market momentum. This custom oscillator highlights high-probability turning points using both value crossovers and directional momentum filters. Enhanced signal logic distinguishes between strong and weak trade setups.
How It Works
Calculates RSI and Stochastic %K using user-defined lengths.
Generates a combined oscillator by averaging RSI and Stochastic %K.
Smoothes the output with configurable MA for clarity.
Generates bullish/bearish signals based on crossover logic and momentum strength.
Includes overbought/oversold zones and background color warnings.
Optional signal table displays real-time values for RSI, Stochastic, Combo, and Signal Line.
Inputs
RSI Length – Period for RSI calculation.
Stochastic %K/%D Length – Periods for Stochastic values.
Combined Oscillator Smoothing – Moving average smoothing period.
Overbought/Oversold Levels – Thresholds for signal filtering and background alerts.
Use Case
Ideal for traders looking to:
Confirm entries using dual momentum logic.
Filter out noise with smoothed oscillators.
Identify high-conviction reversal zones.
Receive alerts based on strong and weak momentum shifts.
Disclaimer
This indicator is designed for educational purposes only and does not constitute financial advice. Always conduct your own analysis before making trading decisions.
10-Bar Breakout + Volume + Adjustable Target(Mastersinnifty)Description
This indicator identifies potential breakout opportunities from short-term price congestion zones, confirmed with volume. It dynamically highlights breakout signals and plots corresponding price targets using adjustable parameters.
How It Works
Calculates the highest high and lowest low over the past N bars (default: 10) to define a congestion range.
Confirms a breakout only if volume exceeds the average (SMA or EMA) by a user-defined multiplier.
Plots arrows for Buy or Sell signals based on breakout direction.
Sets a price target using a configurable multiple of the congestion range.
Highlights breakout bars with subtle background colors.
Optionally displays the calculated volume threshold for reference.
Inputs
Congestion Bar Count : Number of bars to define the congestion range.
Volume Multiplier : Volume must exceed this multiple of average volume.
Volume MA Type : Select between SMA or EMA for volume calculation.
Target Multiplier : Controls how far the price target is from the breakout level.
Use Case
Identify high-probability breakout opportunities with volume confirmation.
Set dynamic price targets based on recent market structure.
Avoid entries during low-volume or false breakout conditions.
Disclaimer
This script is for educational and analytical purposes only. Use appropriate risk management and test any strategy thoroughly before using it in live trading.
SuperBody CandlesInspired by the original script by Gautam_Dixit.
Updated to the latest Pine Script v6, now featuring fully customizable color settings so users can tailor hues to their preference.
Description:
The Momentum Candle indicator highlights bars whose real body significantly exceeds the 15-period average. 'Super' bullish and bearish candles (body ≥ 1.5× avg) receive standout colors, while above-average and below-average bars are tinted differently to reflect momentum strength.
Momentum DivergenceOverview
The Momentum Divergence Oscillator is a valuable tool designed for traders who are familiar with basic charting but want to deepen their market insights. This indicator combines a momentum calculation with divergence detection, presenting the data in an intuitive way with a blue momentum line and colored divergence signals ("Bull" and "Bear"). It’s perfect for refining entry and exit points across various timeframes, especially for scalping or swing trading strategies.
Understanding the Concepts
What is Momentum?
Momentum measures the speed and strength of a price movement by comparing the current closing price to a previous close over a set period. In this indicator, it’s calculated as the difference between the current close and the close from a user-defined number of bars ago (default: 10). A rising momentum line indicates accelerating upward momentum, while a falling line suggests slowing momentum or a potential reversal. This helps you gauge whether a trend is gaining power or losing steam, making it a key indicator for spotting overbought or oversold conditions.
What is a Divergence?
A divergence occurs when the price action and the momentum indicator move in opposite directions, often signaling a potential trend reversal. The Momentum Divergence Oscillator highlights two types:
Bullish Divergence: When the price forms a lower low (indicating weakness), but the momentum shows a higher low (suggesting underlying strength). This can foreshadow an upward reversal.
Bearish Divergence: When the price reaches a higher high (showing strength), but the momentum records a lower high (indicating fading momentum). This may hint at an impending downward turn.
How the Indicator Works
The indicator plots a momentum line in a separate pane below your chart, giving you a clear view of price momentum over time. It also scans for divergences using adjustable lookback periods (default: 5 bars left and right) and a range window (default: 5-60 bars) to ensure relevance. When a divergence is detected, it’s visually highlighted, and you can customize the sensitivity through input settings like the momentum length and pivot lookback. Alerts are included to notify you of new divergence signals in real-time, saving you from constant monitoring.
How to Apply It
Identifying Opportunities: Use bullish divergences ("Bull") as a cue to consider long positions, especially when confirmed by support levels or a moving average crossover. Bearish divergences ("Bear") can signal short opportunities, particularly near resistance zones.
Combining with Other Tools: Pair this oscillator with indicators like the Relative Strength Index (RSI) or volume analysis to filter out false signals and increase confidence in your trades. For example, a bullish divergence with rising volume can be a stronger buy signal.
Timeframe Flexibility: Test it on shorter timeframes (e.g., 5-minute charts) for quick scalping trades or longer ones (e.g., 1-hour or 4-hour charts) for swing trading, adjusting the momentum length to suit the market’s pace.
Alert Setup: Enable the built-in alerts to get notified when a divergence forms, allowing you to react promptly without staring at the screen all day.
Strategy Example
Spot a bullish divergence on a 15-minute chart where the price hits a lower low, but the momentum rises.
Confirm with a break above a 20-period EMA and increasing volume.
Enter a long position with a stop-loss below the recent low and a take-profit near the next resistance level.
Customization Tips
Adjust the "Momentum Length" (default: 10) to make the oscillator more or less sensitive—shorter lengths react faster, while longer ones smooth out noise.
Tweak the "Pivot Lookback" settings to widen or narrow the divergence detection range based on your trading style.
Use the "Range Upper/Lower" inputs to focus on divergences within a specific timeframe that matches your strategy.
Important Considerations
b]This indicator is a technical analysis tool, not a guaranteed trading system. Always pair it with a solid strategy and strict risk management, such as setting stop-losses.
In strong trending markets, divergences can sometimes produce false signals. Consider adding a trend filter (e.g., ADX below 25) to avoid whipsaws.
Experiment with the settings on a demo account or backtest to find what works best for your preferred markets and timeframes.
MACD-RSI Divergence OscillatorMACD-RSI Divergence Oscillator: Dual Confirmation with Momentum + Divergence Signals
This powerful oscillator combines MACD and RSI into a single normalized visual tool, enriched with automatic divergence detection and smart signal alerts. It’s designed to give traders advanced insights into momentum shifts and trend reversals.
Key Features:
• MACD + RSI Combo: Both indicators are scaled and merged into one oscillator for clearer interpretation.
• Automatic Divergence Detection:
• Bullish & Bearish divergences on both MACD and RSI
• Highlights strong divergences when both confirm
• Trading Signals:
• Detects MACD crossovers and RSI reversals
• Smart buy/sell signals based on momentum + divergence
• Custom Oscillator View:
• Plots MACD and RSI on the same scale
• Visual zero-line, overbought/oversold levels, and customizable colors
• Optional Dashboard Table:
• Displays live indicator values, signal states, and divergence status
Ideal For:
• Spotting early trend reversals
• Confirming trade entries/exits
• Avoiding false signals using dual indicator logic
Highly customizable and suitable for all timeframes and asset types.
Market DashboardMarket Dashboard — All-in-One Technical Indicator Panel
The Market Dashboard is a powerful visual tool that consolidates key technical indicators into a single on-chart table, helping traders make faster and more informed decisions. This script includes:
RSI — Detects overbought and oversold market conditions
MACD — Shows trend momentum and crossover signals
CVD (Cumulative Volume Delta) — Highlights buyer vs. seller pressure
Volume Analysis — Flags unusually high volume
ATR (Average True Range) — Displays current market volatility
Session Detector — Automatically identifies ASIAN, LONDON, or NEW YORK sessions based on UTC time
Fully Customizable — Adjust table position and text size to fit your chart layout
Designed for traders who want a clean, real-time snapshot of market dynamics, directly on the chart.
Momentum Candle ProjectionThis indicator projects future price momentum by calculating a directional vector from recent price movements. It uses a custom implementation of the atan2 function to create a vector average of the last N candles and visualizes this projection as a synthetic future candle.
🔍 What It Does:
✅ Tracks recent momentum using geometric vectors from price change.
✅ Projects a synthetic "momentum candle" one bar ahead, showing anticipated direction and magnitude.
✅ Optionally plots a secondary "future candle" based on a smoothed estimate of projected price vs. real current close.
⚙️ Settings:
Vector Lookback (bars): Controls how many bars are used to calculate the momentum vector.
Projection Length Multiplier: Adjusts how far forward the vector is projected based on its strength.
🟢 How To Use:
Use the lime/red projection candle to anticipate short-term directional bias.
Use the orange/maroon future candle to compare projected continuation vs. current closing price.
Spot early reversals, continuation zones, and momentum decay in real-time.
TrendShift [MOT]📈 TrendShift – Multi-Factor Momentum & Trend Signal Suite
TrendShift is a precision-built momentum and confluence tool designed to highlight directional shifts in price action. It combines EMA slope structure, oscillator confirmation, volume behavior, and dynamic SL/TP logic into one cohesive system. Whether you're trading with the trend or catching reversals, TrendShift provides data-backed clarity and visual confidence — and it’s available free to the public.
🔍 Core Signal Logic
Buy (🟢 Long) and Sell (🔴 Short) signals are triggered when multiple conditions align within a set bar window (default: 5 bars):
Stochastic RSI K/D cross
RSI crosses above 20 (long) or below 80 (short)
Stochastic RSI breaks 20 (long) or 80 (short)
Volume exceeds 20-bar average
🧭 Visual Trend Dashboard – Signal Table
A real-time on-chart dashboard displays:
EMA Trend: Bullish / Bearish / Mixed (based on 4 EMA slopes)
Stoch RSI: Oversold / Overbought / Neutral
RSI: Exact value with zone label
Volume: Above or Below average
Dashboard theme and position are fully customizable.
📐 Trend Structure with EMA Slope Logic
Plots four EMAs (21, 50, 100, 200) color-coded by slope:
Green = Rising
Red = Falling
These feed into the dashboard's EMA Trend display.
🎯 Optional Take Profit / Stop Loss Zones
When enabled, SL/TP lines plot automatically on valid signals:
Fixed-distance targets (e.g., 10pt TP, 5pt SL)
Auto-remove on TP or SL hit
Separate lines for long vs. short trades
Fully customizable styling
🔁 Trailing Stop Filter (Internal Logic)
A custom ATR-based trailing stop helps validate directional strength:
ATR period
HHV window
ATR multiplier
Used internally — not plotted — to confirm trend progression before entry.
⚙️ Customizable Parameters
Every core component is user-configurable:
EMA periods: 21 / 50 / 100 / 200
ATR trailing logic: period, HHV, multiplier
Oscillator settings: Stoch RSI & RSI
Volume length
SL/TP toggles and point values
Bar clustering window
Dashboard theme and location
🔔 Alerts Included
BUY Signal Triggered
SELL Signal Triggered
Compatible with webhook automation or mobile push notifications.
⚠️ Disclaimer
This tool is for educational purposes only and is not financial advice. Trading involves risk — always do your own research and consult a licensed professional before making trading decisions.
Pivot Squeeze IndicatorThe Pivot Squeeze Indicator is an oscillator that identifies when markets are "squeezed" between recent pivot highs and lows, then signals when they're ready to make their next big move.
How it Works
The indicator calculates the percentage distance between the current price and the most recent pivot high vs. pivot low. When this distance gets compressed (small), the market is "squeezed" and building energy. When it expands rapidly, you get your breakout signal.
The indicator adapts to current market volatility using four different modes:
- ATR-Based
- Bollinger Bands
- Keltner Channels
- Fixed %
What to Look For
🟠 Orange Background = Squeeze Zone
Market is compressed between recent pivots
Low volatility, building pressure
🟢 Green Breakout = Bullish Signal
Price breaking out above recent highs
Momentum shifting upward
Time to look for long opportunities
🔴 Red Breakout = Bearish Signal
Price breaking down below recent lows
Momentum shifting downward
Time to look for short opportunities
Using Histogram Colors:
Green bars = Bullish territory (closer to recent highs)
Red bars = Bearish territory (closer to recent lows)
Orange bars = Squeeze conditions (compressed between pivots)
Using MA Line:
When Histogram bars cross below or above MA Line in opposite direction, it might be good time to exit.
Default Settings: ATR-based thresholds with 14-period lookback - works great out of the box, but feel free to experiment with the different threshold modes to find what works best for your trading style! Recommended to use with other indicators to confirm signals
RSI with 2-Pole FilterA momentum indicator that tells you if a stock is overbought or oversold.
RSI goes between 0 and 100.
70 = overbought (might fall)
<30 = oversold (might rise)
It often looks jagged or choppy on volatile days.
Think of this filter like a momentum smoother:
It still follows RSI closely,
But it doesn’t react to every little jiggle in price,
Which helps avoid false signals.
it keeps track of:
The current RSI,
The last 2 RSI values (inputs), and
The last 2 outputs (filtered RSIs).
It uses feedback to shape the output based on previous values, making it smoother than a simple moving average.
Spread AnalysisSpread Analysis - Futures vs Spot Price Analysis
Advanced spread analysis tool that compares futures/perp prices with spot prices across multiple exchanges, providing insights into market sentiment and potential trading opportunities.
Multi-Asset Support: Automatically detects and analyzes crypto perpetual vs spot spreads, index futures vs cash indices (ES/SPX, NQ/NDX, YM/DJI), and commodity futures vs spot prices (GC/GOLD, CL/USOIL)
Multi-Exchange Aggregation: For crypto, aggregates prices from Binance, BitMEX, Kraken, Bybit, OKX, and Coinbase to calculate mean perp and spot prices
Z-Score Based Alerts: Uses statistical Z-score analysis to identify extreme spread conditions that may signal potential reversals or continuation patterns
Visual Histogram Display: Shows spread differences as colored columns - green for futures premium, red for futures discount
Flexible Calculation Methods: Supports absolute price differences, percentage spreads, or basis point calculations
Trading Applications: Identify market sentiment divergence, spot potential reversal opportunities, and confirm trend strength
Risk Management: Use extreme Z-scores to identify overvalued conditions and potential mean reversion setups
Market Analysis: Understand the relationship between futures and spot markets across different asset classes
Timing Tool: Spread momentum often precedes price moves, providing early signals for entry/exit decisions
Perfect for traders who want to understand the relationship between futures and spot markets, identify divergences, and spot potential reversal opportunities across crypto, indices, and commodities.
Key Features:
• Automatic asset detection and appropriate spread calculation
• Configurable Z-score alerts for extreme conditions
• Comprehensive tooltips and information guide
• Multiple calculation methods (absolute, percentage, basis points)
• Clean, customizable visual display
Use Cases:
• Crypto traders analyzing perp vs spot relationships
• Futures traders monitoring basis relationships
• Mean reversion strategies using extreme spreads
• Trend confirmation using spread momentum
• Market sentiment analysis across asset classes