Quantum Delta Zones with EnhancementsQuantum Delta Zones (QDZ)
Short Title: QDZ
Overview
The Quantum Delta Zones (QDZ) is a unique technical indicator designed to highlight high-probability order block zones in the market based on a combination of Delta Sensitivity, order block tightness, and volume-based filters.
This indicator helps traders to identify key support and resistance levels (bullish and bearish order blocks) that are backed by strong volume and optimal market structure. It employs advanced zone detection and automatic zone management (box creation and deletion) to enhance trade analysis.
The primary objective of QDZ is to provide clear, visually appealing support/resistance zones while factoring in market order flow dynamics, ensuring that you are trading at optimal levels with confirmed volume behind it.
Key Features
Delta Sensitivity: The indicator uses a body-to-range ratio to assess the "delta" between the body and wick of each candlestick, helping to identify strong order block formations based on market sentiment.
Order Block Tightness: A filter is used to detect small, tight order blocks where price action shows accumulation (small body candles) near high-probability levels.
Projection Distance: The ability to project the detected order block zones into the future, providing an idea of where price might react based on historical price action.
Fade Strength: Allows you to adjust the transparency of the projected zones, giving you visual flexibility depending on how prominent you want these order blocks to appear.
Volume Filter: A high-volume filter ensures that only zones with substantial volume (based on a moving average) are considered for box creation, preventing false signals and low-probability trades.
Auto Box Deletion: When the market invalidates a zone (price moves beyond the zone’s projected area), the boxes are automatically deleted to keep the chart clean.
Alerts: Built-in alerts for when a bullish or bearish order block is detected, providing real-time notifications of significant potential trading opportunities.
How it Works
Step-by-Step Explanation:
Delta Sensitivity:
A candlestick is considered "Bullish" if the closing price is above the opening price and the body-to-range ratio is above the user-defined delta Sensitivity.
A candlestick is considered "Bearish" if the closing price is below the opening price with the same body-to-range ratio criteria.
Order Block Tightness:
The indicator looks for tight order blocks, where the body-to-range ratio is below the orderBlock Tightness setting, indicating small candles that may represent accumulation or distribution zones.
Volume Filter:
The indicator applies a filter to check if the volume is above the 50-period simple moving average (SMA) and multiplied by the user-defined volume Multiplier. Only zones with sufficient volume are considered.
Box Creation:
Once a valid order block is detected, the corresponding bullish or bearish box is drawn on the chart. These boxes extend forward by the number of bars specified by projection Bars.
Box Deletion:
If the price moves against the order block (for example, if a bullish box is invalidated when the price closes below its bottom), the box is automatically deleted to keep your chart uncluttered.
Alert System:
Alerts can be set for both bullish and bearish order block detection, notifying traders of the formation of a potential market opportunity.
Inputs / Settings
Delta Sensitivity: The ratio between the candlestick body and its range. Higher values mean stronger bullish/bearish pressure is required to trigger the order block detection.
Order Block Tightness: Defines how tight or small an order block should be to qualify for detection. Smaller values are more sensitive to smaller candlesticks.
Projection Distance: The number of bars into the future that the identified order block should be projected. Useful for seeing potential future support/resistance zones.
Fade Strength: Defines the transparency level of the order block boxes. Higher values result in more transparent boxes, lower values make the boxes more opaque.
Auto Delete: Automatically deletes order blocks if they are invalidated by price action.
Volume Filter: When enabled, only order blocks formed with higher-than-average volume will be considered. This helps eliminate low-probability signals.
Volume Multiplier: Multiplies the average volume by this factor to determine whether the current volume qualifies as "high" for an order block detection.
Visuals
Bullish Order Block: A green box is drawn when a bullish order block is detected. The box is projected forward based on the projection Bars setting.
Bearish Order Block: A red box is drawn when a bearish order block is detected. Similar to the bullish box, it is projected forward.
Fading: Both bullish and bearish boxes fade based on the fade Strength, making the most recent zones more visible while fading out older, less relevant zones.
How to Use in Trading
Bullish Order Block:
A bullish order block is a potential buy area. Once price retraces to the bottom of a detected bullish box, traders may consider it a buy zone, especially if it aligns with other technical factors (e.g., support, trend).
Bearish Order Block:
A bearish order block is a potential sell area. Once price retraces to the top of a detected bearish box, traders may consider it a sell zone, particularly in downtrends or near resistance.
Risk Management:
The projection Bars setting helps to set a clear projection distance. Traders should use their own risk management strategies, such as stop-loss placements below/above the order block zones, and take-profit levels based on market conditions.
Volume Confirmation:
The Volume Filter can be very useful for confirming order blocks. Trading only when an order block is accompanied by high volume ensures the zone has institutional or market-maker backing.
Box Deletion:
The Auto Delete feature automatically removes invalidated zones, keeping the chart clean and preventing you from trading out-of-date or broken levels.
Trading Strategy Example
Bullish Setup:
Look for a bullish order block (green box) formed after price has been trending down and volume is high.
Wait for price to retrace back into the order block zone.
Enter long at the bottom of the order block when price shows signs of support (e.g., bullish candlestick pattern).
Set stop-loss below the bottom of the order block and a take-profit target at a significant resistance level.
Bearish Setup:
Look for a bearish order block (red box) formed after price has been trending up and volume is high.
Wait for price to retrace back into the order block zone.
Enter short at the top of the order block when price shows signs of resistance (e.g., bearish candlestick pattern).
Set stop-loss above the top of the order block and a take-profit target at a significant support level.
Limitations
The QDZ indicator is based on historical price action, and while it is designed to identify areas of strong market participation, it does not guarantee future price behavior.
Traders should always combine this indicator with other technical analysis tools, such as trend analysis, oscillators, or fundamental factors, to improve their decision-making process.
Conclusion
The Quantum Delta Zones (QDZ) indicator is a powerful tool for traders looking to pinpoint high-probability order blocks that are backed by volume and strong market dynamics.
It integrates well with existing trading strategies by providing clear, actionable zones of support and resistance, while also offering advanced features like fade strength, auto-deletion, and volume filters.
Whether you're trading intraday or longer-term, this tool can be an essential part of your trading toolbox.
This is an educational idea, trade at your own desecration.
Regards.
趨勢分析
Fractal Time GridOverview
The Fractal Time Grid is a Pine-Script v5 TradingView indicator designed to automate session-based entries, stops, and targets. It overlays on your chart, shading trading “quarters” of any chosen timezone, highlighting bullish or bearish bias zones, and marking up to N entries per quarter with on-chart signals. Optional SL/TP rays and built-in alerts make it a one-stop tool for disciplined session trading.
1. User Inputs
All inputs appear in the indicator’s Settings panel:
Category Input Description
Trend & History Trend Source („Auto“, Bull, Bear) Auto-detects daily bias or forces Bull/Bear
History (days) (≥1) How far back (in days) to keep session shading active
Session Limits Max Entries per 6H Quarter (1–10) Caps how many signals you’ll get in each 6-hour window
Risk Management & Visuals Show Entry/SL/TP Rays (On/Off) Toggles horizontal lines and price labels
SL Method („Bar High/Low“ or „1.5× Candle“) How the stop-loss distance is calculated
Risk:Reward Ratio (e.g. 4.0) Multiplier applied to SL distance to plot TP
Ray Length (bars) (≥1) How far right SL/TP rays extend
Session Timing Timezone Offset (hours, –12 to +14) Shifts session shading to your local clock
Colors Bullish/Bearish Session BG opacity Semi-transparent fill for bias zones
Entry candle colors (Bull/Bear) Highlights actual entry bars
2. Bias Determination
Daily Close vs. Open
Fetches prior-day open/close via request.security(..., "D", …)
If close > open → bullish bias; close < open → bearish
Manual Override
“Bullish” or “Bearish” mode forces one direction
“Auto” follows daily bias
3. Time-Grid Logic
Timezone Handling
Converts UTC bar timestamps by your tzOffset input
Quarter Windows (6H each)
Q1: 23:00–05:00 local
Q2: 05:00–11:00
Q3: 11:00–17:00
Q4: 17:00–23:00
Session Shading
During Q1–Q3 (configurable days back), background colored to match bias
4. Entry Logic
Conditions:
Within an active quarter, bias must match candle direction (bullish candle in bullish quarter, etc.)
Entry count for the quarter must be below your maximum
Counters:
Automatically resets on quarter switch
Tracks how many entries you’ve taken, preventing over-trading
5. Visual Signals
Bar Coloring: Flags entry bars green/red
Shape Markers:
BUY label below bar for long entries
SELL label above bar for shorts
6. Optional SL/TP Rays
When “Show Entry/SL/TP Rays” is enabled:
Computes SL distance either from bar high/low or a multiple of candle size
TP = SL × R:R ratio
Draws three horizontal rays (entry, SL, TP) with end-of-ray price labels
7. Alerts
Pre-built alertcondition calls let you create TradingView alerts instantly:
Names: “BUY Alert” and “SELL Alert”
Messages:
arduino
Copy
Edit
BUY {{ticker}} at {{close}} – Q{{quarter}} – {{entryCount}}/{{maxEntriesQuarter}} entries
(same format for SELL)
8. Why Publish This?
Discipline Built-In: Caps over-trading per session
Timezone-Agnostic: Works equally for NY, London, Tokyo sessions
All-in-One: Bias, timing, entries, risk and alerts in one script
Fully Customizable: Colors, risk settings, time windows, and more
ULTIMATE Price Action Oscillator with Volume-Based S/R - MehtaULTIMATE Price Action Oscillator with Volume-Based S/R (UPO-PRO-VOL)
Key Features:
Smart Oscillator: Combines price action momentum with customizable smoothing.
Volume-Confirmed S/R: Identifies high-confidence Support/Resistance levels when price crosses above-average volume.
Real-Time Tracking: Displays S/R levels with timestamps (IST) in a clean table.
Visual Alerts: Dashed lines + labels mark key levels for easy spotting.
⚠️ STRONG DISCLAIMER
❌ This indicator is for educational purposes only.
❌ Not financial advice. Trading involves risk—always conduct your own analysis.
❌ No guarantee of accuracy. Past performance ≠ future results.
❌ Adjust settings carefully. Test in a demo account first.
❌ Volume thresholds may vary by asset. Customize Volume Threshold Multiplier as needed.
📝 How to Use:
S/R Signals: Green "S" = Support (oscillator crosses up with high volume). Red "R" = Resistance (oscillator crosses down with high volume).
Table: Tracks latest S/R prices and formation time (IST).
Tweak Settings: Adjust Oscillator Length, Smoothing, and Volume Threshold for your trading style.
Tip: Combine with trend analysis for higher-probability trades!
Script Settings (Default):
Oscillator Length: 5 (Can be adjusted upto a maximum value of 200)
Smoothing: 3
S/R Lookback: 100 bars
Volume Threshold: 1.5x avg volume
Initial Imbalance [First FVG - ICT] v1Initial Imbalance v1
This indicator identifies the first Fair Value Gap (FVG) at the start of a user-defined session, inspired by The Inner Circle Trader. It helps traders spot initial imbalance in a sessions price action, offering filter options to refine FVG detection and optional session high/low lines for context.
Features:
Detects the first bullish or bearish FVG at the session start (default: 08:30). ISE: Sets a custom session start time (hour and minute).
Filters FVGs by size: None, ATR-based, or Points-based.
Displays session high/low lines (optional) to visualize the session range.
Customizable colors for bullish and bearish FVGs (background and border derived from a single color input).
Alerts for new FVGs and mitigated FVGs.
Settings:
Session Start Time: Define the hour and minute for the session start.
FVG Filter Type: Choose None, ATR, or Points to filter FVGs by size.
ATR Multiple / Minimum Points: Set the minimum FVG size for ATR or Points filters.
Show Session High/Low Lines: Toggle visibility of session range lines.
Bullish/Bearish FVG Colors: Customize colors for FVGs.
Technical Details:
Overlay indicator, displayed directly on the price chart.
This indicator is ideal for traders seeking to identify key price imbalances at the start of a session, with flexible filtering and visualization options.
Overnight ES Strategy: CBC + Fractal + RSI + ATR FilterThis script is designed for overnight trading of the E-mini S&P 500 futures (ES) between 6 PM and 11 PM EST.
It combines multiple technical confluences to generate high-probability buy and sell signals, focusing on volatility-rich, low-liquidity evening sessions.
Key Features:
Candle Body Confluence (CBC) Approximation:
Identifies candles with small real bodies compared to total range, simulating consolidation zones where price is likely to reverse.
Williams Fractal Confirmation:
Detects local tops and bottoms based on 5-bar fractal reversal patterns, helping validate breakout or reversal points.
RSI Filter:
Ensures momentum is supportive — buys only when RSI < 35 (oversold) and sells only when RSI > 65 (overbought).
ATR Volatility Filter:
Trades are only allowed if the Average True Range (ATR) exceeds a user-defined threshold, filtering out low-volatility, risky environments.
Time Session Control:
Signals are only generated during the user-defined evening session (default: 6 PM to 11 PM EST) to match market behavior.
Real-Time Alerts Enabled:
Alerts can be set for BUY or SELL conditions, enabling mobile notifications, emails, or pop-ups without constant chart monitoring.
Recommended Settings:
Chart Timeframe: 15-minute or 30-minute candles
Assets: ES Mini (ES1!), NQ Mini, or other CME futures
Session: New York Time (EST)
ATR Threshold: Adjust based on market conditions; 5.0 suggested starting point for ES Mini on 15m.
Important:
This script only plots signals, it does not auto-execute trades.
Always backtest and paper trade before using live capital.
Volatility can vary; consider adjusting RSI and ATR filters based on market environment.
Credits:
Script designed based on confluence of price action, momentum, reversal structure, and volatility filtering principles used by professional traders.
Inspired by Candle Body Confluence (CBC) theory and Williams fractal techniques.
Market Structure Confluence [AlgoAlpha]OVERVIEW
This script is called "Market Structure Confluence" and it combines classic market structure analysis with a dynamic volatility-based band system to detect shifts in trend and momentum more reliably. It tracks key swing points (higher highs, higher lows, lower highs, lower lows) to define the trend, then overlays a basis and ATR-smoothed volatility bands to catch rejection signals and highlight potential inflection points in the market.
CONCEPTS
Market structure is the foundation of price action trading, focusing on the relationship between successive highs and lows to understand trend conditions. Break of Structure (BOS) and Change of Character (CHoCH) events are important because they signal when a market might be shifting direction. This script enhances traditional structure by integrating volatility bands, which act like dynamic support/resistance zones based on ATR, allowing it to capture momentum surges and rejections beyond just structural shifts.
FEATURES
Swing Detection: It detects and labels Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL) based on user-defined time horizons, helping traders quickly spot the trend direction.
BOS and CHoCH Lines: When a previous swing point is broken, the script automatically plots a Break of Structure (BOS) line. If the break represents a major trend reversal (a CHoCH), it is marked differently to separate simple breakouts from real trend changes.
Rejection Signals: Special arrows plot when price pierces a band and then pulls back, suggesting a potential trap move or rejection signal in the direction of the new structure.
Alerts: Built-in alerts for structure breaks, CHoCHs, swing points, rejections at bands, and trend flips make it easy to automate setups without manually watching the chart.
USAGE
Set your preferred swing detection size depending on your timeframe and trading style — smaller numbers for intraday, larger numbers for swing trading. Choose whether you want BOS/CHoCH confirmed by candle closes or by wick breaks. Use the volatility band settings to fine-tune how tightly or loosely the bands hug the price, adjusting sensitivity based on market conditions. When a BOS or CHoCH occurs, or when a rejection happens at the bands, the script will highlight it clearly and optionally trigger alerts. Watch for combinations where both structure breaks and volatility band rejections happen together — those are high-quality trade signals. This setup works best when used with basic trend filtering and higher timeframe confirmation.
Swing High/Low Scalper(Mastersinnifty)Overview
The Swing High/Low Scalper is designed for traders seeking structured entries and disciplined stop-loss planning during momentum shifts. It combines smoothed Force Index readings with swing high/low analysis to identify moments where both momentum and structural price levels align.
When a new directional bias is confirmed, the indicator plots clear entry signals and dynamically calculates the nearest logical stop-loss level based on recent swing points.
---
Core Logic
- Force Index Bias Detection
- The Force Index (price × volume change) is smoothed with an EMA to determine sustained bullish or bearish momentum.
- Signal Memory and Noise Reduction
- The indicator remembers the last signal (buy/sell) and only triggers a new signal when the bias changes, helping avoid redundant entries in sideways or noisy conditions.
- Swing-based Stop-Loss Calculation
- Upon signal confirmation, the script automatically plots a stop-loss label near the most recent swing low (for buys) or swing high (for sells).
- If conditions are extreme, fallback safety checks are used to validate the stop-loss placement.
---
Key Features
- Dynamic, structure-based stop-loss plots at every trade signal.
- Visual background bias:
- Green tint = Bullish bias
- Red tint = Bearish bias
- Minimalist and clean chart visualization for easy interpretation.
- Designed for scalability across timeframes (from 1-minutes to daily charts).
---
Why It’s Unique
- Unlike simple momentum oscillators or swing indicators, this tool integrates a state-tracking mechanism.
- A signal is only generated when a true shift in directional force occurs and swing structure supports the move, seeking to catch only meaningful changes rather than every minor fluctuation.
- This dual-filter approach emphasizes quality over quantity, aiming for disciplined entries with risk levels derived from actual price behavior, not arbitrary formulas.
---
How to Use
- Apply the Script to your desired chart and timeframe.
- Look for Signals:
- Green Up Arrow = Buy Signal
- Red Down Arrow = Sell Signal
- Observe Stop-Loss Labels
- Use the plotted SL labels for setting exit points based on recent swing structure.
- Monitor Background Bias:
- Green or Red background hints at prevailing directional momentum.
---
Important Disclaimer
This tool is intended to assist technical analysis and trade planning.
It does not provide financial advice or guarantee any future performance.
Always use additional risk management practices when trading.
Swing + 3-Bar Breakout(Mastersinnifty)Overview
This script is a hybrid trading tool combining swing-based structural analysis, momentum filtering, and breakout validation — designed to detect early reversals and confirm trend continuations within a single unified system.
It integrates five major components:
- ZigZag Structural Detection — to identify critical swing highs and lows.
- Momentum Validation — using RSI and Rate of Change (ROC) to confirm the strength behind swings.
- Three-Bar Breakout Confirmation — spotting trend continuation beyond swing structures.
- Dynamic Trailing Stop System — managing trades adaptively via ATR-based trailing stops.
- Projected Target Levels — estimating future price destinations based on measured swings.
---
What Makes This Script Unique
Rather than using standard indicators in isolation, this script layers multiple conditions sequentially and contextually:
- Structural Foundation: Identifies pivots through a tight ZigZag algorithm tuned with a low-depth setting for early detection.
- Momentum Checkpoint: Validates pivots only if RSI extremes and ROC momentum surges align, reducing false breakouts during sideways movements.
- Breakout Validation: Confirms trend continuation when price breaches critical multi-bar highs/lows post-swing formation.
- Risk-Managed Progression: Initiates adaptive ATR-based trailing stops immediately after signal generation, tightening risk dynamically as trends unfold.
- Target Projection: Estimates potential move size by projecting the magnitude of the last completed swing, offering realistic price milestones.
This combination provides a dual-purpose tool for both reversals and breakouts, allowing flexible trading styles within a single indicator.
---
How the Script Works
- Swing Detection
- A swing low is identified when a price bottom forms (via ZigZag) and momentum conditions are met (RSI < 20, ROC > +0.5).
- A swing high is identified when a price top forms and momentum conditions are met (RSI > 80, ROC < -0.5).
- Breakout Confirmation
- After a swing is detected, if price crosses above/below a three-bar swing structure, a secondary breakout signal is triggered.
- Trailing Stop Activation:
- Upon a confirmed swing or breakout, an ATR-multiplied trailing stop is initialized below/above the entry point to secure profits dynamically.
- Projection Logic
- Swing height is measured from the latest high-low sequence, and potential future targets are plotted for visual guidance.
---
Who Can Benefit From This Indicator
- Swing Traders — who seek early entries around reversal zones.
- Scalpers & Intraday Traders — needing fast-reacting momentum-based confirmation.
- Breakout Traders — to time entries after multi-bar compressions.
- Risk Managers — through integrated ATR trailing stops for dynamic exit management.
- Price Action Analysts — utilizing projected swing targets for strategic planning.
---
How to Use
- Entry Identification
- Look for buy signals at swing lows with strong positive momentum.
- Look for sell signals at swing highs with strong negative momentum.
- Use breakout confirmations to validate the trend continuation beyond swings.
- Risk Management
- Monitor trailing stop lines to track trade health.
- Watch projected targets to anticipate realistic move completions.
- Chart Visibility
- All plotted points, breakout markers, trailing stops, and projected levels are generated automatically for clarity.
---
Disclaimer
This script is intended for educational and analytical purposes only.
It does not constitute financial advice, and past performance does not guarantee future results.
All trading involves risk. Users are responsible for their own trading decisions.
Impulse Indicator New Capital FXThe Impulse Indicator is designed for traders who demand precision when identifying explosive market moves. This tool detects powerful short-term impulses by combining ATR-based volatility analysis with tactical price action patterns.
Key Features:
1. Dynamic Impulse Detection: Spots major price shifts based on a 5-bar momentum structure and ATR volatility filter.
2. Adaptive Volatility Filter: Filters out weak signals with a customizable ATR multiplier.
3. Cooling Period Logic: Reduces signal noise by enforcing a minimum bar spacing between impulses.
4. Clear Visual Signals: Plots "IMPULSE" labels directly on your chart for instant recognition.
How It Works:
The markets explode in a short-period of time, the indicator spots the move and plots a label, now if you're trading mean reversion pairs, you can look to go against the impulse, or if you want to catch trends you can use the indicator for potential continuation setups.
Customizable Settings:
ATR Multiplier (Best with 3,4,5)
Cooling Period (Standard is 5 bars, which is good)
ATR Length (The standard 14 period)
Anchored Moving Average by TradeSeekersThis script plots an SMA that resets based on the selected anchored timeframe, by default it is 1D.
There exists some other AMA scripts but I didn't find anything that plotted the non-anchored MA alongside the AMA and displayed the point of convergence.
The non-anchored MA presents slightly opaque as a circle plot until the anchored MA converges.
Until the anchored MA contains enough data an simple average is calculated of all source prices collected starting from the anchor.
For example, if the timeframe has reset and source is set to closing prices, then after the first bar the AMA is essentially the last closing price. After two bars have closed then the AMA is an average of the last two closing prices.
Future updates may add additional average types as time permits.
High Threshold Volume BarHigh Threshold Volume Bar (HP Vol Bar) has the following features highlighted below.
Overview:
The High Threshold Volume Bar (HP Vol Bar) is an advanced technical analysis tool designed to identify statistically significant price bars based on volume, range, and trend dynamics. It helps traders spot high-probability continuation or reversal setups by analyzing bar size relative to historical volatility, volume spikes, and trend strength.
Key Features
1. Adaptive Threshold Detection
.Uses standard deviation bands and moving averages to dynamically adjust the significance threshold based on recent market conditions.
.Bars exceeding this threshold are flagged as "significant" and color-coded for easy identification.
2. Volume & Range Normalization
.Adjusts bar size calculations by factoring in volume spikes (relative to SMA-smoothed volume) and full price range (high-low or just body size).
.Prevents false signals by capping extreme volume outliers.
3. Trend Strength & Direction
Incorporates Directional Movement (DMI) to assess trend strength.
Classifies signals as continuation or reversal based on trend alignment.
4. Percentile Ranking
.Compares current bar size against a lookback period (default: 100 bars) to determine its statistical rarity (top 20% = high significance).
5. Consecutive Signal Filtering
.Requires multiple consecutive significant bars (configurable) to confirm high-probability setups, reducing noise.
6. Visual & Alert System
.Color-coded bars:
.Blue (Bullish Continuation) / Pink (Bearish Continuation) for high-probability signals.
.Teal (Bullish) / Maroon (Bearish) for significant but unconfirmed bars.
.Info Table: Displays real-time metrics (signal type, percentile, trend strength, volatility regime).
.Alerts: Triggers when a high-probability sequence is detected.
Input Parameters
1. Parameter Description Default
2. SMA Length Smoothing period for average bar size. 50
3. Standard Deviation Period Lookback for volatility calculation. 20
4. Standard Deviation Multiplier Adjusts sensitivity of threshold. 2.5
5. Factor in Volume Normalizes bar size using volume. true
6. Use Full Range Measures high-low instead of open-close. true
7. Min Consecutive Bars Required confirmations for high-probability signals. 2
8. Historical Comparison Period Lookback for percentile ranking. 100
9. Trend Strength Period Smoothing for DMI-based trend assessment. 14
How It Works
1. Calculates Bar Size:
.Uses either full range (high-low) or body size (open-close).
.Adjusts for volume spikes via EMA-normalized volume.
2. Determines Significance:
.Bar size must exceed:
.Adaptive threshold = SMA + (StdDev × Multiplier × Volatility Factor).
.Percentile rank > 80% (top 20% of recent bars).
.Trend strength > 20% (DMI-derived).
3. Classifies Signals:
.Continuation: Significant bar aligns with prior trend.
.Reversal: Significant bar contradicts prior trend.
4. Confirms High-Probability Setups:
.Requires consecutive significant bars (user-defined) to filter noise.
7. Usage Guidelines
.Bullish Signals: Look for blue bars (confirmed) or teal bars (unconfirmed) in uptrends.
.Bearish Signals: Look for pink bars (confirmed) or maroon bars (unconfirmed) in downtrends.
.Alerts: Use built-in alerts to notify when a high-probability sequence forms.
.Combine With: Support/resistance levels, candlestick patterns, or momentum oscillators for confluence.
8. Why This Script?
.Dynamic Adaptation: Adjusts to changing volatility and volume regimes.
.Statistical Rigor: Uses percentile ranking to avoid overfitting.
.Clear Visuals: Intuitive color-coding and table for quick analysis.
Note: This is a closed-source script, but the logic is transparently explained to ensure traders understand its methodology.
How to Use "High Threshold Volume Bar" for Trade Entries
The HP Vol Bar indicator identifies high-probability trade setups based on statistically significant price bars. Here’s how to use it for entries, exits, and trade management:
1. Trade Entry Rules (Table Values to consider to trade)
A) Bullish Continuation Setup (Trend Following)
Conditions:
✅Signal Status: Active
✅ Signal Type: bullish_cont (Blue,Teal bar)
✅Size percentile: 90%
✅ Trend Strength: > 20% (Strong trend)
✅ Consecutive Bars: ≥ 1or2
✅ Volume Regime : High
Entry:
.Buy at the close of the second (or Nth) confirmed blue bar.
.Stop Loss (SL): Below the lowest bar in the sequence.
.Take Profit (TP):
1.5× to 2× the bar size (adaptive to volatility).
Example:
Bearish Continuation Example
B) Bearish Continuation Setup (Trend Following)
Conditions:
✅Signal Status: Active
✅ Signal Type: bearish_cont (Pink bar)
✅Size percentile: 90%
✅ Trend Strength: > 20%
✅ Consecutive Bars: ≥ 1or2
✅ Volume Regime : High
Entry:
Sell Short at the close of the second (or Nth) confirmed pink bar.
Stop Loss (SL): Above the highest bar in the sequence.
Take Profit (TP): Similar to bullish (1.5-2× bar size).
C) Bullish/Bearish Reversal Setup (Counter-Trend)
Conditions:
✅Signal Status: Active
✅ Signal Type: bullish_rev or bearish_rev
✅Size percentile: 90%
✅ Trend Strength: > 20%
✅ Consecutive Bars: ≥ 1or2
✅ Volume Regime : High
Entry:
Wait for confirmation (next bar closes in reversal direction).
SL: Opposite extreme of the signal bar.
Example:
Reversal Example
2. Filtering & Confluence (Improving Accuracy)
Trend Alignment: Only trade in the direction of the higher timeframe trend (e.g., use EMA 50/200)
Support/Resistance: Enter near key levels for better risk-reward.
Volume Confirmation: Avoid signals with below-average volume.
3. Advanced Strategies
A) Breakout Confirmation
If a significant bar breaks a key level, enter on retest.
Example: Blue bar breaks resistance → Buy on pullback.
B) Mean Reversion (Range Markets)
Use low volatility mode (volRegimeText = "LOW") + reversal signals.
Fade extreme moves back to the mean (e.g., SMA).
Stablecoin Supply Ratio [Alpha Extract]Stablecoin Supply Ratio Indicator
The Stablecoin Supply Ratio (SSR) indicator compares Bitcoin's market capitalization to the aggregate supply of major stablecoins, offering insights into relative purchasing power and liquidity. This tool helps traders:
✔ Assess Bitcoin's buying power relative to the available stablecoin liquidity.
✔ Detect periods of capital inflow or outflow from stablecoins.
✔ Identify market sentiment shifts based on stablecoin reserves.
🔶 CALCULATION
The indicator aggregates the supply of key stablecoins and compares it to Bitcoin's market cap:
Stablecoin Aggregation
• Inputs:
USDT, USDC, DAI, USDD (daily closing values).
BUSD Market Cap (Glassnode data).
• Total Stablecoin Supply:
Sum of the listed stablecoins' market caps.
Stablecoin Supply Ratio (SSR)
• Formula:
SSR = Bitcoin Market Cap / Total Stablecoin Supply
• Normalized SSR:
Normalized by dividing SSR by its 200-day SMA.
Bollinger Bands
• Bands are applied to the normalized SSR using a configurable moving average type and 2 standard deviations.
Example Calculation:
ssr = btcmc / stablecoin_liq
ratio = ssr / ta.sma(ssr, 200)
basis = ta.sma(ratio, 200)
dev = 2 * ta.stdev(ratio, 200)
upper = basis + dev
lower = basis - dev
🔶 DETAILS
Visual Features:
• Normalized SSR:
Plotted as a light green line.
• Upper Band:
Red line indicating SSR overbought zone.
• Lower Band:
Green line signaling SSR oversold zone.
Interpretation:
• High SSR: Indicates stablecoin reserves are low relative to Bitcoin's market cap, reducing stablecoin buying power.
• Low SSR: Suggests high stablecoin liquidity relative to Bitcoin's market cap, increasing potential buying pressure.
• Band Crosses: Movements beyond the upper or lower bands may signal sentiment extremes.
🔶 EXAMPLES
Market insights include:
• Capital Outflows: SSR rising into the upper band may reflect decreasing stablecoin reserves, potentially signaling a liquidity drain.
• Capital Inflows: SSR dropping near the lower band could indicate growing stablecoin reserves, potentially fueling Bitcoin demand.
🔶 SETTINGS
Customization Options:
• MA Type: Choose between SMA, EMA, WMA, SMMA, and VWMA for band calculation.
• Period: Adjust the 200-day smoothing period.
• Deviation Multiplier: Modify the standard deviation multiplier (default: 2).
The Stablecoin Supply Ratio indicator is a valuable tool for traders monitoring liquidity dynamics and stablecoin trends to anticipate Bitcoin market moves and capital flows.
Zero Lag Delta System [Hybrid Version] - Inverted🔹 Zero Lag Delta System — Inverted 🔹
The Zero Lag Delta System is a hybrid momentum oscillator designed to capture real-time trend shifts and market strength with maximum responsiveness and minimum lag.
Unlike traditional moving averages or momentum indicators, this tool applies a zero lag smoothing algorithm on price data to reduce delay without sacrificing stability.
It then measures the dynamic delta — the difference between two zero lag averages — to track the push and pull between bullish and bearish pressure in real time.
Key Features:
📈 Bullish momentum appears as green bars rising above the centerline.
📉 Bearish momentum appears as red bars falling below the centerline.
🧠 Zero lag smoothing provides faster and cleaner trend recognition.
🧩 Dynamic bands adapt to volatility, highlighting when moves are statistically significant.
🎯 Auto background coloring shows when momentum is strong, weak, or neutral.
🔔 Built-in alerts for bullish and bearish zero crosses.
🧠 How to Trade with Zero Lag Delta System:
1. Bullish Cross:
Signal: Delta crosses above the zero line.
Possible Action: Look for potential long (buy) opportunities.
2. Bearish Cross:
Signal: Delta crosses below the zero line.
Possible Action: Look for potential short (sell) opportunities.
3. Breakout Above Upper Band:
Signal: Strong bullish momentum confirmed by breakout over the dynamic upper band.
Possible Action: Consider aggressive long entries with trend confirmation.
4. Breakout Below Lower Band:
Signal: Strong bearish momentum confirmed by breakout under the dynamic lower band.
Possible Action: Consider aggressive short entries with trend confirmation.
5. Return to Neutral Zone:
Signal: Delta moves back toward the centerline, indicating weakening momentum.
Possible Action: Be cautious, tighten stops, or stay neutral until a clear signal emerges.
📚 Example Trading Scenarios:
Trend Entry:
When delta crosses above the zero line and stays above, price often enters a healthy uptrend. Look for pullbacks to enter with the trend.
Breakout Confirmation:
If delta moves sharply outside the dynamic bands (especially after consolidation), it often confirms a new momentum breakout.
Divergence Detection:
If price makes new highs but delta fails to do so (or vice versa), it may hint at hidden reversal opportunities.
⚡ Why Use Dynamic Bands Instead of Fixed Levels?
Unlike traditional 20/80 fixed levels that assume static market behavior, dynamic bands adapt automatically to current volatility conditions.
This ensures the indicator remains highly sensitive during calm markets, yet avoids overreacting during high-volatility phases.
Dynamic bands provide:
✅ Better precision in spotting true momentum breakouts.
✅ More accurate filtering of noise during sideways markets.
✅ A more adaptive and universal system across different assets (forex, crypto, stocks).
🔥 Final Thoughts:
The Zero Lag Delta System provides a simple yet powerful visual framework for understanding price momentum at a deeper level.
Use it alongside your existing strategy to refine entries, exits, and overall trend bias.
As always, combine with price action and risk management for best results.
This is an educational idea, and past performance may not replicate itself.
Happy trading! 🚀
Sniper Core XT [Indicator Edition]🔫 SNIPER CORE XT — ZLEMA-Based Trend, Momentum & Volume Confirmation
⚙️ How It Works (What Makes It Unique):
Sniper Core XT is a precision crypto trading tool that visualizes real-time trend, momentum, volume, and volatility confirmation. Built from the ground up using Pine Script v5, it is optimized for semi-manual or alert-driven trading on the 1H timeframe.
Instead of relying on indicator mashups, Sniper Core XT builds its logic around the ZLEMA (Zero Lag Exponential Moving Average) trend engine, refined with strict momentum, volume, and volatility filters to highlight only high-probability trading opportunities.
🧠 Core Logic & Components:
ZLEMA Trend Engine:
Plots fast, slow, and signal ZLEMA lines to detect clean trend transitions with minimal lag, enabling early, reliable trend identification.
Vortex Direction & Strength Filter:
Confirms directional bias based on Vortex Indicator internals. Signals only activate when vortex strength exceeds a customizable threshold and aligns with ZLEMA trend.
Volume Confirmation via ZLEMA of Volume:
Uses adaptive volume confirmation, requiring current volume to exceed a ZLEMA-smoothed threshold to validate breakout moves.
Normalized Volatility-Adjusted Momentum Filter:
Measures momentum via a normalized, ATR-adjusted rate of change. Filters out low-momentum or exhausted moves before they trigger false signals.
Real-Time Take Profit Tracking:
Plots real-time TP1 and TP2 targets after entry. Visual labels confirm when TP1 or TP2 are hit, without relying on broker execution.
Non-Canvas Dashboard:
Includes a fully integrated live table showing:
Current Signal (Long, Short, None)
Entry Price
TP1/TP2 Status
Trend Direction
Bars Since Entry
Exit Signals for Trend Weakness:
Plots exit labels when trend strength fades or reverses, allowing traders to manually close positions with precision.
🧪 Indicator Use & Applications:
Designed for manual or semi-automated crypto trading
Ideal for trending pairs and medium-high volatility environments
Compatible with external bots through alerts (WunderTrading, PineConnector, 3Commas, etc.)
Suited for 1H timeframe, but adjustable
🛡️ Indicator Style:
Feature Value
Repainting ❌ Never
Cooldown Mechanism ✅ 1-Bar
TP1/TP2 Tracking ✅ Built-in
Alert Compatibility ✅ Full support
Recommended Timeframe 🕒 1H
Entry & Exit Labels ✅
⚠️ Disclaimer:
This indicator is for educational and informational purposes only. It does not constitute financial advice. Always practice proper risk management and confirm entries with your own analysis before executing trades.
HTF Candle + OHLC Line Extensions📈 Script Title:
HTF Candle + OHLC Line Extensions
✨ Capabilities Overview:
This Pine Script plots a dynamic Higher Timeframe (HTF) candle on your current (lower) chart.
It visually highlights:
• A solid "candle body" based on the highest close and lowest close within the selected HTF range.
• An optional wick representing the absolute high and low of that HTF period.
• Extended lines projecting the HTF Open, High, Low, and Close levels onto the current chart.
• Labels displaying the exact OHLC prices next to their respective lines.
• A central label naming the selected HTF.
This makes it easy to track HTF structure, key levels, and trends without switching chart timeframes.
________________________________________
⚙️ Inputs Explained and How to Set Them:
Input Name Description Recommended Settings
Higher Timeframe (htf_label) The timeframe to build the candle from (e.g., 4H, 1D, etc.). Choose a timeframe higher than your chart's timeframe (e.g., use 4H if on a 30min chart).
Offset to Right (bars) (offset_bars) Number of bars to shift the HTF candle to the right of current price action. Default 2 is good; increase if you want more spacing.
Show Wicks? (show_wicks) Toggles drawing of the wick (high-low range). Leave on for a more complete candle look. Turn off for cleaner appearance.
OHLC Line Color (line_color) Color of the Open, High, Low, Close extension lines. Pick a color that stands out on your chart (e.g., yellow).
OHLC Line Thickness (line_thickness) Thickness of the OHLC lines. Default 2 is visible but subtle. Increase for stronger emphasis.
OHLC Line Style (line_style) Solid, dotted, or dashed style for the OHLC lines. - Solid for strong levels
- Dotted for secondary importance
Candle Bullish Color (candle_up_color) Fill color for bullish HTF candles. Use a green shade.
Candle Bearish Color (candle_down_color) Fill color for bearish HTF candles. Use a red shade.
Bullish Wick Color (bullish_wick_color) Color of the wick for bullish candles. Match or slightly lighten the bullish candle color.
Bearish Wick Color (bearish_wick_color) Color of the wick for bearish candles. Match or slightly lighten the bearish candle color.
Bullish Border (bullish_candle_border) Color for the border of bullish candles. Usually match the candle body or make slightly darker.
Bearish Border (bearish_candle_border) Color for the border of bearish candles. Same principle as bullish borders.
Label Text Color (label_text_color) Text color for OHLC labels. White for dark charts; Black for light charts.
Label Background Color (label_bg_color) Background color for labels (for readability). Usually opposite of your chart background (e.g., black background on light charts).
________________________________________
📋 Detailed Script Behavior:
1. Timeframe Handling:
• Converts the user’s selection (htf_label) into minutes.
• Calculates how many chart bars make up the selected HTF period.
• Dynamically adapts even if the market is closed (no reliance on session endings).
2. HTF OHLC Calculation:
• Open: First bar’s open within HTF window.
• High/Low: Highest high and lowest low within HTF window.
• Close: Most recent bar’s close.
• High Close / Low Close: Highest and lowest closes for the candle body.
3. Plotting:
• Candle Body: Draws a box between highest close and lowest close.
• Wick: (Optional) Line connecting absolute High and Low.
• OHLC Lines: Drawn from where the price was observed to the HTF candle.
• Labels: Show precise O/H/L/C prices and the timeframe name.
________________________________________
📢 Important Usage Tips:
• Best Practice: Always select an HTF that’s higher than your current chart (for clarity).
For example:
o Chart: 15 min → HTF: 1H, 4H
o Chart: 1H → HTF: 4H, 1D
• Offset: If your chart is crowded, increase "Offset to Right" to move the candle visualization farther out.
• Customization: Adjust colors and line styles to match your chart theme for better visibility.
• Performance: Drawing many elements every bar is lightweight here, but on very high-frequency charts (like 1-min), it can cause slight lag.
________________________________________
🧠 Summary
This script is a powerful visual aid for traders who:
• Want to see HTF structure without changing charts.
• Like to track key HTF levels (especially Open, High, Low, Close).
• Prefer a minimal, customizable display that's easy to align with their chart styles.
Market Volatility KeyMarket Volatility Key is a compact dashboard tool designed to help traders quickly assess market conditions related to volatility, trend strength, and asset movement.
This indicator consolidates several key metrics into a color-coded table, providing traders with a real-time overview of the market’s volatility landscape. It is intended to complement existing trading strategies, particularly for trend-following and scalping approaches.
Key Features:
Choppiness Index (CHOP): Measures whether the market is trending or consolidating.
Average True Range (ATR): Customizable by timeframe, helping gauge volatility across different periods.
Volatility Index (VIX): Displays real-time VIX readings, often used as a "fear gauge" for market sentiment.
10-Year US Treasury Bond Yield (10Y): Shows current bond yield to monitor macroeconomic conditions.
Bitcoin (BTC/USD): Tracks price along with directional movement.
Dollar Index (DXY): Displays the strength of the US dollar.
MAG 7 Index: A custom average of Microsoft, Apple, Alphabet, Amazon, Tesla, Meta, and NVIDIA prices.
Visual Enhancements (April 2025 Update):
Directional Arrows: BTC, DXY, MAG7, VIX, and 10Y Bond rows now show ▲ (up), ▼ (down), or → (sideways) based on price movement.
Dynamic Value Colors:
Green for rising prices (BTC, DXY, MAG7, 10Y Bond)
Red for falling prices
For VIX, rising volatility is shown in red and falling volatility in green to better reflect market sentiment.
Customization Options:
Adjustable ATR timeframe
Adjustable table position (top, middle, or bottom right)
Selectable font size (small, medium, large)
Intended Use: This script provides a high-level visual summary of multiple market indicators in one place. It is designed to assist traders in recognizing potential changes in volatility and market sentiment without replacing other forms of technical or fundamental analysis.
Market Breadth Peaks & Troughs IndicatorIndicator Overview
Market Breadth (S5TH) visualizes extremes of market strength and weakness by overlaying -
a 200-period EMA (long-term trend)
a 5-period EMA (short-term trend, user-adjustable)
on the percentage of S&P 500 constituents trading above their 200-day SMA (INDEX:S5TH).
Peaks (▼) and troughs (▲) are detected with prominence filters so you can quickly spot overbought and oversold conditions.
⸻
1. Core Logic
Component Description
Breadth series INDEX:S5TH — % of S&P 500 stocks above their 200-SMA
Long EMA 200-EMA to capture the primary trend
Short EMA 5-EMA (default, editable) for short-term swings
Peak detection ta.pivothigh + prominence ⇒ major peaks marked with red ▼
Trough detection (200 EMA) ta.pivotlow + prominence + value < longTroughLvl ⇒ blue ▲
Trough detection (5 EMA) ta.pivotlow + prominence + value < shortTroughLvl ⇒ green ▲
Background shading Pink when 200 EMA slope is down and 5 EMA sits below 200 EMA
⸻
2. Adjustable Parameters (input())
Group Variable Default Purpose
Symbol breadthSym INDEX:S5TH Breadth index
Long EMA longLen 200 Period of long EMA
Short EMA shortLen 5 Period of short EMA
Pivot width (long) pivotLen 20 Bars left/right for 200-EMA peaks/troughs
Pivot width (short) pivotLenS 10 Bars for 5-EMA troughs
Prominence (long) promThresh 0.5 %-pt Depth filter for 200-EMA pivots
Prominence (short) promThreshS 3.0 %-pt Depth filter for 5-EMA pivots
Trough level (long) longTroughLvl 50 % Max value to accept a 200-EMA trough
Trough level (short) shortTroughLvl 30 % Max value to accept a 5-EMA trough
⸻
3. Signal Guide
Marker / Color Meaning Typical reading
Red ▼ Major breadth peak Overbought / possible top
Blue ▲ Deep 200-EMA trough End of mid-term correction
Green ▲ Shallow 5-EMA trough (early) Short-term rebound setup
Pink background Long-term down-trend and short-term weak Risk-off phase
⸻
4. Typical Use Cases
1. Counter-trend timing
• Fade greed: trim longs on red ▼
• Buy fear: scale in on green ▲; add on blue ▲
2. Trend filter
• Avoid new longs while the background is pink; wait for a trough & recovery.
3. Risk management
• Reduce exposure when peaks appear, reload partial size on confirmed troughs.
⸻
5. Notes & Tips
• INDEX:S5TH is sourced from TradingView and may be back-adjusted when index membership changes.
• Fine-tune pivotLen, promThresh, and level thresholds to match current volatility before relying on alerts or automated rules.
• Slope thresholds (±0.10 %-pt) that trigger background shading can also be customized for different market regimes.
Accurate Global M2 (Top10 GDP, FX-Stabilized)This script was created to solve the serious distortions found in other circulating "Global M2" indicators.
Many previous versions used noisy daily FX rates, unweighted country data, mixed liquidity categories (e.g., RRP, TGA), or aggregated low-quality sources, causing exaggerated or misleading charts.
This version fixes those problems by:
Using Top 10 global economies only (based on GDP).
GDP-weighting each country's M2 contribution.
Fetching monthly-averaged M2 data.
Applying monthly FX conversions to eliminate daily volatility noise.
Forward-shifting the M2 line (default 90 days) to study potential Bitcoin correlations.
Keeping the math clean, without mixing central bank liquidity tools with broad M2 aggregates.
As a result, this script provides a more realistic and stable representation of global M2 expansion in USD terms, more suitable for serious macroeconomic analysis and Bitcoin market correlation studies.
GZ Indicator✍️ Description:
GZ Indicator is an advanced indicator that automatically detects Golden Zones, optimal market entry zones based on the latest significant pivots. The system uses Fibonacci extensions to project precise price targets, while providing a dynamic, visual stop-loss.
Main features:
- Pivot Detection: Automatic identification of significant pivots (high/low).
- Optimal Entry Zones (OTE): Automatically calculates ideal entry zones based on Fibonacci retracements.
- Precise Targets: Displays price targets with Fibonacci extensions.
- Dynamic Stop-Loss: Visual stop-loss zone adjusted to market conditions.
- RSI and MACD display: Add an RSI and MACD chart to facilitate trend analysis and confirm your entries.
- Intelligent refresh: Automatic deletion of the active zone as soon as the stop-loss is reached.
🔥 Key features:
Automatic detection of significant pivots (highs and lows)
Dynamic calculation of the OTE (Optimal Trade Entry) zone on retracements 0.618 - 0. 705
Clear display of price targets based on extensions
Intelligent updating: old zones are retained for historical analysis
Automatic deletion of current zone if Stop-Loss is reached
Contextual RSI and MACD chart for improved trend analysis
Code optimized for minimum recalculations, fluid even on fast time units.
⚡ How to use it:
Spot the appearance of a Golden Zone.
Enter a position in the zone with RSI/MACD or price action confirmation.
Use the targets displayed to set your progressive Take-Profits.
Respect the Stop-Loss zone automatically drawn.
🛠️ Available parameters:
Activate/deactivate RSI/MACD chart
Choose number of pivots for detection
Display old targets
[⚠️ Disclaimer:
This indicator is a decision-making tool. It is not intended to be used as financial advice. Please always perform your own analysis and manage your risks properly.
🔥 Bon trading ! 🚀
Cointegration Buy and Sell Signals [EdgeTerminal]The Cointegration Buy And Sell Signals is a sophisticated technical analysis tool to spot high-probability market turning points — before they fully develop on price charts.
Most reversal indicators rely on raw price action, visual patterns, or basic and common indicator logic — which often suffer in noisy or trending markets. In most cases, they lag behind the actual change in trend and provide useless and late signals.
This indicator is rooted in advanced concepts from statistical arbitrage, mean reversion theory, and quantitative finance, and it packages these ideas in a user-friendly visual format that works on any timeframe and asset class.
It does this by analyzing how the short-term and long-term EMAs behave relative to each other — and uses statistical filters like Z-score, correlation, volatility normalization, and stationarity tests to issue highly selective Buy and Sell signals.
This tool provides statistical confirmation of trend exhaustion, allowing you to trade mean-reverting setups. It fades overextended moves and uses signal stacking to reduce false entries. The entire indicator is based on a very interesting mathematically grounded model which I will get into down below.
Here’s how the indicator works at a high level:
EMAs as Anchors: It starts with two Exponential Moving Averages (EMAs) — one short-term and one long-term — to track market direction.
Statistical Spread (Regression Residuals): It performs a rolling linear regression between the short and long EMA. Instead of using the raw difference (short - long), it calculates the regression residual, which better models their natural relationship.
Normalize the Spread: The spread is divided by historical price volatility (ATR) to make it scale-invariant. This ensures the indicator works on low-priced stocks, high-priced indices, and crypto alike.
Z-Score: It computes a Z-score of the normalized spread to measure how “extreme” the current deviation is from its historical average.
Dynamic Thresholds: Unlike most tools that use fixed thresholds (like Z = ±2), this one calculates dynamic thresholds using historical percentiles (e.g., top 10% and bottom 10%) so that it adapts to the asset's current behavior to reduce false signals based on market’s extreme volatility at a certain time.
Z-Score Momentum: It tracks the direction of the Z-score — if Z is extreme but still moving away from zero, it's too early. It waits for reversion to start (Z momentum flips).
Correlation Check: Uses a rolling Pearson correlation to confirm the two EMAs are still statistically related. If they diverge (low correlation), no signal is shown.
Stationarity Filter (ADF-like): Uses the volatility of the regression residual to determine if the spread is stationary (mean-reverting) — a key concept in cointegration and statistical arbitrage. It’s not possible to build an exact ADF filter in Pine Script so we used the next best thing.
Signal Control: Prevents noisy charts and overtrading by ensuring no back-to-back buy or sell signals. Each signal must alternate and respect a cooldown period so you won’t be overwhelmed and won’t get a messy chart.
Important Notes to Remember:
The whole idea behind this indicator is to try to use some stat arb models to detect shifting patterns faster than they appear on common indicators, so in some cases, some assumptions are made based on historic values.
This means that in some cases, the indicator can “jump” into the conclusion too quickly. Although we try to eliminate this by using stationary filters, correlation checks, and Z-score momentum detection, there is still a chance some signals that are generated can be too early, in the stock market, that's the same as being incorrect. So make sure to use this with other indicators to confirm the movement.
How To Use The Indicator:
You can use the indicator as a standalone reversal system, as a filter for overbought and oversold setups, in combination with other trend indicators and as a part of a signal stack with other common indicators for divergence spotting and fade trades.
The indicator produces simple buy and sell signals when all criteria is met. Based on our own testing, we recommend treating these signals as standalone and independent from each other . Meaning that if you take position after a buy signal, don’t wait for a sell signal to appear to exit the trade and vice versa.
This is why we recommend using this indicator with other advanced or even simple indicators as an early confirmation tool.
The Display Table:
The floating diagnostic table in the top-right corner of the chart is a key part of this indicator. It's a live statistical dashboard that helps you understand why a signal is (or isn’t) being triggered, and whether the market conditions are lining up for a potential reversal.
1. Z-Score
What it shows: The current Z-score value of the volatility-normalized spread between the short EMA and the regression line of the long EMA.
Why it matters: Z-score tells you how statistically extreme the current relationship is. A Z-score of:
0 = perfectly average
> +2 = very overbought
< -2 = very oversold
How to use it: Look for Z-score reaching extreme highs or lows (beyond dynamic thresholds). Watch for it to start reversing direction, especially when paired with green table rows (see below)
2. Z-Score Momentum
What it shows: The rate of change (ROC) of the Z-score:
Zmomentum=Zt − Zt − 1
Why it matters: This tells you if the Z-score is still stretching out (e.g., getting more overbought/oversold), or reverting back toward the mean.
How to use it: A positive Z-momentum after a very low Z-score = potential bullish reversal A negative Z-momentum after a very high Z-score = potential bearish reversal. Avoid signals when momentum is still pushing deeper into extremes
3. Correlation
What it shows: The rolling Pearson correlation coefficient between the short EMA and long EMA.
Why it matters: High correlation (closer to +1) means the EMAs are still statistically connected — a key requirement for cointegration or mean reversion to be valid.
How to use it: Look for correlation > 0.7 for reliable signals. If correlation drops below 0.5, ignore the Z-score — the EMAs aren’t moving together anymore
4. Stationary
What it shows: A simplified "Yes" or "No" answer to the question:
“Is the spread statistically stable (stationary) and mean-reverting right now?”
Why it matters: Mean reversion strategies only work when the spread is stationary — that is, when the distance between EMAs behaves like a rubber band, not a drifting cloud.
How to use it: A "Yes" means the indicator sees a consistent, stable spread — good for trading. "No" means the market is too volatile, disjointed, or chaotic for reliable mean reversion. Wait for this to flip to "Yes" before trusting signals
5. Last Signal
What it shows: The last signal issued by the system — either "Buy", "Sell", or "None"
Why it matters: Helps avoid confusion and repeated entries. Signals only alternate — you won’t get another Buy until a Sell happens, and vice versa.
How to use it: If the last signal was a "Buy", and you’re watching for a Sell, don’t act on more bullish signals. Great for systems where you only want one position open at a time
6. Bars Since Signal
What it shows: How many bars (candles) have passed since the last Buy or Sell signal.
Why it matters: Gives you context for how long the current condition has persisted
How to use it: If it says 1 or 2, a signal just happened — avoid jumping in late. If it’s been 10+ bars, a new opportunity might be brewing soon. You can use this to time exits if you want to fade a recent signal manually
Indicator Settings:
Short EMA: Sets the short-term EMA period. The smaller the number, the more reactive and more signals you get.
Long EMA: Sets the slow EMA period. The larger this number is, the smoother baseline, and more reliable trend bases are generated.
Z-Score Lookback: The period or bars used for mean & std deviation of spread between short and long EMAs. Larger values result in smoother signals with fewer false positives.
Volatility Window: This value normalizes the spread by historical volatility. This allows you to prevent scale distortion, showing you a cleaner and better chart.
Correlation Lookback: How many periods or how far back to test correlation between slow and long EMAs. This filters out false positives when EMAs lose alignment.
Hurst Lookback: The multiplier to approximate stationarity. Lower leads to more sensitivity to regime change, higher produces a more stricter filtering.
Z Threshold Percentile: This value sets how extreme Z-score must be to trigger a signal. For example, 90 equals only top/bottom 10% of extremes, 80 = more frequent.
Min Bars Between Signals: This hard stop prevents back-to-back signals. The idea is to avoid over-trading or whipsaws in volatile markets even when Hurst lookback and volatility window values are not enough to filter signals.
Some More Recommendations:
We recommend trying different EMA pairs (10/50, 21/100, 5/20) for different asset behaviors. You can set percentile to 85 or 80 if you want more frequent but looser signals. You can also use the Z-score reversion monitor for powerful confirmation.
Trend Degree Dashboard (Table)📈 Trend Degree Dashboard (Table) — v1.0
This indicator calculates and displays the trend angle (in degrees) based on the linear regression of the selected source (default: close) over a user-defined lookback period (default: 21 bars).
The trend angle gives a quick visual reference of the current market slope — positive (uptrend) or negative (downtrend).
A dashboard table shows the trend angle directly on the chart, with a background color:
🟩 Green background for positive angles (uptrend)
🟥 Red background for negative angles (downtrend)
🔧 Features:
Customizable Lookback Period: Set the number of candles to consider for trend calculation.
Source Selection: Apply the analysis to close, open, high, low, or any other price series.
Dashboard Positioning: Choose where the dashboard appears (Top Left, Top Right, Bottom Left, Bottom Right).
Clean Table Design: Minimalistic and easy-to-read dashboard with automatic background color highlighting based on trend direction.
⚙️ How It Works:
It uses Linear Regression to measure the slope between two consecutive points.
Converts the slope into degrees using the arctangent function (atan) for a geometric interpretation of trend strength and direction.
Updates the dashboard table live with the latest angle value.
✅ Script Highlights:
Non-repainting: Once a bar closes, its value is fixed.
Efficient performance: Lightweight table visualization with no heavy calculations.
Clear trading signals: Positive angles suggest bullish momentum, negative angles suggest bearish momentum.
⚠️ Disclaimer:
This script is a technical analysis tool designed to assist in decision-making but does not guarantee results.
Please use it alongside other tools and practice proper risk management. Always test any indicator on demo accounts before applying it to live trading.
Momentum Wave Oscillator📈 Momentum Wave Oscillator (MWO) 📈
The Momentum Wave Oscillator (MWO) is a precision-designed tool for traders who want early, reliable insight into market shifts — before they fully appear on price charts.
Instead of reacting late to moves, MWO is engineered to anticipate changes in momentum by tracking market pressure within a dynamic range.
Its built-in bands and visual cues make it simple to spot key moments where momentum exhaustion, reversals, or fresh breakouts are most likely to occur.
How to Use:
Buy Zones: When the oscillator moves up from lower regions (typically below 20), it may indicate momentum building to the upside.
Sell Zones: When the oscillator moves down from upper regions (typically above 80), it may suggest momentum starting to weaken.
Dynamic Bands:
Unlike conventional fixed levels like 20 and 80, MWO features dynamic adaptive bands that better reflect real-time changes in market behavior.
Markets are fluid — volatility and momentum strength vary from cycle to cycle. Static zones can miss important shifts or produce false signals.
The dynamic bands allow the indicator to adapt naturally to changing conditions, offering more precise context for overbought, oversold, or breakout environments.
Background Colors and Labels:
Automatic highlights appear when potential turning points are detected, allowing traders to act quickly without chart clutter.
Best Practices:
Use the MWO as a confirmation tool alongside your existing strategy (trendlines, support/resistance, volume spikes, etc.).
Look for agreement between the MWO and price action for higher probability entries.
Avoid relying on it in isolation during extremely low-volume periods, where momentum may appear artificially weak or strong.
Adjust sensitivity settings depending on your trading style (scalping vs swing trading).
Important Note:
The MWO is designed for educational and informational purposes. No indicator can predict the future with certainty. Always combine it with proper risk management and your personal trading plan.
Advanced QQE Buy/Sell with Confirmation FiltersAdvanced QQE Buy/Sell with Confirmation Filters
This indicator provides high-probability Buy and Sell signals using an advanced Quantitative Qualitative Estimation (QQE) method, enhanced by optional powerful confirmation filters.
Core Strategy:
📈 QQE Signals: Based on smoothed RSI crossover of dynamic threshold bands.
🎯 Buy Signal: Triggered when RSI crosses above QQE Lower Band.
🎯 Sell Signal: Triggered when RSI crosses below QQE Upper Band.
Optional Confirmation Filters:
🔧 RSI Filter: Only accept buys when RSI > 55 or sells when RSI < 45.
🔧 MACD Histogram Filter: Confirms momentum direction.
🔧 VWAP Filter: Confirms if price is above (bullish) or below (bearish) VWAP.
Customization Options:
Adjust RSI Length, QQE Smoothing Length, and Threshold to match your trading style.
Independently toggle each confirmation filter ON/OFF from the settings.
VWAP line can also be plotted on chart for visual guidance.
Key Features:
Clean Buy (green up label) and Sell (red down label) signals plotted on chart.
Alerts available for Buy/Sell triggers.
Optimized for fast performance and low lag.
Recommended Timeframes:
15min, 1H, 4H, Daily.
Disclaimer:
This indicator is for educational purposes only. Trading involves risk. Always perform your own due diligence.
Developed and optimized by Keyvan 🚀