Opening 5m % Change (09:30 NY) - All Day vs 09:30 OpenThis indicator displays the real-time percentage change relative to the US market open at 09:30 (New York time).
It captures the 09:30 opening price and continuously updates the percentage change throughout the entire trading session, even if the chart is opened after the market open.
Green = price above the 09:30 open
Red = price below the 09:30 open
The value is shown in the top-right corner of the chart, stays visible all day, and updates live with price movements.
Designed to be lightweight, reliable, and easy to read, even when multiple charts are open.
Best used on US stocks, indices, and futures during regular trading hours.
中心震荡指标
Ultimate MACD [captainua]Ultimate MACD - Comprehensive MACD Trading System
Overview
This indicator combines traditional MACD calculations with advanced features including divergence detection, volume analysis, histogram analysis tools, regression forecasting, strong top/bottom detection, and multi-timeframe confirmation to provide a comprehensive MACD-based trading system. The script calculates MACD using configurable moving average types (EMA, SMA, RMA, WMA) and applies various smoothing methods to reduce noise while maintaining responsiveness. The combination of these features creates a multi-layered confirmation system that reduces false signals by requiring alignment across multiple indicators and timeframes.
Core Calculations
MACD Calculation:
The script calculates MACD using the standard formula: MACD Line = Fast MA - Slow MA, Signal Line = Moving Average of MACD Line, Histogram = MACD Line - Signal Line. The default parameters are Fast=12, Slow=26, Signal=9, matching the traditional MACD settings. The script supports four moving average types:
- EMA (Exponential Moving Average): Standard and most responsive, default choice
- SMA (Simple Moving Average): Equal weight to all periods
- RMA (Wilder's Moving Average): Smoother, less responsive
- WMA (Weighted Moving Average): Recent prices weighted more heavily
The price source can be configured as Close (standard), Open, High, Low, HL2, HLC3, or OHLC4. Alternative sources provide different sensitivity characteristics for various trading strategies.
Configuration Presets:
The script includes trading style presets that automatically configure MACD parameters:
- Scalping: Fast/Responsive settings (8,18,6 with minimal smoothing)
- Day Trading: Balanced settings (10,22,7 with minimal smoothing)
- Swing Trading: Standard settings (12,26,9 with moderate smoothing)
- Position Trading: Smooth/Conservative settings (15,35,12 with higher smoothing)
- Custom: Full manual control over all parameters
Histogram Smoothing:
The histogram can be smoothed using EMA to reduce noise and filter minor fluctuations. Smoothing length of 1 = raw histogram (no smoothing), higher values (3-5) = smoother histogram. Increased smoothing reduces noise but may delay signals slightly.
Percentage Mode:
MACD values can be converted to percentage of price (MACD/Close*100) for cross-instrument comparison. This is useful when comparing MACD signals across instruments with different price levels (e.g., BTC vs ETH). The percentage mode normalizes MACD values, making them comparable regardless of instrument price.
MACD Scale Factor:
A scale factor multiplier (default 1.0) allows adjusting MACD display size for better visibility. Use 0.3-0.5 if MACD appears too compressed, or 2.0-3.0 if too small.
Dynamic Overbought/Oversold Levels:
Overbought and oversold levels are calculated dynamically based on MACD's mean and standard deviation over a lookback period. The formula: OB = MACD Mean + (StdDev × OB Multiplier), OS = MACD Mean - (StdDev × OS Multiplier). This adapts to current market conditions, widening in volatile markets and narrowing in calm markets. The lookback period (default 20) controls how quickly the levels adapt: longer periods (30-50) = more stable levels, shorter (10-15) = more responsive.
OB/OS Background Coloring:
Optional background coloring can highlight the entire panel when MACD enters overbought or oversold territory, providing prominent visual indication of extreme conditions. The background colors are drawn on top of the main background to ensure visibility.
Divergence Detection
Regular Divergence:
The script uses the MACD line (not histogram) for divergence detection, which provides more reliable signals. Bullish divergence: Price makes a lower low while MACD line makes a higher low. Bearish divergence: Price makes a higher high while MACD line makes a lower high. Divergences often precede reversals and are powerful reversal signals.
Pivot-Based Divergence:
The divergence detection uses actual pivot points (pivotlow/pivothigh) instead of simple lowest/highest comparisons. This provides more accurate divergence detection by identifying significant pivot lows/highs in both price and MACD line. The pivot-based method compares two recent pivot points: for bullish divergence, price makes a lower low while MACD makes a higher low at the pivot points. This method reduces false divergences by requiring actual pivot points rather than just any low/high within a period.
The pivot lookback parameters (left and right) control how many bars on each side of a pivot are required for confirmation. Higher values = more conservative pivot detection.
Hidden Divergence:
Continuation patterns that signal trend continuation rather than reversal. Bullish hidden divergence: Price makes a higher low but MACD makes a lower low. Bearish hidden divergence: Price makes a lower high but MACD makes a higher high. These patterns indicate the trend is likely to continue in the current direction.
Zero-Line Filter:
The "Don't Touch Zero Line" option ensures divergences occur in proper context: for bullish divergence, MACD must stay below zero; for bearish divergence, MACD must stay above zero. This filters out divergences that occur in neutral zones.
Range Filtering:
Minimum and maximum lookback ranges control the time window between pivots to consider for divergence. This helps filter out divergences that are too close together (noise) or too far apart (less relevant).
Volume Confirmation System
Volume threshold filtering requires current volume to exceed the volume SMA multiplied by the threshold factor. The formula: Volume Confirmed = Volume > (Volume SMA × Threshold). If the threshold is set to 1.0 or lower, volume confirmation is effectively disabled (always returns true). This allows you to use the indicator without volume filtering if desired. Volume confirmation significantly increases divergence and signal reliability.
Volume Climax and Dry-Up Detection:
The script can mark bars with extremely high volume (volume climax) or extremely low volume (volume dry-up). Volume climax indicates potential reversal points or strong momentum continuation. Volume dry-up indicates low participation and may produce unreliable signals. These markers use standard deviation multipliers to identify extreme volume conditions.
Zero-Line Cross Detection
MACD zero-line crosses indicate momentum shifts: above zero = bullish momentum, below zero = bearish momentum. The script includes alert conditions for zero-line crosses with cooldown protection to prevent alert spam. Zero-line crosses can provide early warning signals before MACD crosses the signal line.
Histogram Analysis Tools
Histogram Moving Average:
A moving average applied to the histogram itself helps identify histogram trend direction and acts as a signal line for histogram movements. Supports EMA, SMA, RMA, and WMA types. Useful for identifying when histogram momentum is strengthening or weakening.
Histogram Bollinger Bands:
Bollinger Bands are applied to the MACD histogram instead of price. The calculation: Basis = SMA(Histogram, Period), StdDev = stdev(Histogram, Period), Upper = Basis + (StdDev × Deviation Multiplier), Lower = Basis - (StdDev × Deviation Multiplier). This creates dynamic zones around the histogram that adapt to histogram volatility. When the histogram touches or exceeds the bands, it indicates extreme conditions relative to recent histogram behavior.
Stochastic MACD (StochMACD):
Stochastic MACD applies the Stochastic oscillator formula to the MACD histogram instead of price. This normalizes the histogram to a 0-100 scale, making it easier to identify overbought/oversold conditions on the histogram itself. The calculation: %K = ((Histogram - Lowest Histogram) / (Highest Histogram - Lowest Histogram)) × 100. %K is smoothed, and %D is calculated as the moving average of smoothed %K. Standard thresholds are 80 (overbought) and 20 (oversold).
Regression Forecasting
The script includes advanced regression forecasting that predicts future MACD values using mathematical models. This helps anticipate potential MACD movements and provides forward-looking context for trading decisions.
Regression Types:
- Linear: Simple trend line (y = mx + b) - fastest, works well for steady trends
- Polynomial: Quadratic curve (y = ax² + bx + c) - captures curvature in MACD movement
- Exponential Smoothing: Weighted average with more weight on recent values - responsive to recent changes
- Moving Average: Uses difference between short and long MA to estimate trend - stable and smooth
Forecast Horizon:
Number of bars to forecast ahead (default 5, max 50 for linear/MA, max 20 for polynomial due to performance). Longer horizons predict further ahead but may be less accurate.
Confidence Bands:
Optional upper/lower bands around forecast show prediction uncertainty based on forecast error (standard deviation of prediction vs actual). Wider bands = higher uncertainty. The confidence level multiplier (default 1.5) controls band width.
Forecast Display:
Forecast appears as dotted lines extending forward from current bar, with optional confidence bands. All forecast values respect percentage mode and scale factor settings.
Strong Top/Bottom Signals
The script detects strong recovery from extreme MACD levels, generating "sBottom" and "sTop" signals. These identify significant reversal potential when MACD recovers substantially from overbought/oversold extremes.
Strong Bottom (sBottom):
Triggered when:
1. MACD was at or near its lowest point in the bottom period (default 10 bars)
2. MACD was in or near the oversold zone
3. MACD has recovered by at least the threshold amount (default 0.5) from the lowest point
4. Recovery persists for confirmation bars (default 2 consecutive bars)
5. MACD has moved out of the oversold zone
6. Volume is above average
7. All enabled filters pass
8. Minimum bars have passed since last signal (reset period, default 5 bars)
Strong Top (sTop):
Triggered when:
1. MACD was at or near its highest point in the top period (default 7 bars)
2. MACD was in or near the overbought zone
3. MACD has declined by at least the threshold amount (default 0.5) from the highest point
4. Decline persists for confirmation bars (default 2 consecutive bars)
5. MACD has moved out of the overbought zone
6. Volume is above average
7. All enabled filters pass
8. Minimum bars have passed since last signal (reset period, default 5 bars)
Label Placement:
sTop/sBottom labels appear on the historical bar where the actual extreme occurred (not on current bar), showing the exact MACD value at that extreme. Labels respect the unified distance checking system to prevent overlaps with Buy/Sell Strength labels.
Signal Strength Calculation
The script calculates a composite signal strength score (0-100) based on multiple factors:
- MACD distance from signal line (0-50 points): Larger separation indicates stronger signal
- Volume confirmation (0-15 points): Volume above average adds points
- Secondary timeframe alignment (0-15 points): Higher timeframe agreement adds points
- Distance from zero line (0-20 points): Closer to zero can indicate stronger reversal potential
Higher scores (70+) indicate stronger, more reliable signals. The signal strength is displayed in the statistics table and can be used as a filter to only accept signals above a threshold.
Smart Label Placement System
The script includes an advanced label placement system that tracks MACD extremes and places Buy/Sell Strength labels at optimal locations:
Label Placement Algorithm:
- Labels appear on the current bar at confirmation (not on historical extreme bars), ensuring they're visible when the signal is confirmed
- The system tracks pending signals when MACD enters OB/OS zones or crosses the signal line
- During tracking, the system continuously searches for the true extreme (lowest MACD for buys, highest MACD for sells) within a configurable historical lookback period
- Labels are only finalized when: (1) MACD exits the OB/OS zone, (2) sufficient bars have passed (2x minimum distance), (3) MACD has recovered/declined by a configurable percentage from the extreme (default 15%), and (4) tracking has stopped (no better extreme found)
Label Spacing and Overlap Prevention:
- Minimum Bars Between Labels: Base distance requirement (default 5 bars)
- Label Spacing Multiplier: Scales the base distance (default 1.5x) for better distribution. Higher values = more spacing between labels
- Effective distance = Base Distance × Spacing Multiplier (e.g., 5 × 1.5 = 7.5 bars minimum)
- Unified distance checking prevents overlaps between all label types (Buy Strength, Sell Strength, sTop, sBottom)
Strength-Based Filtering:
- Label Strength Minimum (%): Only labels with strength at or above this threshold are displayed (default 75%)
- When multiple potential labels are close together, the system automatically compares strengths and keeps only the strongest one
- This ensures only the most significant signals are displayed, reducing chart clutter
Zero Line Polarity Enforcement:
- Enforce Zero Line Polarity (default enabled): Ensures labels follow traditional MACD interpretation
- Buy Strength labels only appear when the tracked extreme MACD value was below zero (negative territory)
- Sell Strength labels only appear when the tracked extreme MACD value was above zero (positive territory)
- This prevents counter-intuitive labels (e.g., Buy labels above zero line) and aligns with standard MACD trading principles
Recovery/Decline Confirmation:
- Recovery/Decline Confirm (%): Percent move away from the extreme required before finalizing (default 15%)
- For Buy labels: MACD must recover by at least this percentage from the tracked bottom
- For Sell labels: MACD must decline by at least this percentage from the tracked top
- Higher values = more confirmation required, fewer but more reliable labels
Historical Lookback:
- Historical Lookback for Label Placement: Number of bars to search for true extremes (default 20)
- The system searches within this period to find the actual lowest/highest MACD value
- Higher values analyze more history but may be slower; lower values are faster but may miss some extremes
Cross Quality Score
The script calculates a MACD cross quality score (0-100) that rates crossover quality based on:
- Cross angle (0-50 points): Steeper crosses = stronger signals
- Volume confirmation (0-25 points): Volume above average adds points
- Distance from zero line (0-25 points): Crosses near zero line are stronger
This score helps identify high-quality crossovers and can be used as a filter to only accept signals meeting minimum quality threshold.
Filtering System
Histogram Filter:
Requires histogram to be above zero for buy signals, below zero for sell signals. Ensures momentum alignment before generating signals.
Signal Strength Filter:
Requires minimum signal strength score for signals. Higher threshold = only strongest signals pass. This combines multiple confirmation factors into a single filter.
Cross Quality Filter:
Requires minimum cross quality score for signals. Rates crossover quality based on angle, volume, momentum, and distance from zero. Only signals meeting minimum quality threshold will be generated.
All filters use the pattern: filterResult = not filterEnabled OR conditionMet. This means if a filter is disabled, it always passes (returns true). Filters can be combined, and all must pass for a signal to fire.
Multi-Timeframe Analysis
The script can display MACD from a secondary (higher) timeframe and use it for confirmation. When secondary timeframe confirmation is enabled, signals require the higher timeframe MACD to align (bullish/bearish) with the signal direction. This ensures signals align with the larger trend context, reducing counter-trend trades.
Secondary Timeframe MACD:
The secondary timeframe MACD uses the same calculation parameters (fast, slow, signal, MA type) as the main MACD but from a higher timeframe. This provides context for the current timeframe's MACD position relative to the larger trend. The secondary MACD lines are displayed on the chart when enabled.
Noise Filtering
Noise filtering hides small histogram movements below a threshold. This helps focus on significant moves and reduces chart clutter. When enabled, only histogram movements above the threshold are displayed. Typical threshold values are 0.1-0.5 for most instruments, depending on the instrument's price range and volatility.
Signal Debounce
Signal debounce prevents duplicate MACD cross signals within a short time period. Useful when MACD crosses back and forth quickly, creating multiple signals. Debounce ensures only one signal per period, reducing signal spam during choppy markets. This is separate from alert cooldown, which applies to all alert types.
Background Color Modes
The script offers three background color modes:
- Dynamic: Full MACD heatmap based on OB/OS conditions, confidence, and momentum. Provides rich visual feedback.
- Monotone: Soft neutral background but still allows overlays (OB/OS zones). Keeps the chart clean without overpowering candles.
- Off: No MACD background (only overlays and plots). Maximum chart cleanliness.
When OB/OS background colors are enabled, they are drawn on top of the main background to ensure visibility.
Statistics Table
A real-time statistics table displays current MACD values, signal strength, distance from zero line, secondary timeframe alignment, volume confirmation status, and all active filter statuses. The table dynamically adjusts to show only enabled features, keeping it clean and relevant. The table position can be configured (Top Left, Top Right, Bottom Left, Bottom Right).
Performance Statistics Table
An optional performance statistics table shows comprehensive filter diagnostics:
- Total buy/sell signals (raw crossover count before filters)
- Filtered buy/sell signals (signals that passed all filters)
- Overall pass rates (percentage of signals that passed filters)
- Rejected signals count
- Filter-by-filter rejection diagnostics showing which filters rejected how many signals
This table helps optimize filter settings by showing which filters are most restrictive and how they impact signal frequency. The diagnostics format shows rejections as "X B / Y S" (X buy signals rejected, Y sell signals rejected) or "Disabled" if the filter is not active.
Alert System
The script includes separate alert conditions for each signal type:
- MACD Cross: MACD line crosses above/below Signal line (with or without secondary confirmation)
- Zero-Line Cross: MACD crosses above/below zero
- Divergence: Regular and hidden divergence detections
- Secondary Timeframe: Higher timeframe MACD crosses
- Histogram MA Cross: Histogram crosses above/below its moving average
- Histogram Zero Cross: Histogram crosses above/below zero
- StochMACD: StochMACD overbought/oversold entries and %K/%D crosses
- Histogram BB: Histogram touches/breaks Bollinger Bands
- Volume Events: Volume climax and dry-up detections
- OB/OS: MACD entry/exit from overbought/oversold zones
- Strong Top/Bottom: sTop and sBottom signal detections
Each alert type has its own cooldown system to prevent alert spam. The cooldown requires a minimum number of bars between alerts of the same type, reducing duplicate alerts during volatile periods. Alert types can be filtered to only evaluate specific alert types (All, MACD Cross, Zero Line, Divergence, Secondary Timeframe, Histogram MA, Histogram Zero, StochMACD, Histogram BB, Volume Events, OB/OS, Strong Top/Bottom).
How Components Work Together
MACD crossovers provide the primary signal when the MACD line crosses the Signal line. Zero-line crosses indicate momentum shifts and can provide early warning signals. Divergences identify potential reversals before they occur.
Volume confirmation ensures signals occur with sufficient market participation, filtering out low-volume false breakouts. Histogram analysis tools (MA, Bollinger Bands, StochMACD) provide additional context for signal reliability and identify significant histogram zones.
Signal strength combines multiple confirmation factors into a single score, making it easy to filter for only the strongest signals. Cross quality score rates crossover quality to identify high-quality setups. Multi-timeframe confirmation ensures signals align with higher timeframe trends, reducing counter-trend trades.
Usage Instructions
Getting Started:
The default configuration shows MACD(12,26,9) with standard EMA calculations. Start with default settings and observe behavior, then customize settings to match your trading style. You can use configuration presets for quick setup based on your trading style.
Customizing MACD Parameters:
Adjust Fast Length (default 12), Slow Length (default 26), and Signal Length (default 9) based on your trading timeframe. Shorter periods (8,17,7) for faster signals, longer (15,30,12) for smoother signals. You can change the moving average type: EMA for responsiveness, RMA for smoothness, WMA for recent price emphasis.
Price Source Selection:
Choose Close (standard), or alternative sources (HL2, HLC3, OHLC4) for different sensitivity. HL2 uses the midpoint of the high-low range, HLC3 and OHLC4 incorporate more price information.
Histogram Smoothing:
Set smoothing to 1 for raw histogram (no smoothing), or increase (3-5) for smoother histogram that reduces noise. Higher smoothing reduces false signals but may delay signals slightly.
Percentage Mode:
Enable percentage mode when comparing MACD across instruments with different price levels. This normalizes MACD values, making them directly comparable.
Dynamic OB/OS Levels:
The dynamic thresholds automatically adapt to volatility. Adjust the multipliers (default 1.5) to fine-tune sensitivity: higher values (2.0-3.0) = more extreme thresholds (fewer signals), lower (1.0-1.5) = more frequent signals. Adjust the lookback period to control how quickly levels adapt. Enable OB/OS background colors for visual indication of extreme conditions.
Volume Confirmation:
Set volume threshold to 1.0 (default, effectively disabled) or higher (1.2-1.5) for standard confirmation. Higher values require more volume for confirmation. Set to 0.1 to completely disable volume filtering.
Filters:
Enable filters gradually to find your preferred balance. Start with histogram filter for basic momentum alignment, then add signal strength filter (threshold 50+) for moderate signals, then cross quality filter (threshold 50+) for high-quality crossovers. Combine filters for highest-quality signals but expect fewer signals.
Divergence:
Enable divergence detection and adjust pivot lookback parameters. Pivot-based divergence provides more accurate detection using actual pivot points. Hidden divergence is useful for trend-following strategies. Adjust range parameters to filter divergences by time window.
Zero-Line Crosses:
Zero-line cross alerts are automatically available when alerts are enabled. These provide early warning signals for momentum shifts.
Histogram Analysis Tools:
Enable Histogram Moving Average to see histogram trend direction. Enable Histogram Bollinger Bands to identify extreme histogram zones. Enable Stochastic MACD to normalize histogram to 0-100 scale for overbought/oversold identification.
Multi-Timeframe:
Enable secondary timeframe MACD to see higher timeframe context. Enable secondary confirmation to require higher timeframe alignment for signals.
Signal Strength:
Signal strength is automatically calculated and displayed in the statistics table. Use signal strength filter to only accept signals above a threshold (e.g., 50 for moderate, 70+ for strong signals only).
Smart Label Placement:
Configure label placement settings to control label appearance and quality:
- Label Strength Minimum (%): Set threshold (default 75%) to show only strong signals. Higher = fewer, stronger labels
- Label Spacing Multiplier: Adjust spacing (default 1.5x) for better distribution. Higher = more spacing between labels
- Recovery/Decline Confirm (%): Set confirmation requirement (default 15%). Higher = more confirmation, fewer labels
- Enforce Zero Line Polarity: Enable (default) to ensure Buy labels only appear when tracked extreme was below zero, Sell labels only when above zero
- Historical Lookback: Adjust search period (default 20 bars) for finding true extremes. Higher = more history analyzed
Cross Quality:
Cross quality score is automatically calculated for crossovers. Use cross quality filter to only accept high-quality crossovers (threshold 50+ for moderate, 70+ for high quality).
Alerts:
Set up alerts for your preferred signal types. Enable alert cooldown (default enabled, 5 bars) to prevent alert spam. Use alert type filter to only evaluate specific alert types (All, MACD Cross, Zero Line, Divergence, Secondary Timeframe, Histogram MA, Histogram Zero, StochMACD, Histogram BB, Volume Events, OB/OS, Strong Top/Bottom). Each signal type has its own alert condition, so you can be selective about which signals trigger alerts.
Visual Elements and Signal Markers
The script uses various visual markers to indicate signals and conditions:
- MACD Line: Green when above signal (bullish), red when below (bearish) if dynamic colors enabled. Optional black outline for enhanced visibility
- Signal Line: Orange line with optional black outline for enhanced visibility
- Histogram: Color-coded based on direction and momentum (green for bullish rising, lime for bullish falling, red for bearish falling, orange for bearish rising)
- Zero Line: Horizontal reference line at MACD = 0
- Fill to Zero: Green/red semi-transparent fill between MACD line and zero line showing bullish/bearish territory
- Fill Between OB/OS: Blue semi-transparent fill between overbought/oversold thresholds highlighting neutral zone
- OB/OS Background Colors: Background coloring when MACD enters overbought/oversold zones
- Background Colors: Dynamic or monotone backgrounds indicating MACD state, or custom chart background
- Divergence Labels: "🐂" for bullish, "🐻" for bearish, "H Bull" for hidden bullish, "H Bear" for hidden bearish
- Divergence Lines: Colored lines connecting pivot points when divergences are detected
- Volume Climax Markers: ⚡ symbol for extremely high volume
- Volume Dry-Up Markers: 💧 symbol for extremely low volume
- Buy/Sell Strength Labels: Show signal strength percentage (e.g., "Buy Strength: 75%")
- Strong Top/Bottom Labels: "sTop" and "sBottom" for extreme level recoveries
- Secondary MACD Lines: Purple lines showing higher timeframe MACD
- Histogram MA: Orange line showing histogram moving average
- Histogram BB: Blue bands around histogram showing extreme zones
- StochMACD Lines: %K and %D lines with overbought/oversold thresholds
- Regression Forecast: Dotted blue lines extending forward with optional confidence bands
Signal Priority and Interpretation
Signals are generated independently and can occur simultaneously. Higher-priority signals generally indicate stronger setups:
1. MACD Cross with Multiple Filters - Highest priority: Requires MACD crossover plus all enabled filters (histogram, signal strength, cross quality) and secondary timeframe confirmation if enabled. These are the most reliable signals.
2. Zero-Line Cross - High priority: Indicates momentum shift. Can provide early warning signals before MACD crosses the signal line.
3. Divergence Signals - Medium-High priority: Pivot-based divergence is more reliable than simple divergence. Hidden divergence indicates continuation rather than reversal.
4. MACD Cross with Basic Filters - Medium priority: MACD crosses signal line with basic histogram filter. Less reliable alone but useful when combined with other confirmations.
Best practice: Wait for multiple confirmations. For example, a MACD crossover combined with divergence, volume confirmation, and secondary timeframe alignment provides the strongest setup.
Chart Requirements
For proper script functionality and compliance with TradingView requirements, ensure your chart displays:
- Symbol name: The trading pair or instrument name should be visible
- Timeframe: The chart timeframe should be clearly displayed
- Script name: "Ultimate MACD " should be visible in the indicator title
These elements help traders understand what they're viewing and ensure proper script identification. The script automatically includes this information in the indicator title and chart labels.
Performance Considerations
The script is optimized for performance:
- Calculations use efficient Pine Script functions (ta.ema, ta.sma, etc.) which are optimized by TradingView
- Conditional execution: Features only calculate when enabled
- Label management: Old labels are automatically deleted to prevent accumulation
- Array management: Divergence label arrays are limited to prevent memory accumulation
The script should perform well on all timeframes. On very long historical data with many enabled features, performance may be slightly slower, but it remains usable.
Known Limitations and Considerations
- Dynamic OB/OS levels can vary significantly based on recent MACD volatility. In very volatile markets, levels may be wider; in calm markets, they may be narrower.
- Volume confirmation requires sufficient historical volume data. On new instruments or very short timeframes, volume calculations may be less reliable.
- Higher timeframe MACD uses request.security() which may have slight delays on some data feeds.
- Stochastic MACD requires the histogram to have sufficient history. Very short periods on new charts may produce less reliable StochMACD values initially.
- Divergence detection requires sufficient historical data to identify pivot points. Very short lookback periods may produce false positives.
Practical Use Cases
The indicator can be configured for different trading styles and timeframes:
Swing Trading:
Use MACD(12,26,9) with secondary timeframe confirmation. Enable divergence detection. Use signal strength filter (threshold 50+) and cross quality filter (threshold 50+) for higher-quality signals. Enable histogram analysis tools for additional context.
Day Trading:
Use MACD(8,17,7) or use "Day Trading" preset with minimal histogram smoothing for faster signals. Enable zero-line cross alerts for early signals. Use volume confirmation with threshold 1.2-1.5. Enable histogram MA for momentum tracking.
Trend Following:
Use MACD(12,26,9) or longer periods (15,30,12) for smoother signals. Enable secondary timeframe confirmation for trend alignment. Hidden divergence signals are useful for trend continuation entries. Use cross quality filter to identify high-quality crossovers.
Reversal Trading:
Focus on divergence detection (pivot-based for accuracy) combined with zero-line crosses. Enable volume confirmation. Use histogram Bollinger Bands to identify extreme histogram zones. Enable StochMACD for overbought/oversold identification.
Multi-Timeframe Analysis:
Enable secondary timeframe MACD to see context from larger timeframes. For example, use daily MACD on hourly charts to understand the larger trend context. Enable secondary confirmation to require higher timeframe alignment for signals.
Practical Tips and Best Practices
Getting Started:
Start with default settings and observe MACD behavior. The default configuration (MACD 12,26,9 with EMA) is balanced and works well across different markets. After observing behavior, customize settings to match your trading style. Consider using configuration presets for quick setup.
Reducing Repainting:
All signals are based on confirmed bars, minimizing repainting. The script uses confirmed bar data for all calculations to ensure backtesting accuracy.
Signal Quality:
MACD crosses with multiple filters provide the highest-quality signals because they require alignment across multiple indicators. These signals have lower frequency but higher reliability. Use signal strength scores to identify the strongest signals (70+). Use cross quality scores to identify high-quality crossovers (70+).
Filter Combinations:
Start with histogram filter for basic momentum alignment, then add signal strength filter for moderate signals, then cross quality filter for high-quality crossovers. Combining all filters significantly reduces false signals but also reduces signal frequency. Find your balance based on your risk tolerance.
Volume Filtering:
Set volume threshold to 1.0 (default, effectively disabled) or lower to effectively disable volume filtering if you trade instruments with unreliable volume data or want to test without volume confirmation. Standard confirmation uses 1.2-1.5 threshold.
MACD Period Selection:
Standard MACD(12,26,9) provides balanced signals suitable for most trading. Shorter periods (8,17,7) for faster signals, longer (15,30,12) for smoother signals. Adjust based on your timeframe and trading style. Consider using configuration presets for optimized settings.
Moving Average Type:
EMA provides balanced responsiveness with smoothness. RMA is smoother and less responsive. WMA gives more weight to recent prices. SMA gives equal weight to all periods. Choose based on your preference for responsiveness vs. smoothness.
Divergence:
Pivot-based divergence is more reliable than simple divergence because it uses actual pivot points. Hidden divergence indicates continuation rather than reversal, useful for trend-following strategies. Adjust pivot lookback parameters to control sensitivity.
Dynamic Thresholds:
Dynamic OB/OS thresholds automatically adapt to volatility. In volatile markets, thresholds widen; in calm markets, they narrow. Adjust the multipliers to fine-tune sensitivity. Enable OB/OS background colors for visual indication.
Zero-Line Crosses:
Zero-line crosses indicate momentum shifts and can provide early warning signals before MACD crosses the signal line. Enable alerts for zero-line crosses to catch these early signals.
Alert Management:
Enable alert cooldown (default enabled, 5 bars) to prevent alert spam. Use alert type filter to only evaluate specific alert types. Signal debounce (default enabled, 3 bars) prevents duplicate MACD cross signals during choppy markets.
Technical Specifications
- Pine Script Version: v6
- Indicator Type: Non-overlay (displays in separate panel below price chart)
- Repainting Behavior: Minimal - all signals are based on confirmed bars, ensuring accurate backtesting results
- Performance: Optimized with conditional execution. Features only calculate when enabled.
- Compatibility: Works on all timeframes (1 minute to 1 month) and all instruments (stocks, forex, crypto, futures, etc.)
- Edge Case Handling: All calculations include safety checks for division by zero, NA values, and boundary conditions. Alert cooldowns and signal debounce handle edge cases where conditions never occurred or values are NA.
Technical Notes
- All MACD values respect percentage mode conversion when enabled
- Volume confirmation uses cached volume SMA for performance
- Label arrays (divergence) are automatically limited to prevent memory accumulation
- Background coloring: OB/OS backgrounds are drawn on top of main background to ensure visibility
- All calculations are optimized with conditional execution - features only calculate when enabled (performance optimization)
- Signal strength calculation combines multiple factors into a single score for easy filtering
- Cross quality calculation rates crossover quality based on angle, volume, and distance from zero
- Secondary timeframe MACD uses request.security() for higher timeframe data access
- Histogram analysis features (Bollinger Bands, MA, StochMACD) provide additional context beyond basic MACD signals
- Statistics table dynamically adjusts to show only enabled features, keeping it clean and relevant
- Divergence detection uses MACD line (not histogram) for more reliable signals
- Configuration presets automatically optimize MACD parameters for different trading styles
- Smart label placement: Labels appear on current bar at confirmation, using strength from tracked extreme point
- Label spacing uses effective distance (base distance × spacing multiplier) for better distribution
- Zero line polarity enforcement ensures Buy labels only appear when tracked extreme MACD < 0, Sell labels only when tracked extreme MACD > 0
- Label finalization requires MACD exit from OB/OS zone, sufficient bars passed, and recovery/decline percentage confirmation
- Strength-based filtering automatically compares and keeps only the strongest label when multiple signals are close together
- Enhanced visualization: Line outlines drawn behind main lines for superior visibility (black default, configurable)
- Enhanced visualization: Fill between MACD and zero line provides instant visual feedback (green above, red below)
- Enhanced visualization: Fill between OB/OS thresholds highlights neutral zone when dynamic levels are active
- Custom chart background overrides background mode when enabled, allowing theme-consistent indicator panels
Next Candle PredictorAdvanced TradingView Indicator for Precise Buy and Sell Signals
Overview:
The Predicta Futures - Next Candle Predictor is a cutting-edge TradingView indicator designed to forecast the next candle's direction in futures and cryptocurrency markets. Leveraging a multi-indicator confluence strategy, this tool provides traders with actionable long and short prediction percentages, enhanced by dynamic ADX-based thresholds and visual projection candles. Ideal for scalping, day trading, or swing trading on platforms like MEXC or Binance futures, it combines Supertrend, MACD, RSI, Stochastic, ADX, and volume analysis to deliver high-probability buy and sell signals while minimizing false positives.
Key Features:
• Multi-Indicator Confluence Scoring:
Integrates Supertrend for trend direction, EMAs (8, 21, 50) for alignment, MACD for momentum crossovers, RSI for overbought/oversold conditions, Stochastic for divergence detection, ADX for trend strength, and volume ratios for confirmation. A customizable confluence score (0-6) ensures signals meet user-defined criteria, reducing whipsaws in volatile markets.
• Dynamic Prediction Thresholds:
ADX-driven adjustments lower the required prediction percentage (e.g., 60% in strong trends) for "PERFECT TIME" entries, adapting to market conditions like ranging or trending phases.
• Visual Analysis Table:
A sleek, color-coded dashboard displays progress bars for each indicator, prediction percentages, and status (e.g., "PERFECT TIME" or "WAIT"). Supports long and short analyses with intuitive ASCII bars for quick scans.
• Projection Candles:
Simulates potential next-candle outcomes with volatility-scaled (via Bollinger Bands width) green long and red short candles, aiding in visualizing price targets.
• Buy/Sell Signals and Alerts:
Generates labeled "BUY" and "SELL" arrows on EMA crossovers within confirmed trends, with separate alerts for basic signals and high-confluence "PERFECT TIME" opportunities.
• Customizable Inputs:
Adjust ATR periods, Supertrend factors, minimum confluence scores, and volume ratios to tailor the indicator for stocks, forex, or crypto perpetual futures.
How It Works:
This TradingView script calculates long and short scores using weighted contributions from key indicators, normalizing them into prediction percentages. A confluence check—factoring trend, EMA alignment, MACD, Stochastic, volume, and ADX—triggers "PERFECT TIME" only when conditions align robustly. For example:
• In a downtrend (Supertrend red), with bearish MACD and Stochastic, and sufficient volume, the indicator highlights short opportunities.
• Dynamic thresholds ensure aggressive entries in strong trends (ADX >25) and conservative ones in weak trends.
• Backtested for reliability, it excels in identifying reversals and continuations, making it a must-have for traders seeking an edge in futures trading strategies.
Usage Instructions:
1. Add the indicator to your TradingView chart. (Search: Next Candle Predictor)
2. Customize settings via the inputs panel (e.g., set minConfluence to 5 for stricter signals).
3. Monitor the analysis table for predictions and confluence scores.
4. Act on "BUY/SELL" labels or "PERFECT TIME" alerts, combining with your risk management.
5. Enable projection candles for visual forecasting of the next bar.
Compatible with all timeframes, from 1-minute scalping to daily swings. Note: This is not financial advice; always verify signals with additional analysis.
Join thousands of traders enhancing their strategies—add it to your charts today and elevate your trading performance!
Please rate and review if it boosts your trades!
Thank you!
Next Candle PredictorAdvanced TradingView Indicator for Precise Buy and Sell Signals
Overview:
The Predicta Futures - Next Candle Predictor is a cutting-edge TradingView indicator designed to forecast the next candle's direction in futures and cryptocurrency markets. Leveraging a multi-indicator confluence strategy, this tool provides traders with actionable long and short prediction percentages, enhanced by dynamic ADX-based thresholds and visual projection candles. Ideal for scalping, day trading, or swing trading on platforms like MEXC or Binance futures, it combines Supertrend, MACD, RSI, Stochastic, ADX, and volume analysis to deliver high-probability buy and sell signals while minimizing false positives.
Key Features:
* Multi-Indicator Confluence Scoring: Integrates Supertrend for trend direction, EMAs (8, 21, 50) for alignment, MACD for momentum crossovers, RSI for overbought/oversold conditions, Stochastic for divergence detection, ADX for trend strength, and volume ratios for confirmation. A customizable confluence score (0-6) ensures signals meet user-defined criteria, reducing whipsaws in volatile markets.
* Dynamic Prediction Thresholds: ADX-driven adjustments lower the required prediction percentage (e.g., 60% in strong trends) for "PERFECT TIME" entries, adapting to market conditions like ranging or trending phases.
* Visual Analysis Table: A sleek, color-coded dashboard displays progress bars for each indicator, prediction percentages, and status (e.g., "PERFECT TIME" or "WAIT"). Supports long and short analyses with intuitive ASCII bars for quick scans.
* Projection Candles: Simulates potential next-candle outcomes with volatility-scaled (via Bollinger Bands width) green long and red short candles, aiding in visualizing price targets.
Buy/Sell Signals and Alerts: Generates labeled "BUY" and "SELL" arrows on EMA crossovers within confirmed trends, with separate alerts for basic signals and high-confluence "PERFECT TIME" opportunities.
* Customizable Inputs: Adjust ATR periods, Supertrend factors, minimum confluence scores, and volume ratios to tailor the indicator for stocks, forex, or crypto perpetual futures.
How It Works:
This TradingView script calculates long and short scores using weighted contributions from key indicators, normalizing them into prediction percentages. A confluence check—factoring trend, EMA alignment, MACD, Stochastic, volume, and ADX—triggers "PERFECT TIME" only when conditions align robustly. For example:
In a downtrend (Supertrend red), with bearish MACD and Stochastic, and sufficient volume, the indicator highlights short opportunities.
Dynamic thresholds ensure aggressive entries in strong trends (ADX >25) and conservative ones in weak trends.
Backtested for reliability, it excels in identifying reversals and continuations, making it a must-have for traders seeking an edge in futures trading strategies.
Usage Instructions:
1. Add the indicator to your TradingView chart.
2. Customize settings via the inputs panel (e.g., set minConfluence to 5 for stricter signals).
3. Monitor the analysis table for predictions and confluence scores.
4. Act on "BUY/SELL" labels or "PERFECT TIME" alerts, combining with your risk management.
5. Enable projection candles for visual forecasting of the next bar.
Compatible with all timeframes, from 1-minute scalping to daily swings. Note: This is not financial advice; always verify signals with additional analysis.
Rate and review if it boosts your trades!
Thank you!
Liquidity Guard v4.0 This script is designed for Market Makers (MM), Grid Traders, and Mean Reversion strategists. Its primary purpose is not to tell you when to enter a trade, but when to stop trading and withdraw liquidity to avoid "catching falling knives" or "selling too early" during extreme unilateral movements.
Unlike traditional indicators that require constant parameter tuning for different assets (e.g., BTC vs. PEPE), this script features a Normalized Z-Score Algorithm, making it adaptive to any asset class, price scale, or time frame without manual adjustment.
这是一个专为 做市商 (Market Makers)、网格交易者 (Grid Traders) 和 马丁策略 (Martingale) 设计的风控系统。它的核心目的不是告诉你“何时买入”,而是告诉你 “何时停止交易” 并撤回挂单,以防止在极端的单边行情中“接飞刀”或“卖飞”。
本指标最大的亮点是采用了 归一化 Z-Score (标准化分数) 算法。这意味着您不需要针对 BTC、ETH 或小币种分别调整参数,一套参数即可自适应所有币种和时间周期。
ROMEL ULTIMTE PROThis script contains multiple parameters with advanced AI-based analysis that provides a score for Swing and Intraday trades. No repaint , U can analysis at various Parameters changing input setting according your Edge..
Best timeframes: 15M, 1H, 4H, Daily — use according to your trading edge.
All indicators included are meant to support market analysis only and should not be considered as trend or trade recommendations.
Regards
Romel
Spectrum Matrix [CryptoScripts]📊 Spectrum Matrix Indicator — How to Use It
The Spectrum Matrix is a statistical extremes-based momentum indicator designed to help you identify high-probability pullback zones, exhaustion points, and reversal risk across any market.
It does not predict the future.
It identifies when price behavior reaches statistically rare extremes relative to its recent history.
Use this indicator as a confluence tool, not a standalone entry system.
🎨 Color System Explained
The Spectrum Matrix uses line color + background shading to represent how statistically extreme price conditions are.
🔴 Red Line (Overbought Warning)
- Indicates price is approaching statistically overbought conditions
- Momentum is elevated
- Risk of a pullback or consolidation is increasing
- Does NOT guarantee a drop, especially in strong uptrends
👉 Think of this as “caution: momentum is stretched”
🔴 Red Background (Extreme Overbought)
- Price has reached rare statistical extremes
- Historically unsustainable without a reset
- Pullbacks or sharp volatility are very likely
- Strong signal to:
- Take partial profits
- Tighten stops
- Avoid chasing longs
👉 This is the highest-risk zone for new longs
🟣 Purple Line (Oversold Warning)
- Indicates price is approaching statistically oversold conditions
- Downside momentum is stretched
- Bounce or relief rally probability increases
👉 Think of this as “selling pressure is exhausting”
🟢 Green Background (Extreme Oversold)
- Price is at statistically rare downside extremes
- Historically favors:
- Relief bounces
- Trend continuation entries
- Mean reversion moves
-Often aligns with fear-driven selloffs
👉 This is the highest-probability zone for long-side opportunities
🧠 Key Concept: Probability, Not Certainty
This indicator measures statistical rarity, not certainty.
Important rules to understand:
- ❌ Overbought does not mean price must drop
- ❌ Oversold does not mean price must instantly bounce
- ✅ It means continuation becomes riskier and mean reversion becomes more likely
In strong trends, price can remain overbought or oversold for extended periods.
🎯 Best Practices for Trading with Spectrum Matrix
✅ When to Use Signals
It’s best to wait for at least one of the following before acting:
-Red line (overbought)
- Purple line (oversold)
- Red shaded background (extreme overbought)
- Green shaded background (extreme oversold)
These zones act as decision areas, not automatic trade buttons.
🔗 Use in Confluence With:
- Market structure (higher highs / lower lows)
- Support & resistance
- Trend direction
- Volume
- Higher timeframe bias
- Other momentum or trend indicators
Spectrum Matrix tells you when to pay attention — not what to trade alone.
📈 Trend Context Matters (Very Important)
Strong Uptrend:
- Red line may appear repeatedly
- Price can continue higher despite overbought conditions
- Best used for:
- Profit-taking
- Risk reduction
- Avoiding late entries
Strong Downtrend:
- Purple lines and green zones may cluster
- Bounces may be short-lived
- Best used for:
- Relief rally trades
- Short covering
- Scaling into long-term positions carefully
🔬 Backtesting Is Required
Different assets behave differently.
- Some coins respect extremes very cleanly
- Others can stay overextended for long periods
- Volatility profiles matter
📌 Always backtest the Spectrum Matrix on each coin and timeframe you trade.
⚠️ Risk Management Reminder
- This is a probability-based tool
- Not financial advice
- Never trade purely off one indicator
- Always use:
- Defined risk
- Stop losses
- Position sizing
- Only trade with capital you can afford to lose
🧠 Final Summary
The Spectrum Matrix helps you:
- Identify statistically rare price extremes
- Avoid chasing late moves
- Anticipate pullbacks, bounces, and volatility shifts
- Trade with probability and discipline, not emotion
Used correctly, it becomes a powerful timing and risk-management edge .
Relative Strength Vs Index + MA + RS New Highs (r6)This indicator plots a Relative Strength (RS) line that measures how a security is performing relative to a chosen benchmark index (e.g. S&P 500, FTSE 100). It is designed to help identify leaders, laggards, and early trend changes by focusing on relative performance rather than price alone.
This indicator is displayed in its own pane, keeping it visually clean and independent of price action.
What this indicator is for (and what it isn’t)
Designed for:
Relative performance analysis
Trend confirmation and leadership detection
Medium- to long-term investors and position traders
Not designed for:
Intraday trading
Entry timing on its own (best used alongside price, volume, and structure)
What the indicator does:
Calculates Relative Strength as the ratio of price to a benchmark index
Optionally normalises RS around 100 (Mansfield-style) for easy visual comparison
Plots a moving average of RS to define RS trend / phase
Colours RS green when above its moving average and red when below
Marks RS New Highs with blue dots (and optional New Lows with red dots)
Restricts New High / Low signals to Daily, Weekly, and Monthly charts only (no intraday noise)
This makes it especially useful for identifying:
Stocks outperforming the market
RS leadership before major price advances
RS turning points that often precede price trends
RS New Highs (Key feature)
Blue dots (configurable) appear when the RS line makes a new lookback high, meaning the stock is outperforming its benchmark more strongly than at any point in the selected period.
Default behaviour:
Daily charts : 252 bars (~52 weeks)
Weekly charts : 52 bars (52 weeks)
Monthly charts : 12 bars (12 months)
These RS New Highs are commonly associated with institutional accumulation and can occur before price makes a new high , providing an early signal.
What is configurable
All key elements are user-configurable via the settings panel:
Benchmark
Select any index or symbol as the RS benchmark
RS Calculatio n
Raw RS ratio
SMA-normalised RS (centred around ~100)
Moving Average
MA type: EMA, SMA, RMA, or WMA
MA length (e.g. EMA 21 on Daily, EMA 10 on Weekly)
RS New High / Low Dots
Enable / disable RS New High dots
Enable / disable RS New Low dots
Adjust lookback length separately for Daily, Weekly, and Monthly charts
Select dot size (Tiny → Large)
Alerts
RS crossing above or below its moving average
RS making a new lookback high
LANDRAID BTC 1d StrategyLANDRAID ONLY FOR BITCOIN 1day Strategy
the big signal is swin and daily support and resistence
Three Soldiers - Short-Side Breakout Strategy Overview
This is the dedicated SHORT version of the Three Soldiers Martingale Pro strategy, designed specifically for bearish momentum on Ethereum 15-minute charts. It operates as the mirror image of the LONG version, using identical logic but reversed signals and position management for downward trends.
Core Concept: Bearish Momentum Capture
When the LONG version catches upward trends, this SHORT version captures downward movements. Both strategies share the same sophisticated framework:
Enhanced Three Soldiers Method for precise bearish signal detection
Progressive position scaling on confirmed downside momentum
Multi-tier exit system adapted for short positions
How to Use Both Versions Together
Primary Application Method:
1、Market Regime Detection: Use volume profile or trend indicators to identify prevailing market direction
2、Select Active Strategy:
Uptrend / Bullish structure → Activate LONG version only
Downtrend / Bearish structure → Activate SHORT version only
3、Avoid Simultaneous Operation: Do not run both strategies concurrently on the same chart
Alternative Advanced Method (Experienced Users):
Run both strategies in opposite paper accounts to test both directions simultaneously
Use as hedge pairs in different timeframes (e.g., LONG on 1H, SHORT on 15min)
Manual switching based on higher timeframe trend confirmation
Key Differences from LONG Version:
All Three Soldiers parameters optimized for bearish signals
Position sizing logic reversed for short entries
Exit calculations adjusted for downward profit targets
Visual indicators show bearish signal markers
⚠️ Parameter Notice (IMPORTANT):
Optimized for: ETH/USD 15-minute charts exclusively
For other instruments: Requires complete parameter re-optimization
Default values: Tuned for ETH's typical bearish volatility patterns
Quick Start Guide:
For bearish ETH markets: Apply this SHORT version with default parameters
When trend turns bullish: Switch to LONG version strategy
Never run both simultaneously on the same chart/timeframe
Monitor position count: Similar 8-position threshold for special exits
Visual Indicators on Chart:
Red Signals: Bearish Three Soldiers entry points
Black Line: Average short entry price
Red/Green Lines: Exit targets when special conditions activate
Three Soldiers - Long Direction Breakout Strategy Overview
The Three Soldiers Martingale Pro is a high-frequency trend-following strategy specifically optimized for Ethereum (ETH) on 15-minute charts. This precision-tuned system combines the enhanced Three Soldiers Method's momentum detection with disciplined progressive position sizing, creating a powerful tool for capturing ETH's characteristic volatility patterns in the 15-minute timeframe.
⚠️ CRITICAL PARAMETER NOTE ⚠️
This strategy's default parameters are EXCLUSIVELY calibrated for ETH/USD 15-minute charts.
For ETH: Parameters work as optimized out-of-the-box
For other cryptocurrencies: Expect poor performance or loading issues
For other timeframes: Significant parameter adjustment required
For traditional stocks/forex: Complete re-optimization necessary
Core Concept: ETH-15min Optimized Momentum Capture
The strategy exploits ETH's specific behavioral patterns in 15-minute intervals:
ETH-Specific Volatility Thresholds: Absolute/relative strength parameters set for ETH's typical 15-minute ranges
15-Minute Momentum Cycles: Lookback periods and averaging windows match ETH's 15-minute cycle characteristics
ETH Volume-Volatility Correlation: Exit parameters calibrated to ETH's unique volume-volatility relationship
Parameter Adaptation Guidelines for Other Instruments
If Trading Other Cryptos (BTC, SOL, etc.):
Recommended starting adjustments:
1. Multiply all percentage thresholds by (asset_volatility / ETH_volatility)
2. Adjust `tb_lookback` based on the asset's trend persistence
3. Modify profit targets based on the asset's average true range
If Changing Timeframes:
5-minute: Reduce all percentages by 30-40%
30-minute: Increase all percentages by 50-60%
1-hour: Double most percentage parameters
Strategy Logic Flow (ETH 15min Specific)
ETH Momentum Detection: Wait for Three Soldiers signals calibrated to ETH's patterns
15-Minute Entry Timing: Enter during ETH's typical active trading windows
ETH Volatility Management: Use stops/profits sized for ETH's 15-minute ranges
ETH-Specific Exit Triggers: Activate special exits during ETH's characteristic pullbacks
Default Parameters (ETH 15min ONLY)
long_along_absThreshold=0.8 (ETH's typical 15-min single-candle move)
takeProfitPct=6 (Optimized for ETH's 15-minute swing potential)
tb_lookback=14 (Matches ETH's momentum cycles)
fenge=8 (Based on ETH's average trend length before corrections)
Strategy Overview
The Three Soldiers Martingale Pro is a sophisticated trend-following strategy that combines the precision of the Enhanced Three Soldiers Method with the capital efficiency of progressive position sizing. This unique fusion creates a powerful momentum-capturing system designed to ride strong trends while dynamically managing risk through multiple exit mechanisms.
Core Concept: Precision Entry + Intelligent Position Management
Most Martingale strategies simply average down blindly. This strategy revolutionizes the approach by:
Signal-Based Entry Trigger: Only enters or adds positions when the Enhanced Three Soldiers Method confirms genuine momentum
Progressive Capital Allocation: Each new signal adds a fixed percentage of initial capital, creating a disciplined scaling approach
Multi-Layer Exit System: Implements three distinct exit strategies based on market conditions and position age
Key Components
1、Enhanced Three Soldiers Signal System
Dual Signal Types: Identifies both single-candle and three-candle momentum patterns
Strength Thresholds: Requires both absolute price movement (%) and relative efficiency (close-to-open vs. total range) to qualify
True Signal Confirmation: Uses historical signal breakout logic to filter false entries
Customizable Parameters: All strength thresholds adjustable for different market conditions
2、Progressive Position Sizing
Initial Entry: Uses a fixed percentage of capital (configurable)
Signal-Based Scaling: Each new confirmed signal adds another position of the same percentage
No Maximum Layers: Continues adding as long as signals appear (unlimited in theory)
3. Three-Tier Exit Mechanism
Real-Time Cost Calculation: Dynamically calculates average entry price, position size, and break-even points
Tier 1: Progressive Trailing Stop (Primary exit for normal conditions)
Creates 10 profit zones based on distance from average entry
Each zone has its own trailing stop percentage (configurable)
Automatically moves up stop levels as profit increases
Example: Zone 1 (1x profit target) uses 1x stop%, Zone 10 (10x profit target) uses 10x stop%
Tier 2: Special Exit System (Activated after specific conditions)
Triggers when: (1) position count exceeds "fenge" threshold AND (2) average entry > current price
Splits each position into two parts: "Bounce Exit" (60%) and "Special Exit" (40%)
Sets separate profit targets for each portion
Designed for deep pullbacks in strong trends
Tier 3: Full Exit (Cleanup mechanism)
Closes any residual positions below minimum threshold
Prevents tiny leftover positions from affecting account
Strategy Logic Flow
Wait for Signal: Monitor for Enhanced Three Soldiers "True Bullish" signal
Initial Entry: Enter with configured capital percentage
Subsequent Signals: Each new true signal adds another position
Exit Evaluation:
If position count ≤ "fenge" AND average entry ≤ current price → Use Progressive Trailing Stop
If position count > "fenge" AND average entry > current price → Activate Special Exit System
5、Position Management: Continuously update trailing stops and monitor exit conditions
Parameter Customization
Three Soldiers Parameters: Absolute/relative strength thresholds, lookback periods, average calculations
Position Sizing: Initial capital percentage, exit percentages
Exit System: Profit targets, trailing stop percentages, special exit thresholds
Special Exit: Activation threshold ("fenge"), bounce exit percentage, special profit targets
Strategic Advantages
✅ Signal-Driven Scaling: Avoids random averaging - only adds on confirmed momentum
✅ Adaptive Exit Logic: Different exit strategies for different market phases
✅ Progressive Risk Management: Tightening stops as profits accumulate
✅ Trend Persistence: Can ride extended trends while managing drawdowns
✅ Clear Visual Feedback: Plots average entry, bounce exit, and special exit line
Visual Indicators
Green Triangle: "True Bullish" entry signals
Black Line: Current average entry price
Red Line: Bounce exit target (when active)
Green Line: Special exit target (when active)
Volume Smart Support & Resistance Levels Indicator Overview
Volume Stronghold Finder is a next-generation volume-based support and resistance indicator that moves beyond simple price-level plotting. It intelligently identifies high-density volume clusters and evaluates their strength to pinpoint the most significant support and resistance zones in any market. By combining multi-timeframe volume analysis with adaptive market state detection, it provides dynamic, context-aware key levels that evolve with market conditions.
Core Innovation: From Static Lines to Dynamic Zones
Traditional support/resistance tools draw fixed lines based on price extremes or moving averages. Volume Stronghold Finder revolutionizes this approach by:
Volume-Based Zone Identification:
Detects Points of Control (POC), Value Area High (VAH), and Value Area Low (VAL) from higher timeframe volume profiles
Automatically clusters nearby POCs into cohesive “stronghold” zones using adaptive thresholds
Differentiates between random price touches and genuine volume-backed levels
Intelligent Stronghold Scoring System:
Cluster Density: How many POCs form the zone (scale 0–50)
Volume Concentration: Relative volume accumulation within the zone (scale 0–50)
Time Relevance: Recency and persistence of the zone (scale 0–15)
Market State Adjustment: Zones are re-evaluated in real-time based on current volatility (Low/Ranging/High)
Adaptive Market-State Logic:
Low Volatility Markets: Uses tighter clustering thresholds to identify precise, narrow zones
High Volatility Markets: Employs wider thresholds and ATR-adjusted buffers to filter out noise
Trending vs. Ranging: Adjusts confirmation logic between trend-following (SMA) and mean-reversion (ATR) approaches
Key Features
🎯 Smart Zone Detection: Automatically groups nearby volume peaks into meaningful support/resistance zones instead of scattered lines
📊 Strength Scoring: Each zone is scored 0–100—focus only on high-score “strongholds” (e.g., >70)
📈 Market-State Adaptive: Zone significance and width adjust dynamically to current volatility
📍 Nearest-Zone Tracking: Continuously monitors the closest stronghold above and below price for potential reactions
⚡ Breakout/Breakdown Alerts: Flags when price moves beyond the highest or lowest historical stronghold
🎨 Visual Clarity: High-score zones are highlighted with bold backgrounds; lower-score zones are subtle
How It Works – A Practical Example
The indicator analyzes volume distribution from a higher timeframe (e.g., 1-hour) to find POC/VAH/VAL levels
It clusters nearby levels (within an adaptive threshold) into a single “Volume Stronghold”
Each stronghold receives a score—e.g., a zone with 3 POCs, high relative volume, and recent formation may score 85/100
As price approaches a stronghold, the indicator calculates:
Distance to the zone in ATR terms
Whether the zone has been tested recently
Likelihood of reaction based on zone score and market state
Strategic Applications
Support/Resistance Trading: Enter near high-score strongholds with confirming price action
Breakout Confirmation: A break above a 90+ score stronghold signals a stronger trend shift
Risk Management: Place stops beyond high-score zones—they’re more likely to hold or repel price
Market Context: Understand whether price is inside a congestion zone (between strongholds) or in a clean trend
Parameter Groups
Volume Profile Settings: Pivot length, profile rows, value area percentage
Stronghold Detection: Clustering sensitivity, history length, minimum score display
Market State Settings: ATR, Bollinger Band, momentum parameters for regime detection
Visual Controls: Zone colors, line styles, score-based filtering
Risk Adjusted Geometric Exponent [VynthraQuant]RAGE Index (Risk-Adjusted Geometric Exponent)
Overview
The RAGE Index is a quantitative momentum oscillator that measures the efficiency and quality of an asset's price trend. Standing for Risk-Adjusted Geometric Exponent , this indicator goes beyond simple price action by evaluating the average logarithmic growth rate relative to the asset's volatility.
In institutional finance, it is not just about how much an asset moves, but how it moves. RAGE identifies trends that exhibit high compounding growth with minimal "noise" or volatility.
The Logic Behind RAGE
The indicator is built on two core quantitative pillars:
1. Geometric Exponent (GE): Instead of simple percentage changes, we calculate the geometric mean of log-returns. This represents the true compounding "velocity" of the price.
2. Volatility Normalization: We divide the GE by the standard deviation of returns (Volatility) over a specific lookback period.
How to Interpret the RAGE Index
* The Zero Line: The most critical level. When RAGE crosses above 0, the asset has entered a state of positive geometric growth. Below 0, the asset is in a state of efficient decay.
* Trend Quality: A rising RAGE value indicates that the trend is becoming more "efficient", growth is increasing while volatility is staying low or decreasing.
* Color-Coded Candles: The script features a `force_overlay` function that colors the candles on your main chart.
* Bullish Color: Efficient growth detected (Long bias).
* Bearish Color: Efficient decay detected (Short bias).
Key Features
* Logarithmic Accuracy: Uses log-returns to ensure time-additivity and eliminate the bias found in standard percentage calculations.
* Adaptive to Volatility: Unlike a standard RSI or MACD, RAGE penalizes "choppy" price action, helping you stay out of sideways markets.
* Optimized Performance: Written in Pine Script v6 with high-efficiency math to ensure fast loading even on lower timeframes.
Settings
* GE Lookback: The window used to calculate the average growth rate.
* Volatility Lookback: The window used to measure the "risk" or noise of the price action.
General Disclaimer
This indicator is for informational and educational purposes only. It does not constitute financial advice. The creator bears no responsibility for any financial decisions or losses resulting from its use. Past performance is not indicative of future results.
Islamic Disclaimer
All trading activity should be approached with awareness of halal and haram principles. Ensure your investments, instruments, and methods align with Islamic ethical standards. This tool does not promote speculative or impermissible practices.
Geometric Exponent [VynthraQuant]Overview
The Geometric Exponent is a specialized momentum and trend-strength indicator designed to quantify the average logarithmic growth rate of an asset over a specific lookback period. Unlike standard moving averages, this indicator focuses on the geometric mean of returns, providing a more accurate representation of compounded growth or decay.
By smoothing out the noise of daily price fluctuations through log-returns, the Geometric Exponent helps traders identify the underlying "velocity" of a trend.
How it Works
The indicator calculates the log-return for each bar within the user-defined GE Lookback period. It then computes the arithmetic mean of these log-returns, which mathematically represents the exponent of the geometric growth over that window.
Positive Values: Indicate a period of geometric growth (upward trend).
Negative Values: Indicate a period of geometric decay (downward trend).
Zero Line: Acts as the equilibrium point where there is no net growth.
Key Features
Log-Return Basis: Better suited for financial time series analysis than simple percentage changes, as log-returns are time-additive.
Customizable Lookback: Adjust the GE Lookback to fit your trading style, from fast-reacting scalping to long-term trend following.
Clean Visuals: An oscillator-style plot that makes it easy to spot momentum shifts and divergences.
How to Use
Trend Confirmation: Look for the Geometric Exponent to stay consistently above zero for long-term bullish trends and below zero for bearish trends.
Mean Reversion: Extreme peaks or valleys in the exponent may suggest that the current growth rate is unsustainable, potentially signaling an upcoming retracement.
Divergence: If price makes a new high but the Geometric Exponent makes a lower high, it suggests the "compounding power" of the trend is weakening.
General Disclaimer
This indicator is for informational and educational purposes only. It does not constitute financial advice. The creator bears no responsibility for any financial decisions or losses resulting from its use. Past performance is not indicative of future results.
Islamic Disclaimer
All trading activity should be approached with awareness of halal and haram principles. Ensure your investments, instruments, and methods align with Islamic ethical standards. This tool does not promote speculative or impermissible practices.
HYBRID MARKET SCORE SUITE - Context Engine🔬 HYBRID MARKET SCORE SUITE - Context Engine — Algorithmic Imbalance Scoring & Compact 37-Indicator Dashboard
Monitoring regular divergences, OB/OS zones, statistical deviations, and 37 metrics simultaneously is impractical to do manually. HMSS - Context Engine updates them every tick in one compact dashboard, with an optional scoring layer.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IS THIS
HMSS - Context Engine
Performs **Real-Time Monitoring** of 37 technical metrics across 4 fixed timeframes ( 1H / 4H / 1D / 1W ) simultaneously, plus 3 cumulative tools that operate independently of timeframe selection.
It processes market data on a **tick-by-tick** basis without lookahead, designed to detect developing structural imbalances and major trend exhaustion points as they unfold.
Since the indicator analyzes fixed multi-timeframe streams, it is chart TF-independent : switching your main chart timeframe does not affect the internal logic or scoring.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔧 "SWISS ARMY KNIFE" — Structural Context Tool
A compact table with extensive data for understanding where you are in the bigger picture:
34 MTF indicators across 4 timeframes (1H / 4H / 1D / 1W):
Divergences (13): RSI DIV, MFI DIV, CCI DIV, CMF DIV, MACD DIV, OBV DIV, Delta DIV, CVD DIV, DRSI DIV, ADX DIV, Elder DIV, Hull MA DIV, Stoch DIV
OB/OS (5): RSI OB/OS, MFI OB/OS, CCI OB/OS, Stoch OB/OS, DRSI OB/OS
Z-Score (9): RSI Z-Score, MFI Z-Score, CCI Z-Score, Stoch Z-Score, DRSI Z-Score, Delta Z-Score, CVD Z-Score, MACD Z-Score, OBV Z-Score
Other (7): CMF Zone, ADX Exhaustion, Elder Force, Williams VixFix (WVF), Volume Climax, ZMO EXT, NW ENV
3 Cumulative Tools (TF-independent): Basis, Williams A/D, PIV DIST (Pivot Distance)
A few "Special" metrics may be less familiar than classic oscillators, so here are quick notes on what they flag (not "better" indicators — just more niche tools):
NW ENV (Nadaraya–Watson Envelope): A kernel-smoothed price envelope (period 8) with deviation multipliers 2.25 (inner) and 7.75 (extreme). Labels reflect band breaches: !! = price outside the inner band (strong extension), !!! = outside the upper extreme band (rare upside extension), !!!! = outside the lower extreme band (rare downside extension). These are context tags for extension/mean-reversion risk, not trade commands.
Volume Climax: A Z-Score of volume over 20 periods. Flags unusually high volume above about 1.9σ . In practice, it helps highlight “crowd intensity” moments: heavy volume on a down candle can resemble panic-like supply; heavy volume on an up candle can resemble aggressive chasing. Treat it as context, not a directional guarantee.
ZMO EXT: normalized via Z-Score over a 100 -bar history. It highlights statistically stretched momentum when it deviates beyond roughly 2.0σ from its mean — a way to spot overheated acceleration.
Basis: Z-Score of the spread between perpetual futures and spot (Binance Futures Premium Index). High positive Z-Score = buyer overheating, deep negative = panic / liquidity deficit.
Williams A/D: Cumulative Williams Accumulation/Distribution indicator — tracks structural accumulation and distribution patterns.
PIV DIST (Pivot Distance): Percentage distance to the nearest significant Pivot level (weekly or monthly). Includes current, previous, and prior periods. Default is Camarilla (pivot type selectable in settings). Calculates extreme S6/R6 levels via progression. Cell highlights in counter-trend color when distance ≤0.5%. Extreme levels (5, 6) are colored unconditionally; Major levels (3, 4) — only when confirmed by score (|Score| > 1600). Does NOT participate in scoring — visual tool only.
All of this — across multiple timeframes simultaneously, in one compact table, without cluttering your chart with a dozen oscillators below. Works on any chart TF — your timeframe selection does not affect calculations.
Each block can be toggled in settings:
Divergence Block — forming regular divergences across oscillators/flows
OB/OS Block — overbought/oversold zones (RSI/MFI/CCI/Stoch etc.)
Z-Score Block — statistical deviations in sigmas (σ)
Special Indicators Block — special indicators and regime filters
Cumulative Block — Basis, Williams A/D, Pivot Distances
Scoring Block — Hybrid Engine (Score, Pattern, Breakdown, Attention, Trade Type, Veto)
Candle Coloring — optional highlighting of closed candles based on score level (threshold adjustable, off by default)
Use it as a dashboard for structural market assessment — a macro lens for trend context and positioning.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 SCORING SYSTEM — For Structural Imbalances
An innovative data-driven engine that activates during moments of structural imbalance :
• Calibrated using 380,000+ historical market data records
• Compares current indicator combinations with historical patterns
• Assigns a Score when significant combinations are detected
Think of the scoring system as a Seismograph — it monitors deep market structure, not surface noise. Elevated readings indicate tectonic pressure building up. When it reaches extreme levels, it signals accumulated stress that historically precedes structural shifts — like seismic tension that eventually releases.
It is designed to assist in identifying the broader trend context and potential structural pivot points, if that aligns with your approach.
The system is calibrated on a multi-month historical dataset of 380,000+ records collected minute-by-minute from cryptocurrency markets (BTC, ETH, SOL). During this period, the market showed both multi-month lows and several ATH (All-Time High) events. Statistical dependencies and indicator combination patterns were identified from this data.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 SCORING ENGINE ARCHITECTURE
Concept & Logic:
This system utilizes a hybrid approach, combining classical technical analysis with statistical profiling. Instead of simply summing up indicator signals, the algorithm compares the current market state against a proprietary database of historical patterns ("Profiles") collected for specific assets.
The calculation logic is layered:
1. Base Layer (Indicator Analysis):
The system monitors 34+ metrics (RSI, MFI, Z-Scores, CVD, OBV, ADX, VixFix, etc.).
Standard Deviation (25 pts, Dim Cell): Occurs when an indicator exceeds a standard volatility threshold (e.g., Z-Score > 1.5). This registers as a common local anomaly.
Profile Alignment (50 pts, Bright Cell): Occurs when a value hits specific historical thresholds recorded in the Asset Profile. These are values where structural shifts occurred in the past data samples.
2. The Core Pattern Recognition (compressed historical scenarios):
The system scans for ~14 compressed market scenarios (Patterns). A pattern becomes active only when its specific "Kernel" of indicators fires simultaneously with a Coverage Ratio > 70%.
3. Confluence & Weighting:
The final score reflects the density of these matches. It identifies the "Winning Side" (Long vs. Short bias) based on the accumulated weight of base and profile scores.
Score Breakdown (The "X-Ray" Row):
The dashboard displays a breakdown row ( L:… S:… C:… A:… K:… ) to visualize the components of the Total Score:
L / S (Baseline): Cumulative weight of active indicators for Long or Short bias.
C (Core Multiplier): A dynamic coefficient applied when the match with a historical pattern "Kernel" is high.
A (AddSig): Points for secondary confirming factors that reinforce the active pattern.
K (Key Features): Internal code for High-Impact Anomalies . These are rare statistical outliers (e.g., extreme Z-Scores > 3.0) that carry significant weight due to their historical correlation with structural expansion.
System States (Dashboard Output):
The text labels on the UI represent the statistical context of the market, not direct trade commands:
NEUTRAL: Balanced market, no dominant patterns.
SIGNAL FORMING: Early detection of potential accumulation or distribution structures.
TREND — WAIT: Market is in a directional phase; algorithm is monitoring for exhaustion or pivot points.
ON WATCH: High statistical confluence detected.
MAYBE LONG/SHORT: Directional statistical bias is present.
MAX SCORE: Indicates an "Extreme Score" condition. Historically, such values appear during significant structural extensions (Global Lows/Highs) where pattern coverage can approach 100% alongside statistical anomalies.
BREAKOUT: Context suggests structural continuation or level breach.
Disclaimer: This tool provides a statistical context assessment based on historical pattern matching. "Global Lows/Highs" / "New Low/High" are dataset-derived pattern names, not a directional claim. "Max Score" and "Key Features" describe rarity levels, not guaranteed outcomes. Past market behavior is not indicative of future performance.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡️ DRSI VETO — SAFETY MECHANISM
Sometimes "the setup exists by score", but the market is structurally overextended — which can make positioning riskier. This is where DRSI Veto comes in:
If the system indicates LONG , but DRSI Z-Score shows extreme overbought conditions (or vice versa for SHORT), the VETO activates, significantly reducing the final Score.
This helps filter out overextended "exhaustion" setups — technically valid by score, but stretched enough to increase mean-reversion risk without proper context. A clear VETO label appears in the table.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 USE CASES — WHEN IT WORKS BEST
Dual Purpose: Efficiency & Detection
While the Scoring Engine identifies structural imbalances, the dashboard serves as your primary context workstation . It replaces the need for multiple oscillator panes, keeping your charts clean while providing a "Heads-Up Display" for Oscillators, Money Flow, and Statistical Anomalies across four timeframes at once.
Understanding "Where You Are":
The Context Engine is designed for positional awareness — understanding the broader trend structure before making decisions. It answers the question: "What is the macro context right now?"
Elevated Score (Not MAX):
An elevated score in the Context Engine often indicates that a strong trend is developing . This is valuable information for avoiding counter-trend positioning during powerful directional moves.
MAX Score — Rare Structural Events:
The scoring system fires less frequently than its companion (HMSS - Impulse Monitor), but when it does reach MAX Score levels, it indicates extreme structural tension — the kind that historically precedes major pivots. These are rare events measured in hours or days, not minutes.
When NOT to expect detections:
Markets can and often WILL pivot without the indicator firing. This tool is designed for major structural transitions . Smaller corrections and intraday reversals may occur without elevated readings — that's what HMSS - Impulse Monitor is for.
This is intentional: higher-score conditions are designed to be relatively rare, not a daily occurrence. If your approach values selectivity, it may help to treat elevated readings as “patient-wait” moments — markets often reward waiting for cleaner, high-confluence regimes rather than forcing a setup every session.
Think of the scoring system as a tectonic pressure gauge — most of the time it shows normal readings, but when stress accumulates to extreme levels, it provides valuable context for understanding structural risk. It's your seismograph: particularly useful when markets approach rare structural thresholds.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 FORMING DIVERGENCES — Real-Time Monitoring
Important note for experienced traders:
The indicator shows divergences that are CURRENTLY FORMING , not confirmed ones. This is Real-Time Monitoring mode — scoring updates every tick , allowing you to see the situation as it develops.
⚠️ No lookahead / no future leak: This script strictly uses lookahead=barmerge.lookahead_off (no future data is used in calculations).
On historical data, scores are displayed based on closed candles. For better historical detail, use lower timeframe candles.
If a "forming" pattern disappears — this is a normal part of real-time monitoring: the market changes, and the assessment/confluence recalculates accordingly.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 DIVERGENCE PERCENTAGES — WHAT THEY MEAN
Percentages next to divergences show "Divergence Intensity" — how strongly price and oscillator have diverged between points.
Note: The presence of a divergence itself is factored into the scoring system. However, the percentage values (intensity) are currently NOT included in Score calculation. We may add them in the future if we accumulate sufficient data confirming their statistical significance. For now, percentages serve as a visual hint for your own analysis — an additional confirmation filter.
Note: The indicator also draws forming divergence lines directly on the price chart — for 6 key oscillators (RSI, MACD, MFI, CCI, DRSI, CVD).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔧 SCORING SYSTEM COMPATIBILITY
Statistical data profiles are available for: BTC, ETH, and SOL
• Default mode is AUTO : BTC/ETH/SOL detected automatically; all other assets use 'ALTS' (ETH-based) profile
• Manual Override: You can select a specific profile in settings if Bar Replay testing shows it tracks your asset's volatility better
• Indicator readings as tools work on ANY assets and markets
• For non-crypto instruments (Forex, Stocks): if alerts trigger too often or too rarely, adjust MAX SCORE Thresholds in settings
Note: Alert threshold settings (Base, Total, MAX SCORE) also affect "Attention Level" and "Trade Type" display in the UI.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 ALERT SYSTEM (4-STEP)
The alert system is tiered (each step can be toggled on/off):
Step 1: Base Score — Triggers when mathematical confluence reaches base threshold
Step 2: Core Pattern — Triggers when algorithmic pattern is detected (Breakout/Formation)
Step 3: Total Score — Triggers when total Score reaches threshold
Step 4: MAX SCORE Alert — Final high-score alert (individual thresholds for BTC/ETH/SOL/ALT)
Important: Alert thresholds simultaneously calibrate Attention and Trade Type in the UI.
For automation (bots / webhook-based tools): use Webhook URL. Keep in mind that maximum score is often reached at the wick tip, not at candle close — backtesting on longer TFs may show delayed data.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧩 HMSS ECOSYSTEM: HMSS - Context Engine vs. HMSS - Impulse Monitor
This script (HMSS - Context Engine) is one half of a specialized two-module system. It is designed to work either as a standalone tool or alongside its companion, HMSS - Impulse Monitor.
Why separate scripts? To maximize responsiveness and detail without hitting Pine Script resource limits (memory/execution time), the ecosystem is split into two specialized engines. Merging them would compromise real-time performance.
Note: HMSS - Impulse Monitor is not a different preset of the same script — it is a separate engine with its own indicator set, pattern library, and calibration profiles designed for a different purpose and a different analytical scope.
Key Differences & Synergy:
Distinct Purpose (Macro vs. Micro): HMSS - Context Engine (This Script): Designed for "Market Context." It analyzes 1H/4H/1D/1W structures to identify global trends and major structural pivots. HMSS - Impulse Monitor (Companion): Designed for "Market Reaction." It monitors 5m/15m/30m specifically to detect local exhaustion, liquidation wicks, and immediate imbalances.
Distinct Indicator Sets: Each engine includes components better suited for its timeframe domain. HMSS - Context Engine features structure-oriented indicators: ADX Exhaustion, OBV Divergence & Z-Score, Delta Histograms, VixFix (WVF), Basis, Williams A/D, and Pivot Distances. HMSS - Impulse Monitor incorporates VWAP Deviation and ATR Spikes — metrics more relevant for intraday dynamics.
Distinct Calibration Profiles: While both engines are developed using historical market observations, their pattern libraries and threshold values are calibrated independently for their respective metric sets and use-cases. The same market event may register as "Extreme" on HMSS - Context Engine while appearing "Neutral" on HMSS - Impulse Monitor if local momentum remains stable — and vice versa.
💡 Synergy Scenarios (How to use them together): Experienced traders often combine both modules to refine market context and decision-making:
• Trend Pullback: If HMSS - Context Engine indicates a strong Trend, but HMSS - Impulse Monitor shows "Extreme Overbought/Oversold" (correction against trend) — this often highlights a short-term counter-trend move within a larger structural trend.
• Major Reversal Risk: If BOTH HMSS - Context Engine and HMSS - Impulse Monitor indicate "Max Score" / "Extreme Imbalance" simultaneously — this is a rare statistical event (confluence of macro and micro exhaustion) that historically correlates with significant structural reversals.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ TECHNICAL NOTES
🕰️ Real-Time Monitor (No Past Labels):
Crucial Concept: This tool is a Real-Time Monitor , not a "signal painter." It shows the market state HERE AND NOW — it does NOT draw historical Buy/Sell arrows or preserve past dashboard states. The only elements drawn on the chart are currently forming divergence lines.
Calculation Heavy:
We utilize maximum Pine Script limits for calculations. Initial loading may take up to 12-15 seconds — this reflects the precision and volume of processed data. After loading, the indicator operates without noticeable delays, processing data every tick .
Chart TF Independence:
The indicator analyzes fixed MTF streams, so your chart timeframe selection does not affect results. For reduced load and faster response, 5-60 minute charts are preferred.
Recommended Chart Timeframe:
For speed and lower load: 5–60 minutes (optimal)
For detailed history, you can go down to lower timeframes, but this is a performance/memory tradeoff
Bar Replay — How to See Past Performance:
To understand how the Scoring Engine reacted to specific market moves (e.g., a past crash or pump), use Bar Replay Mode :
1s to 30s: Best accuracy (precise tick-emulation)
1 min: Acceptable (if your plan lacks seconds-based intervals)
Higher TFs: Works, but for best detail — especially to see MAX Score events — lower TFs are recommended
To manage the extensive database of pattern weights and profiles while maintaining high performance, this engine utilizes a custom optimized data structure. This ensures the script operates smoothly within Pine Script's resource limits without compromising the depth of historical analysis.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 TECHNICAL APPROACH (for the curious)
The indicator uses a proprietary compact data encoding system that allows transmitting information about divergences, their type, length, and intensity in a single numeric value. This enables efficient aggregation of data from multiple timeframes without exceeding Pine Script limits.
The scoring system is built on the Statistical Pattern Matching principle: current indicator combinations are compared against a library of statistically significant patterns, each with its own weight and type (Formation/Breakout).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 QUICK START
Add HYBRID MARKET SCORE SUITE - Context Engine to your chart.
Position table (recommended: bottom-right ) and adjust Offset / Spacer so it doesn't overlap price action.
In settings, toggle blocks by groups: Divergences / OB-OS / Z-Score / Special / Cumulative / Scoring — to match your trading style and load preferences.
For comfortable operation, use chart TF 5–60m .
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔄 DEVELOPMENT
The indicator receives periodic updates, including statistical pattern refinements as new market data is accumulated, to maintain relevance with current market conditions. Update schedule is not guaranteed.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡️ DISCLAIMER
This script is provided for informational and educational purposes only and does NOT constitute financial advice, investment advice, or a recommendation to buy/sell any asset.
All examples, descriptions, and statistics are based on historical observations. Market conditions can change, patterns can fail, and signals/labels may disappear or update in real time. No results are guaranteed.
Use this tool as one input among many. Always apply your own judgment, risk management, and independent verification (DYOR). Trading — especially with leverage — involves substantial risk, including the risk of total loss. You are solely responsible for your decisions and outcomes.
Hybrid Market Score Suite - Impulse Monitor🔬 HYBRID MARKET SCORE SUITE - Impulse Monitor — Algorithmic Imbalance Scoring & Compact 28-Indicator Dashboard
Monitoring regular divergences, OB/OS zones, statistical deviations, and 28 metrics simultaneously is impractical to do manually. HMSS - Impulse Monitor updates them every tick in one compact dashboard, with an optional scoring layer.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IS THIS
HMSS - Impulse Monitor
Performs **Real-Time Monitoring** of 28 technical metrics across 3 fixed timeframes ( 5m / 15m / 30m ) simultaneously.
It processes market data on a **tick-by-tick** basis without lookahead, designed to detect developing market imbalances and local exhaustion points as they happen.
Since the indicator analyzes fixed multi-timeframe streams, it is chart TF-independent : switching your main chart timeframe does not affect the internal logic or scoring.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔧 "SWISS ARMY KNIFE" — Daily Monitoring Tool
A compact table with extensive data that you use every day :
28 indicators across 3 timeframes (5m / 15m / 30m):
Divergences (9): RSI DIV, MFI DIV, CCI DIV, CMF DIV, MACD DIV, CVD DIV, DELTA RSI (DRSI) DIV, Elder DIV, STOCH DIV
OB/OS (5): RSI OB/OS, MFI OB/OS, CCI OB/OS, DRSI OB/OS, STOCH OB/OS
Z-Score (8): RSI Z-Score, MFI Z-Score, CCI Z-Score, STOCH Z-Score, DRSI Z-Score, CMF Zone, CVD Z-Score, MACD Z-Score
Special (6): Elder Force, Volume Climax, ZMO EXT, (Nadaraya Watson Envelope) NW ENV, ATR Spikes, VWAP Dev
A few "Special" metrics may be less familiar than classic oscillators, so here are quick notes on what they flag (not "better" indicators — just more niche tools):
NW ENV (Nadaraya–Watson Envelope): A kernel-smoothed price envelope (period 8) with deviation multipliers 2.25 (inner) and 7.75 (extreme). Labels reflect band breaches: !! = price outside the inner band (strong extension), !!! = outside the upper extreme band (rare upside extension), !!!! = outside the lower extreme band (rare downside extension). These are context tags for extension/mean-reversion risk, not trade commands.
ATR Spikes: Compares the current candle range (High–Low) to the recent average ATR(14) over the last 10 bars. A spike triggers when the candle is ≥ 2.0× larger than the average — often seen during climax-like moments (sharp expansion), useful as a “caution marker” for late-move entries.
Volume Climax: A Z-Score of volume over 20 periods. Flags unusually high volume above about 1.9σ . In practice, it helps highlight “crowd intensity” moments: heavy volume on a down candle can resemble panic-like supply; heavy volume on an up candle can resemble aggressive chasing. Treat it as context, not a directional guarantee.
normalized via Z-Score over a 100 -bar history. It highlights statistically stretched momentum when it deviates beyond roughly 2.0σ from its mean — a way to spot overheated acceleration.
All of this — across multiple timeframes simultaneously, in one compact table, without cluttering your chart with a dozen oscillators below. Works on any chart TF — your timeframe selection does not affect calculations.
Each block can be toggled in settings:
Divergence Block — forming regular divergences across oscillators/flows
OB/OS Block — overbought/oversold zones (RSI/MFI/CCI/Stoch etc.)
Z-Score Block — statistical deviations in sigmas (σ)
Special Indicators Block — special indicators and regime filters
Scoring Block — Hybrid Engine (Score, Pattern, Breakdown, Attention, Trade Type, Veto)
Use it as a dashboard for quick market assessment — like a Geiger counter for market anomalies.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 SCORING SYSTEM — For Extreme Imbalances
An innovative data-driven engine that activates during moments of extreme imbalance :
• Calibrated using 380,000+ historical market data records
• Compares current indicator combinations with historical patterns
• Assigns a Score when significant combinations are detected
Think of the scoring system as a Storm Radar — it doesn't predict volatility explosions, but it "lights up" during storms and shows when the turbulence reaches its peak and begins to subside.
It is designed to assist in identifying potential impulse reversals during liquidation events, if that aligns with your approach.
The system is calibrated on a multi-month historical dataset of 380,000+ records collected minute-by-minute from cryptocurrency markets (BTC, ETH, SOL). During this period, the market showed both multi-month lows and several ATH (All-Time High) events. Statistical dependencies and indicator combination patterns were identified from this data.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 SCORING ENGINE ARCHITECTURE
Concept & Logic:
This system utilizes a hybrid approach, combining classical technical analysis with statistical profiling. Instead of simply summing up indicator signals, the algorithm compares the current market state against a proprietary database of historical patterns ("Profiles") collected for specific assets.
The calculation logic is layered:
1. Base Layer (Indicator Analysis):
The system monitors 28 metrics (RSI, MFI, Z-Scores, CVD, ATR Spikes, VWAP DEV, etc.).
Standard Deviation (25 pts, Dim Cell): Occurs when an indicator exceeds a standard volatility threshold (e.g., Z-Score > 1.5). This registers as a common local anomaly.
Profile Alignment (50 pts, Bright Cell): Occurs when a value hits specific historical thresholds recorded in the Asset Profile. These are values where impulses or structural shifts occurred in the past data samples.
2. The Core Pattern Recognition (compressed historical scenarios):
The system scans for ~14 compressed market scenarios (Patterns). A pattern becomes active only when its specific "Kernel" of indicators fires simultaneously with a Coverage Ratio > 70%.
3. Confluence & Weighting:
The final score reflects the density of these matches. It identifies the "Winning Side" (Long vs. Short bias) based on the accumulated weight of base and profile scores.
Score Breakdown (The "X-Ray" Row):
The dashboard displays a breakdown row ( L:… S:… C:… A:… K:… ) to visualize the components of the Total Score:
L / S (Baseline): Cumulative weight of active indicators for Long or Short bias.
C (Core Multiplier): A dynamic coefficient applied when the match with a historical pattern "Kernel" is high.
A (AddSig): Points for secondary confirming factors that reinforce the active pattern.
K (Key Features): Internal code for High-Impact Anomalies . These are rare statistical outliers (e.g., extreme Z-Scores > 3.0) that carry significant weight due to their historical correlation with volatility expansion.
System States (Dashboard Output):
The text labels on the UI represent the statistical context of the market, not direct trade commands:
NEUTRAL: Balanced market, no dominant patterns.
SIGNAL FORMING: Early detection of potential accumulation or distribution structures.
TREND — WAIT: Market is in a directional phase; algorithm is monitoring for exhaustion or pivot points.
ON WATCH: High statistical confluence detected.
MAYBE LONG/SHORT: Directional statistical bias is present.
MAX SCORE: Indicates an "Extreme Score" condition. Historically, such values appear during significant market extensions (Global Lows/Highs) where pattern coverage can approach 100% alongside statistical anomalies.
BREAKOUT: Context suggests impulse continuation or level breach.
Disclaimer: This tool provides a statistical context assessment based on historical pattern matching. "Global Lows/Highs" / "New Low/High" are dataset-derived pattern names, not a directional claim. "Max Score" and "Key Features" describe rarity levels, not guaranteed outcomes. Past market behavior is not indicative of future performance.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡️ DRSI VETO — SAFETY MECHANISM
Sometimes "the setup exists by score", but the market is overextended — which can make timing riskier. This is where DRSI Veto comes in:
If the system indicates LONG , but DRSI Z-Score shows extreme overbought conditions (or vice versa for SHORT), the VETO activates, significantly reducing the final Score.
This helps filter out overextended "exhaustion" setups — technically valid by score, but stretched enough to increase mean-reversion risk without proper context. A clear VETO label appears in the table.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 USE CASES — WHEN IT WORKS BEST
Dual Purpose: Efficiency & Detection
While the Scoring Engine hunts for invisible imbalances, the dashboard serves as your primary daily workstation . It replaces the need for multiple oscillator panes, keeping your charts clean while providing a "Heads-Up Display" for Oscillators, Money Flow, and Statistical Anomalies across three timeframes at once.
Identifying Liquidation-Driven Reversals:
The scoring system is most effective during high-impulse market movements — large liquidation cascades, stop-loss hunts, sharp imbalances. HMSS - Impulse Monitor helps spot potential exhaustion points within seconds or minutes, highlighting reaction zones during high-impulse moves.
When NOT to expect detections:
Markets can and often WILL reverse without the indicator firing. This tool is designed for high-volatility moments with significant liquidations . Reversals in low-volatility, "quiet" markets will likely occur without elevated readings.
This is intentional: higher-score conditions are designed to be relatively rare, not a daily occurrence. If your approach values selectivity, it may help to treat elevated readings as “patient-wait” moments — markets often reward waiting for cleaner, high-confluence regimes rather than forcing a setup every session.
Think of the scoring system as an airbag — most of the time you don't need it, but when it activates, its informational value is high. It's your storm radar: particularly useful when markets enter rare and dangerous regimes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 FORMING DIVERGENCES — Real-Time Monitoring
Important note for experienced traders:
The indicator shows divergences that are CURRENTLY FORMING , not confirmed ones. This is Real-Time Monitoring mode — scoring updates every tick , allowing you to see the situation as it develops.
⚠️ No lookahead / no future leak: This script strictly uses lookahead=barmerge.lookahead_off (no future data is used in calculations).
On historical data, scores are always displayed based on closed candles. For better historical detail, use candles down to 1-10 seconds.
If a "forming" pattern disappears — this is a normal part of real-time monitoring: the market changes, and the assessment/confluence recalculates accordingly.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 DIVERGENCE PERCENTAGES — WHAT THEY MEAN
Percentages next to divergences show "Divergence Intensity" — how strongly price and oscillator have diverged between points.
Note: The presence of a divergence itself is factored into the scoring system. However, the percentage values (intensity) are currently NOT included in Score calculation. We may add them in the future if we accumulate sufficient data confirming their statistical significance. For now, percentages serve as a visual hint for your own analysis — an additional confirmation filter.
Note: The indicator also draws forming divergence lines directly on the price chart — for 6 key oscillators (RSI, MACD, MFI, CCI, DRSI, CVD).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔧 SCORING SYSTEM COMPATIBILITY
Statistical data profiles are available for: BTC, ETH, and SOL
- Default mode is AUTO : BTC/ETH/SOL detected automatically; all other assets use 'ALTS' (ETH-based) profile
- Manual Override: You can select a specific profile in settings if Bar Replay testing shows it tracks your asset's volatility better
- Indicator readings as tools work on ANY assets and markets
- For non-crypto instruments (Forex, Stocks): if alerts trigger too often or too rarely, adjust MAX SCORE Thresholds in settings
Note: Alert threshold settings (Base, Total, MAX SCORE) also affect "Attention Level" and "Trade Type" display in the UI.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 ALERT SYSTEM (4-STEP)
The alert system is tiered (each step can be toggled on/off):
Step 1: Base Score — Triggers when mathematical confluence reaches base threshold
Step 2: Core Pattern — Triggers when algorithmic pattern is detected (Breakout/Formation)
Step 3: Total Score — Triggers when total Score reaches threshold
Step 4: MAX SCORE Alert — Final high-score alert (individual thresholds for BTC/ETH/SOL/ALT)
Important: Alert thresholds simultaneously calibrate Attention and Trade Type in the UI.
For automation (bots / webhook-based tools): use Webhook URL. Keep in mind that maximum score is often reached at the wick tip, not at candle close — backtesting on longer TFs may show delayed data.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧩 HMSS ECOSYSTEM: HMSS - Impulse Monitor vs. HMSS - Context Engine
This script (HMSS - Impulse Monitor) is one half of a specialized two-module system. It is designed to work either as a standalone tool or alongside its companion, HMSS - Context Engine.
Why separate scripts? To maximize responsiveness and detail without hitting Pine Script resource limits (memory/execution time), the ecosystem is split into two specialized engines. Merging them would compromise real-time performance.
Note: HMSS - Context Engine is not a different preset of the same script — it is a separate engine with its own indicator set, pattern library, and calibration profiles designed for a different purpose and a different analytical scope.
Key Differences & Synergy:
Distinct Purpose (Micro vs. Macro): HMSS - Impulse Monitor (This Script): Designed for "Market Reaction." It monitors 5m/15m/30m specifically to detect local exhaustion, liquidation wicks, and immediate imbalances. HMSS - Context Engine (Companion): Designed for "Market Context." It analyzes 1h/4h/1D/1W structures to identify global trends and major structural pivots.
Distinct Indicator Sets: Each engine includes components better suited for its timeframe domain. HMSS - Impulse Monitor features VWAP Deviation and ATR Spikes — metrics more relevant for intraday dynamics. HMSS - Context Engine incorporates structure-oriented indicators not present here: ADX Exhaustion, OBV Divergence & Z-Score, Delta Histograms, VixFix (WVF), Basis, Williams A/D, and Pivot Distances.
Distinct Calibration Profiles: While both engines are developed using historical market observations, their pattern libraries and threshold values are calibrated independently for their respective metric sets and use-cases. The same market event may register as "Extreme" on HMSS - Impulse Monitor while appearing "Neutral" on HMSS - Context Engine if the broader trend structure remains intact — and vice versa.
💡 Synergy Scenarios (How to use them together): Experienced traders often combine both modules to refine market context and decision-making:
• Trend Pullback (Scalp): If HMSS - Context Engine indicates a strong Trend, but HMSS - Impulse Monitor shows "Extreme Overbought/Oversold" (correction against trend) — this often highlights a short-term counter-trend opportunity or a re-entry point.
• Major Reversal Risk: If BOTH HMSS - Impulse Monitor and HMSS - Context Engine indicate "Max Score" / "Extreme Imbalance" simultaneously — this is a rare statistical event (confluence of micro and macro exhaustion) that historically correlates with significant structural reversals.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ TECHNICAL NOTES
🕰️ Real-Time Monitor (No Past Labels):
Crucial Concept: This tool is a Real-Time Monitor , not a "signal painter." It shows the market state HERE AND NOW — it does NOT draw historical Buy/Sell arrows or preserve past dashboard states. The only elements drawn on the chart are currently forming divergence lines.
Calculation Heavy:
We utilize maximum Pine Script limits for calculations. Initial loading may take up to 12-15 seconds — this reflects the precision and volume of processed data. After loading, the indicator operates without noticeable delays, processing data every tick .
Chart TF Independence:
The indicator analyzes fixed MTF streams, so your chart timeframe selection does not affect results. For reduced load and faster response, 5-60 minute charts are preferred.
Recommended Chart Timeframe:
For speed and lower load: 5–60 minutes (optimal)
For super-detailed history, you can go down to second-level candles, but this is a performance/memory tradeoff
Bar Replay — How to See Past Performance:
To understand how the Scoring Engine reacted to specific market moves (e.g., a past crash or pump), use Bar Replay Mode :
1s to 30s: Best accuracy (precise tick-emulation)
1 min: Acceptable (if your plan lacks seconds-based intervals)
> 5 min: Not recommended — accuracy drops as intrabar price action is lost
⚠️ > 15 min: Not recommended — may exceed memory limits (TradingView constraint)
To manage the extensive database of pattern weights and profiles while maintaining high performance, this engine utilizes a custom optimized data structure. This ensures the script operates smoothly within Pine Script's resource limits without compromising the depth of historical analysis.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 TECHNICAL APPROACH (for the curious)
The indicator uses a proprietary compact data encoding system that allows transmitting information about divergences, their type, length, and intensity in a single numeric value. This enables efficient aggregation of data from multiple timeframes without exceeding Pine Script limits.
The scoring system is built on the Statistical Pattern Matching principle: current indicator combinations are compared against a library of statistically significant patterns, each with its own weight and type (Formation/Breakout).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 QUICK START
Add HYBRID MARKET SCORE SUITE - Impulse Monitor to your chart.
Position table (recommended: bottom-right ) and adjust Offset / Spacer so it doesn't overlap price action.
In settings, toggle blocks by groups: Divergences / OB-OS / Z-Score / Special / Scoring — to match your trading style and load preferences.
For comfortable operation, use chart TF 5–60m .
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔄 DEVELOPMENT
The indicator receives periodic updates, including statistical pattern refinements as new market data is accumulated, to maintain relevance with current market conditions. Update schedule is not guaranteed.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡️ DISCLAIMER
This script is provided for informational and educational purposes only and does NOT constitute financial advice, investment advice, or a recommendation to buy/sell any asset.
All examples, descriptions, and statistics are based on historical observations. Market conditions can change, patterns can fail, and signals/labels may disappear or update in real time. No results are guaranteed.
Use this tool as one input among many. Always apply your own judgment, risk management, and independent verification (DYOR). Trading — especially with leverage — involves substantial risk, including the risk of total loss. You are solely responsible for your decisions and outcomes.
ZeroDegen Mega Pro Pack v2═══════════════════════════════════════════════════════════════════════════════
ZERODEGEN MEGA PRO PACK v2 — Multi-Mode Trading System
═══════════════════════════════════════════════════════════════════════════════
Professional trading indicator with 11 modes for crypto markets. Clear BUY/SELL signals, real-time market analysis, and institutional-grade filters.
🎯 WHAT IT DOES
Analyzes price action using multi-factor confirmation:
- EMA crossovers (9/21) for trend direction
- RSI momentum filtering
- ADX trend strength validation
- Volume confirmation
- Higher timeframe bias (1H trend filter)
- Institutional concepts: Liquidity sweeps, Fair Value Gaps
Generates clear BUY and SELL signals directly on your chart with a real-time status panel showing all market conditions at a glance.
📊 11 TRADING MODES
SCALP (15m): Standard, Aggressive, Conservative
TREND (1H-4H): Standard, Cloud, Institutional
INSTITUTIONAL: Liquidity Engine
MIXED: Pro, Reversal, Auto Engine, Automation + Confidence
Switch modes with one click to match market conditions.
⚡ KEY FEATURES
✓ Clear visual BUY/SELL/EXIT signals
✓ Real-time status panel with all indicators
✓ Smart filters (Volume, ADX, ATR, Range)
✓ HTF Bias display (1H trend direction)
✓ Institutional Confidence score
✓ Works on any crypto pair
✓ TradingView alert-ready
📈 RECOMMENDED USAGE
Timeframes: 15m (scalp), 1H (swing), 4H (trend)
Markets: BTC, ETH, SOL, and other liquid crypto pairs
🔐 HOW TO GET ACCESS
Visit: xeroc00l.org
- Monthly: $59/mo
- Quarterly: $149 (save 15%)
- Lifetime: $497 (one-time)
After payment, send your TradingView username to zerocool@xeroc00l.org — access granted within 24 hours.
🚀 COMING SOON
We're actively developing additional features including bot integration, automated execution, and a private trading community. Subscribe now and get access to all future updates.
Learn more: xeroc00l.org
⚠️ LEGAL DISCLAIMER
This indicator is provided for educational and entertainment purposes only. It is not financial advice and should not be construed as a recommendation to buy, sell, or hold any cryptocurrency or financial instrument.
Trading cryptocurrencies and leveraged products involves substantial risk of loss and is not suitable for all investors. Past performance is not indicative of future results. You should not trade with money you cannot afford to lose.
The creators of ZeroDegen are not licensed financial advisors, brokers, or dealers. By using this indicator, you acknowledge that all trading decisions are your own responsibility and you agree that ZeroDegen and its creators are not liable for any losses incurred.
Always do your own research and consider consulting a licensed financial professional before making investment decisions.
© 2025 ZeroDegen | For entertainment purposes only
CCI Standard DeviationCCI Standard Deviation – Asymmetric Volatility-Adjusted Trend Filter (CCI SD)
The Commodity Channel Index (CCI), created by Donald Lambert in 1980, measures how far the typical price deviates from its statistical average to identify cyclical momentum and trend strength.
The standard formula is:
CCI = (Typical Price − SMA(Typical Price, n)) / (0.015 × Mean Deviation)
where Typical Price = (High + Low + Close)/3.
CCI is unbounded and centered around zero: sustained readings above zero indicate bullish momentum, below zero bearish. Classic interpretations often use zero-line crosses or fixed levels (±100, ±200, ±250), but these can be unreliable when CCI volatility changes across market regimes.
This indicator was developed to create a more disciplined trend-following tool that aligns with my core risk principle: “always protect to the downside.”
Starting from the standard CCI zero-line concept for trend direction, I experimented with standard deviation bands to make the oscillator volatility-adjusted. I then applied deliberate asymmetry: requiring the lower 1σ envelope (CCI − stdev) to cross above a positive threshold for bullish confirmation (high-probability entry only in robust trends), while exiting immediately on any raw CCI weakness below a negative threshold (quick downside protection). User inputs for both thresholds were added to allow fine-tuning and adaptability across different assets and timeframes.
An optional DEMA-smoothed version of the lower envelope provides additional clarity when desired.
Extreme zones
raw CCI ±240 and lower envelope > 200 or < –200 - are highlighted with background shading to flag rare acceleration or capitulation phases.
How it works
Standard CCI calculated on typical price (default length 38).
Rolling standard deviation of the CCI itself (default length 13) measures the oscillator’s recent volatility.
Lower envelope = CCI − stdev (dn).
Optional DEMA smoothing (default length 12) can be toggled.
Trend logic:
Bullish regime only when lower envelope
→ Long Threshold (default +10)
→ statistical proof of strength
Bearish/neutral immediately when raw CCI
→ Short Threshold (default –25)
→ fast downside protection
Origin and development
The indicator emerged from wanting a cleaner, more reliable CCI for trend direction. After testing volatility-adjusted versions, the asymmetric design proved superior:
it enters only high-conviction uptrends and exits rapidly on weakness, significantly reducing whipsaws while preserving trend capture.
Parameters were optimized through extensive backtests on major assets (BTC, ETH, SOL and many more Cryptos; Magnificent 7 stocks, QQQ, SPX, gold).
The defaults were selected for the best average Sortino ratio and lowest maximum drawdown across this broad universe, ensuring robustness and avoiding single-asset overfitting.
How to use it
Green triangle below bar
→ lower envelope crosses above Long Threshold
→ high-conviction bullish trend confirmed
→ enter or add to longs
Magenta triangle above bar
→ CCI crosses below Short Threshold
→ exit longs or go cash/short
While lower envelope remains above Long Threshold
→ hold bullish positions
Extreme background shading (dn >200 or CCI ±240)
→ rare high-attention zones (potential acceleration or exhaustion)
Recommended defaults
CCI length: 38
SD length: 13
Long threshold: +10
Short threshold: –25
Optional MA length: 12 (DEMA of lower envelope)
All visual elements (bar coloring, signals, background, smoothed line) are toggleable for personal preference.
This indicator is designed as a trend-strength and risk-management filter and is not intended as a standalone trading system.
Disclaimer:
This is not financial advice. Backtests are based on past results and are not indicative of future performance.
0ABCBuy and Sell signals by 2nd Entry strategy. It's not ready yet. But, we still can use it. I will add more things in the future hoping to make a profitable strategy that work in low timeframe Crypto markets. We are using multiple RSI for filtering.
Trinity Multi-Timeframe CCITrinity Multi-Timeframe CCI Indicator
This Pine Script indicator is a powerful **multi-timeframe Commodity Channel Index (MTF CCI)** tool that displays three CCI lines on a single pane:
- **Current timeframe** (whatever chart you're viewing, e.g., 1h, 15m, etc.)
- **4-hour timeframe**
- **Daily timeframe**
All three use the same CCI length (default 20, adjustable) and are fully customizable—you can enable/disable each line, change its timeframe, color, and thickness. Horizontal levels at 0 (dashed white by default), +100 (red), and -100 (green) are also included and fully editable.
### Core Functionality & Visual Signals
The standout feature is the **dynamic coloring of the current timeframe CCI line**:
- **Green**: Strong **bullish alignment**. This occurs when **all three CCIs are above the zero line** AND the current timeframe CCI is the **highest** of the three (leading the move upward with higher-timeframe confirmation).
- **Red**: Strong **bearish alignment**. This occurs when **all three CCIs are below the zero line** AND the current timeframe CCI is the **lowest** of the three (leading the move downward with higher-timeframe confirmation).
- **Yellow**: Neutral or no clear alignment (default state when the above conditions aren't met).
An optional light background shading (green or red) highlights when the indicator is in a bullish or bearish state.
Small triangle markers appear on the pane when a new bullish or bearish alignment forms, and built-in alerts notify you of new signals or when a signal ends. These are editable to enable or disable.
### How Traders Can Use It
This indicator helps identify **high-probability trend continuations or reversals** by combining momentum (CCI) across multiple timeframes with alignment confirmation:
- **Trend-following entries**: A green current line (especially with a fresh alert) suggests strong upward momentum backed by higher timeframes—ideal for long entries or adding to positions in an uptrend.
- **Bearish entries/short setups**: A red current line signals strong downward momentum confirmed across timeframes—good for short entries or exiting longs.
- **Confluence filter**: Use it as a filter for other strategies. Only take trades in the direction of the alignment (e.g., only long if current line is green).
- **Early warning of weakness**: When the current line turns yellow after being green/red, it often signals the trend is losing multi-timeframe support—useful for tightening stops or taking partial profits.
In essence, it visually answers the question: “Is the short-term momentum not only strong, but also aligned with and leading the medium- and long-term momentum?” When the answer is yes (green or red), it highlights moments of **multi-timeframe confluence**—some of the most reliable setups in technical trading.
The alerts make it practical for active traders: you get notified the moment a strong aligned signal appears, without needing to watch the chart constantly.
It's clean, highly customizable, and focuses on one clear concept—**multi-timeframe CCI leadership**—making it excellent for trend, swing, and even intraday traders looking for higher-timeframe confirmation.
Long-term KST (Know Sure Thing)Description
Long-term Know Sure Thing (KST) oscillator, specifically adapted for non-24h markets such as stocks, indices, ETFs and futures.
This version correctly scales the weekly ROC periods based on the actual trading week length and daily session duration of the instrument — making it accurate across different asset classes (European indices, US equities, crypto, etc.).
Key features:
• Fully customizable trading week (5 days for most stock markets, 7 days for crypto/24h markets)
• Customizable daily session length (8.5h for FTSE MIB/DAX, 6.5h for US equities, 24h for crypto/forex)
• Automatically adjusts bar count per week on any chart timeframe (including Weekly)
• Classic Martin Pring KST parameters (10/13/15/20 ROC weeks, 10/13/15/20 SMA weeks, 1-2-3-4 weighting)
• Includes signal line (SMA of KST) and visual fill between KST and signal (green/red)
What is the Long-term KST used for?
The KST (Know Sure Thing) is a momentum oscillator created by Martin Pring to detect major trend changes, confirm the primary trend direction, and identify significant reversals in medium- to long-term cycles (weeks to months).
Main practical uses:
• Major trend reversals: KST crossing above/below signal line
• Primary trend confirmation: KST above/below zero line
• Classic divergences: Price vs KST divergences often precede important tops/bottoms
• Cycle identification: Helps spot the end of multi-month corrections or the start of new bull/bear phases
• Trend-following filter: Stay long when KST > 0 and rising, stay short when KST < 0 and falling
It is especially powerful on major indices (FTSE MIB, DAX, SPX, NDX, RUT, CAC40, Nikkei…) because it captures institutional money flow with fewer, higher-quality signals compared to faster oscillators.
Best used on:
• Daily, 4H, Weekly charts
• European indices (FTSE MIB, DAX, IBEX…)
• US indices/ETFs (SPX, NDX, RUT…)
• Crypto pairs (set week_length=7, session_duration=24h)
Enjoy trading the big-picture momentum!
QMF- Market Structure & Signal Suite [BullByte]QUANTUM MOMENTUM FUSION - Market Structure and Signal Suite
OVERVIEW
Quantum Momentum Fusion is a comprehensive market analysis framework built around a multi-dimensional momentum oscillator. This indicator was designed to give traders a complete analytical workspace in a single tool, combining momentum measurement, market structure identification, trendline analysis, divergence detection, and multi-timeframe context into one unified system.
The core philosophy behind QMF is that successful trading decisions come from understanding multiple aspects of market behavior simultaneously, not from relying on any single indicator or signal. The oscillator serves as the analytical foundation, and every other component builds upon it to create a complete picture of current market conditions.
This description will walk through each component of the indicator, explaining what it measures, why that information matters, and how to interpret what you see on the chart. Whether you are an experienced trader familiar with oscillator analysis or newer to technical indicators, each section aims to make the concepts accessible and practical.
THE QUANTUM ENGINE: UNDERSTANDING THE CORE OSCILLATOR (why its original and not a mashup)
At the heart of this indicator is the Quantum Momentum Fusion oscillator, displayed in its own pane below the price chart. Unlike traditional oscillators that measure a single aspect of price behavior, the QMF oscillator synthesizes four distinct market dimensions into one unified reading.
WHAT IS AN OSCILLATOR
For those less familiar with the term, an oscillator is a technical indicator that fluctuates between defined boundaries, typically showing whether an asset is experiencing strong buying pressure, strong selling pressure, or neutral conditions. The QMF oscillator moves between 0 and 100, with 50 representing the neutral midpoint.
When the oscillator is high (above 70), it suggests the market has experienced significant upward momentum and may be approaching exhaustion. When low (below 30), it suggests the market has experienced significant downward momentum and may be due for a bounce. The space between these extremes represents normal market fluctuation.
THE FOUR DIMENSIONS
What makes the QMF oscillator different from standard momentum indicators is that it combines four separate measurements into its calculation. Each dimension captures a different aspect of market behavior:
VELOCITY DIMENSION
This measures how quickly momentum itself is changing. Think of it like acceleration in a car. Knowing the car is moving forward (direction) is useful, but knowing whether the driver is pressing the accelerator or the brake (acceleration) tells you what is likely to happen next. The velocity dimension calculates the rate of change of the rate of change, providing early warning when momentum is about to shift direction. In practical terms, this can show momentum weakening before price actually reverses.
Why it matters: Price can continue in one direction for a while even after the underlying momentum starts to fade. By measuring acceleration, you can identify potential turning points earlier than with simple momentum indicators.
How it appears: This dimension is calculated internally and combined with the others. You do not see it separately, but its effect shows in the oscillator responding earlier to momentum shifts.
VOLUME DIMENSION
This measures price movement weighted by trading volume. A price move accompanied by high volume has different significance than the same price move on low volume. High volume suggests conviction and participation from larger traders. Low volume suggests the move may lack follow-through.
The volume dimension multiplies price change by a volume ratio (current volume compared to average volume), giving greater weight to moves that have volume confirmation behind them.
Why it matters: Volume often precedes price. Strong volume on a move suggests institutional participation and increases the probability that the move will continue. Weak volume on a move suggests it may be easily reversed.
How it appears: Moves with strong volume conviction will push the oscillator more definitively, while low-volume moves will have muted effect on the reading.
VOLATILITY DIMENSION
This normalizes price movement against the current volatility environment. Markets go through periods of high volatility (large price swings) and low volatility (small price swings). A 1% move during a low volatility period is more significant than a 1% move during a high volatility period.
The volatility dimension divides price change by Average True Range (ATR), which measures typical price range. This tells you whether current movement is significant relative to what is normal for this market right now.
Why it matters: Without volatility normalization, the oscillator would react the same way to all price moves regardless of context. By adjusting for volatility, the oscillator identifies moves that are genuinely significant versus normal noise within the current regime.
How it appears: During quiet markets, smaller price moves can still register as significant if they exceed normal volatility. During volatile markets, the oscillator will not overreact to moves that are within expected range.
SESSION DIMENSION
This tracks where price is positioned relative to the session Volume Weighted Average Price (VWAP). VWAP represents the average price at which trading has occurred during the session, weighted by volume. Institutional traders often use VWAP as a benchmark for fair value.
When price is consistently above VWAP, it suggests buyers are willing to pay above average prices, indicating accumulation. When price is consistently below VWAP, it suggests sellers are accepting below average prices, indicating distribution.
Why it matters: VWAP positioning provides insight into whether institutional traders are likely accumulating or distributing. Price repeatedly returning to and bouncing from VWAP can indicate support, while price repeatedly failing at VWAP can indicate resistance.
How it appears: The session dimension contributes bullish readings when price maintains above VWAP and bearish readings when price maintains below VWAP.
ADAPTIVE WEIGHTING
The four dimensions are combined using configurable weights, and the system can operate in Adaptive Mode. When Adaptive Mode is enabled, the indicator automatically adjusts its sensitivity based on the current volatility regime. During high volatility periods, sensitivity increases to capture larger moves. During low volatility periods, sensitivity decreases to filter out noise.
This means the oscillator adapts to changing market conditions without requiring manual adjustment.
READING THE OSCILLATOR: DISPLAY MODES AND ZONES
The QMF oscillator can be displayed in four different visual formats. Each shows the same underlying data but presents it differently based on trader preference.
ENERGY CANDLES
This mode displays the oscillator as candlestick-style candles. Just as price candles show open, high, low, and close for price, energy candles show these values for the QMF oscillator.
Green candles indicate the oscillator closed higher than it opened (bullish momentum). Red candles indicate the oscillator closed lower than it opened (bearish momentum). The body size shows how much the oscillator moved during the period. Larger bodies indicate stronger momentum conviction.
This format is useful for traders who are comfortable reading candlestick patterns and want to apply similar visual analysis to the oscillator.
QMF LINE
This mode displays the oscillator as a traditional line chart with a signal line overlay. The main QMF line shows current momentum. The signal line is a smoothed average of the QMF that helps identify direction changes.
When the QMF line is above the signal line, momentum is bullish. When below, momentum is bearish. Crossovers between the two lines can indicate momentum shifts.
This format is familiar to traders who use indicators like MACD and prefer clean line-based visualization.
IMPULSE BARS
This mode displays the oscillator as a histogram centered on the 50 midline. Bars above 50 indicate bullish momentum, bars below 50 indicate bearish momentum. Bar height shows momentum strength.
The color intensity changes based on momentum direction. Bars that are increasing in the bullish direction show brighter color. Bars that are decreasing show muted color. This makes it easy to see momentum acceleration and deceleration at a glance.
HEIKIN FLOW
This mode applies Heikin-Ashi smoothing to the energy candles. Heikin-Ashi is a Japanese technique that averages price data to create smoother trends with fewer reversals.
The result is cleaner visual trends that are easier to follow, though with slightly more lag than standard energy candles. This format is useful for identifying sustained momentum moves without getting distracted by minor fluctuations.
OSCILLATOR ZONES
Regardless of display mode, the oscillator pane includes horizontal reference lines that define important zones:
Midline at 50: The neutral point. When the oscillator is above 50, overall momentum is bullish. When below 50, overall momentum is bearish.
Overbought level at 70: When the oscillator crosses above this level, the market is showing strong bullish momentum. However, this also means prices have risen significantly and bearish reversal probability increases the longer the oscillator stays elevated.
Oversold level at 30: When the oscillator crosses below this level, the market is showing strong bearish momentum. However, this also means prices have fallen significantly and bullish reversal probability increases.
Extreme overbought at 85: Maximum bullish exhaustion. At this level, almost all short-term buying pressure has been expended. Reversal probability is high.
Extreme oversold at 15: Maximum bearish exhaustion. At this level, almost all short-term selling pressure has been expended. Reversal probability is high.
Understanding these zones helps you assess the current market condition before looking at any other indicator components.
MARKET STRUCTURE: DYNAMIC SUPPORT AND RESISTANCE
The second major component of the indicator is market structure analysis through dynamic support and resistance levels. Unlike price-based support and resistance, these levels are calculated directly on the oscillator.
WHAT ARE OSCILLATOR-BASED S/R LEVELS
When the QMF oscillator reaches a high point and then reverses lower, that high point becomes a resistance level on the oscillator. When the oscillator reaches a low point and then reverses higher, that low point becomes a support level.
These levels represent momentum thresholds that the market has previously found difficult to exceed. They answer the question: At what momentum reading has the oscillator historically reversed?
WHY THIS MATTERS
Oscillator support and resistance provides different information than price support and resistance. Price S/R tells you where buyers and sellers have previously entered the market. Oscillator S/R tells you what level of momentum the market has been able to sustain.
If the oscillator approaches its resistance level, it suggests momentum is reaching the upper bounds of what has been achievable recently. Either momentum will break through (indicating unusually strong conditions) or it will reverse (indicating normal mean reversion).
Similarly, if the oscillator approaches support, it suggests momentum is reaching exhaustion levels that have previously triggered bounces.
HOW IT APPEARS ON THE CHART
Resistance is displayed as a horizontal red line with a RES label on the oscillator pane. Support is displayed as a horizontal cyan line with a SUP label. These lines update dynamically as new pivots form.
When the oscillator breaks through these levels, markers appear:
R with up arrow: Resistance level broken, indicating unusually strong bullish momentum
S with down arrow: Support level broken, indicating unusually strong bearish momentum
R with checkmark: Resistance held, price rejected at this level
S with checkmark: Support held, price bounced from this level
The dashboard also shows current S/R status: whether the oscillator recently broke resistance, broke support, is currently at resistance, is currently at support, or is in clear space between levels.
AUTOMATED TRENDLINES: MOMENTUM TREND STRUCTURE
The third major component is automated trendline detection on the oscillator. This identifies trending behavior in momentum itself, separate from price trends.
WHAT ARE OSCILLATOR TRENDLINES
Just as you can draw trendlines on a price chart connecting swing lows (uptrend) or swing highs (downtrend), the indicator draws trendlines on the oscillator connecting pivot points.
Support trendlines connect oscillator pivot lows and project forward with a flat or rising slope. These show upward trending momentum where each pullback finds support at a higher level.
Resistance trendlines connect oscillator pivot highs and project forward with a flat or falling slope. These show downward trending momentum where each rally faces resistance at a lower level.
WHY THIS MATTERS
Price trends and momentum trends do not always align. Price can continue making higher highs while momentum makes lower highs, a condition called bearish divergence. Momentum trendlines help visualize this behavior.
When momentum is making higher lows (rising support trendline), it suggests underlying strength even if price is consolidating. When momentum is making lower highs (falling resistance trendline), it suggests underlying weakness even if price is holding.
Breaks of these trendlines often precede price moves. If a falling momentum resistance trendline breaks upward, it suggests bearish pressure is releasing and bullish momentum may follow. If a rising momentum support trendline breaks downward, it suggests bullish pressure is failing and bearish momentum may follow.
HOW IT APPEARS ON THE CHART
Support trendlines appear in blue/cyan, resistance trendlines appear in pink/magenta. Lines extend forward from the most recent pivot point to show projected levels.
Small circle markers can optionally appear at each pivot point used to construct the trendlines, helping you verify the anchor points.
When the oscillator breaks through a trendline, markers appear:
TL with up arrow: Resistance trendline broken upward (bullish breakout)
TL with down arrow: Support trendline broken downward (bearish breakdown)
Trendline strength is calculated based on three factors: how many pivot points validate the line, how recently it formed, and the angle of the slope. Stronger trendlines have more touches, formed recently, and have moderate slopes. You can filter trendlines by strength to show only the most significant ones.
Optional trendline zones can display a shaded area around each trendline rather than just a single line, showing a zone of influence rather than a precise level.
DIVERGENCE: WHEN PRICE AND MOMENTUM DISAGREE
The fourth major component is divergence detection, which identifies discrepancies between price action and oscillator behavior.
WHAT IS DIVERGENCE
Divergence occurs when price makes a new high or low, but the oscillator fails to confirm it. This disagreement between price and momentum often precedes reversals.
There are four types of divergence:
REGULAR BULLISH DIVERGENCE
Price makes a lower low (new low point below the previous low), but the oscillator makes a higher low (its low point is above its previous low). This suggests that despite price going lower, selling momentum is actually weakening. The implication is that sellers are losing conviction and a bounce or reversal may be approaching.
Visual example: Imagine price drops from 100 to 95, bounces to 97, then drops again to 93. At the same time, the oscillator drops to 25, bounces to 35, then drops only to 30. Price made a lower low (93 vs 95) but the oscillator made a higher low (30 vs 25). This is regular bullish divergence.
REGULAR BEARISH DIVERGENCE
Price makes a higher high (new high point above the previous high), but the oscillator makes a lower high (its high point is below its previous high). This suggests that despite price going higher, buying momentum is actually weakening. The implication is that buyers are losing conviction and a pullback or reversal may be approaching.
HIDDEN BULLISH DIVERGENCE
Price makes a higher low (its low point is above its previous low), but the oscillator makes a lower low (new low below its previous low). This occurs during uptrends and suggests the trend will continue. Price is holding higher but momentum briefly dipped further, indicating a temporary pullback within a larger uptrend.
HIDDEN BEARISH DIVERGENCE
Price makes a lower high (its high point is below its previous high), but the oscillator makes a higher high (new high above its previous high). This occurs during downtrends and suggests the trend will continue. Price is staying lower but momentum briefly spiked higher, indicating a temporary bounce within a larger downtrend.
Regular divergence suggests reversal. Hidden divergence suggests continuation.
HOW IT APPEARS ON THE CHART
When divergence is confirmed, labels appear on the oscillator:
BULL DIV: Regular bullish divergence confirmed
BEAR DIV: Regular bearish divergence confirmed
H-BULL: Hidden bullish divergence confirmed
H-BEAR: Hidden bearish divergence confirmed
Dotted lines connect the pivot points on the oscillator to show the divergence pattern. Regular divergence uses solid colored lines, hidden divergence uses dashed lines.
The dashboard shows divergence status in real-time:
CHECKING BULL: A potential bullish divergence pattern is forming but not yet confirmed
CHECKING BEAR: A potential bearish divergence pattern is forming but not yet confirmed
BULL CONFIRMED: Bullish divergence has been validated
BEAR CONFIRMED: Bearish divergence has been validated
NONE: No divergence currently active
Divergence strength is calculated from the magnitude of the oscillator discrepancy. Only divergences meeting the minimum strength threshold are displayed to filter out minor, less significant patterns.
FLOW RIBBONS: VISUALIZING MOMENTUM ALIGNMENT
The fifth major component is the Flow Ribbon system, which displays multiple moving averages of the QMF oscillator to visualize momentum trend and alignment.
WHAT ARE FLOW RIBBONS
Flow ribbons consist of three Exponential Moving Averages (EMAs) applied to the QMF oscillator values. Think of them as smoothed versions of the oscillator at different speeds:
Fast Ribbon : Responds quickly to momentum changes, showing recent momentum direction
Medium Ribbon: Balances responsiveness with smoothness, showing intermediate momentum
Slow Ribbon: Moves slowly and shows longer-term momentum context
When these three lines are plotted together with filled area between them, they create a visual ribbon that expands and contracts based on momentum conditions.
WHY RIBBON ALIGNMENT MATTERS
The relationship between these three averages tells you about momentum structure:
BULLISH ALIGNMENT (Fast above Medium above Slow)
When the ribbons are stacked with fast on top, medium in middle, and slow on bottom, momentum is aligned bullishly across multiple timeframes. Short-term momentum leads, with medium and long-term momentum confirming. This is the strongest bullish configuration.
BEARISH ALIGNMENT (Fast below Medium below Slow)
When the ribbons are inverted with fast on bottom, medium in middle, and slow on top, momentum is aligned bearishly across multiple timeframes. Short-term momentum leads downward, with medium and long-term momentum confirming. This is the strongest bearish configuration.
MIXED/TRANSITIONING
When the ribbons are not properly stacked, momentum is in transition. This often occurs during consolidation, trend changes, or choppy conditions. Trading during mixed ribbon states carries higher uncertainty.
RIBBON EXPANSION AND CONTRACTION
Beyond alignment, the distance between the fast and slow ribbon provides additional information:
EXPANDING RIBBON
When the gap between fast and slow ribbon is increasing, momentum is accelerating. In a bullish alignment with expansion, upward momentum is strengthening. In a bearish alignment with expansion, downward momentum is strengthening. Expansion confirms trend conviction.
CONTRACTING RIBBON
When the gap between fast and slow ribbon is decreasing, momentum is decelerating. The current trend may be losing steam. Contraction often precedes consolidation or reversal. It serves as an early warning that the current move may be exhausting.
HOW IT APPEARS ON THE CHART
The fast ribbon appears as a thicker line, the slow ribbon as a thinner line. The area between them fills with color:
Green fill: Bullish ribbon alignment
Red fill: Bearish ribbon alignment
Gray fill: Neutral or transitioning state
The dashboard shows ribbon state as BULL, BEAR, or NEUT, and indicates whether ribbons are expanding (EXP) or contracting (CON).
Ribbon crossovers occur when the fast ribbon crosses the slow ribbon, signaling potential momentum shifts. These crossovers are confirmed only after the bar closes to prevent false signals from intrabar movement.
REVERSAL CLOUDS: PROBABILITY ZONES
The sixth major component is the Reversal Cloud system, which visualizes zones where momentum reversals have elevated probability.
WHAT ARE REVERSAL CLOUDS
Reversal clouds are shaded areas around the QMF oscillator that indicate probability zones for mean reversion. They answer the question: How far from average has momentum extended, and what is the probability it will revert?
When the oscillator moves far from its normal range, it creates stretched conditions. Like a rubber band pulled to its limit, the probability increases that it will snap back toward center. Reversal clouds visualize these stretched conditions.
CLOUD CALCULATION METHODS
Five different calculation methods are available, each with different characteristics:
DYNAMIC BOLLINGER
Uses statistical standard deviation to create bands that adapt to oscillator volatility. When the oscillator is volatile, bands widen. When the oscillator is calm, bands narrow. This method identifies moves that are statistically significant relative to recent oscillator behavior.
GOLDEN RATIO
Applies Fibonacci proportions (0.214 and 0.786) to the oscillator range. These ratios appear throughout nature and markets. Some traders believe these proportions have psychological significance in market behavior.
ADAPTIVE HALO
Scales cloud width based on price ATR rather than oscillator volatility. This connects cloud width to actual price volatility, making the clouds wider during volatile price action and narrower during calm periods.
VOLATILITY SQUEEZE
Uses short-term standard deviation to create bands that contract during low volatility and expand during high volatility. This method is particularly useful for identifying potential breakout conditions when volatility is compressed.
ICHIMOKU RSI
Applies concepts from Ichimoku Kinko Hyo equilibrium theory to create balanced zones. Uses multiple lookback periods to establish equilibrium levels where the oscillator tends to find balance.
HOW TO READ THE CLOUDS
The oscillator moves through the cloud area as momentum fluctuates:
When QMF enters the upper cloud region, it indicates extended bullish momentum. The higher into the cloud, the greater the probability of bearish reversal through mean reversion.
When QMF enters the lower cloud region, it indicates extended bearish momentum. The deeper into the cloud, the greater the probability of bullish reversal through mean reversion.
Cloud opacity adjusts based on reversal probability. More opaque coloring indicates higher reversal probability. Subtle coloring indicates lower reversal probability.
IMPORTANT UNDERSTANDING
Clouds show probability zones, not certainty. Price can remain in extreme zones longer than expected, particularly during strong trends. Clouds are most useful when combined with other components like divergence, S/R breaks, and ribbon alignment rather than used in isolation.
MULTI-TIMEFRAME ANALYSIS: SEEING THE BIGGER PICTURE
The seventh major component is Multi-Timeframe (MTF) analysis, which calculates QMF values across multiple timeframes to assess momentum alignment at different time perspectives.
WHY MULTIPLE TIMEFRAMES MATTER
The timeframe you trade on shows only one perspective of market momentum. A bullish signal on a 15-minute chart may occur within a larger bearish trend on the 4-hour chart. Understanding momentum context from higher timeframes helps you assess whether you are trading with or against the larger flow.
When multiple timeframes align in the same direction, the probability of a successful trade increases. When timeframes conflict, the situation is more uncertain and requires additional caution.
HOW MTF ANALYSIS WORKS
The indicator calculates the full QMF oscillator independently on four configurable timeframes. By default, these are set to 5-minute, 15-minute, 60-minute (1 hour), and 240-minute (4 hour), but you can configure them to any timeframes that suit your trading style.
For each timeframe, the system determines the current momentum bias:
OB - Overbought: QMF above 70, indicating extended bullish momentum that may reverse
B+ - Strong Bullish: QMF above 55 and above its signal line, indicating solid bullish momentum
B - Bullish: QMF above its signal line, indicating mild bullish momentum
N - Neutral: QMF near 50 with no clear direction
S - Bearish: QMF below its signal line, indicating mild bearish momentum
S+ - Strong Bearish: QMF below 45 and below its signal line, indicating solid bearish momentum
OS - Oversold: QMF below 30, indicating extended bearish momentum that may reverse
ALIGNMENT SCORING
The dashboard displays an alignment score showing how many of the four timeframes agree with each directional bias. This appears as a fraction like 3/4 or 2/4.
4/4 Bullish: All four timeframes show bullish readings - maximum bullish alignment
3/4 Bullish: Three timeframes bullish, one diverging - strong bullish alignment
2/4: Split between bullish and bearish - no clear alignment, use caution
3/4 Bearish: Three timeframes bearish, one diverging - strong bearish alignment
4/4 Bearish: All four timeframes show bearish readings - maximum bearish alignment
Higher alignment scores indicate more reliable momentum context. Trading with 3/4 or 4/4 alignment in your favor provides better odds than trading against alignment or during mixed conditions.
NON-REPAINTING MTF DATA
The multi-timeframe data uses proper request.security settings with lookahead disabled and gaps handled correctly. This ensures the MTF readings you see in backtesting match what you would see in real-time trading, with no future data leakage that could create misleading results.
LIVE MOMENTUM SCORING: REAL-TIME MARKET ASSESSMENT
The eighth major component is the Live Momentum Scoring system, which provides continuous real-time feedback on current market conditions.
WHAT IS LIVE MOMENTUM SCORING
Unlike signals which only appear when specific patterns complete, live momentum scores update every bar to show the current balance between bullish and bearish factors. This answers the question: Right now, how do the bullish factors compare to the bearish factors?
The system evaluates six categories for each direction and adds up points:
ZONE POSITION (0-25 points)
Rewards positioning in favorable oscillator zones. Deep oversold positioning adds points to the bullish score. Deep overbought positioning adds points to the bearish score. Extreme zones receive maximum points, moderate zones receive partial points, neutral zones receive zero.
DIVERGENCE (0-20 points)
Rewards active or forming divergence patterns. Confirmed divergence receives full points. Forming (checking) divergence receives partial credit. No divergence receives zero points.
TREND ALIGNMENT (0-20 points)
Rewards proper EMA stacking and trend MA positioning. Full bullish EMA stack (fast above medium above slow above trend MA) receives maximum bullish points. Partial alignment receives partial points.
MOMENTUM DIRECTION (0-15 points)
Rewards current momentum direction and acceleration. Accelerating momentum in the favorable direction receives maximum points. Simple directional momentum receives moderate points. Histogram turning (early reversal signs) receives partial points.
RIBBON STATE (0-10 points)
Rewards proper ribbon alignment and expansion. Aligned and expanding ribbons receive maximum points. Aligned but contracting ribbons receive moderate points. Mixed ribbons receive zero points.
MULTI-TIMEFRAME (0-10 points)
Rewards higher timeframe alignment. 4/4 alignment receives maximum points, scaling down as alignment decreases.
READING THE LIVE SCORES
The dashboard displays current scores for both directions:
BULL: Shows bullish score as percentage (0-100) and letter grade (A through D)
BEAR: Shows bearish score as percentage (0-100) and letter grade (A through D)
BIAS: Shows which direction currently dominates (BULL, BEAR, or NEUTRAL if close)
Grade thresholds:
A Grade: 70% or higher - Strong momentum factors aligned
B Grade: 50-69% - Moderate momentum factors present
C Grade: 30-49% - Some momentum factors but incomplete
D Grade: Below 30% - Weak or missing momentum factors
The dominant bias shows which direction currently has stronger factors. When one side leads by more than 10 points, it shows that direction. Otherwise, it shows NEUTRAL indicating balanced or mixed conditions.
WHY LIVE SCORING MATTERS
Live scores help you understand current market conditions even when no signal has fired. You can see momentum building or fading in real-time. A rising bullish score suggests conditions are improving for potential long opportunities. A rising bearish score suggests conditions are deteriorating.
This continuous feedback helps with:
- Anticipating potential signals before they fire
- Assessing whether to act on signals that do fire
- Understanding why a signal did or did not appear
- Monitoring open positions for changing conditions
THE DASHBOARD: YOUR ANALYSIS CONTROL CENTER
The dashboard provides a comprehensive real-time summary of all indicator components in one organized table. It displays on the price chart using force overlay so it remains visible regardless of which pane you are focused on.
DASHBOARD LAYOUT
The dashboard can be configured in three detail levels:
COMPACT MODE
Shows only essential information: QMF value, zone status, S/R status, and volume. Uses minimal screen space for traders who want the indicator to remain unobtrusive.
STANDARD MODE
Shows balanced detail including QMF values, zone status, last signal information, grade statistics, divergence status, S/R and volume status, live momentum scores, and MTF panel. Suitable for most traders.
FULL MODE
Shows maximum detail including everything in Standard mode plus EMA structure, ribbon state, volatility regime, signal statistics breakdown, and trendline counts. For traders who want complete information access.
DASHBOARD ROWS EXPLAINED
Row 1 - HEADER
Shows indicator name for identification.
Row 2 - QMF VALUES
Displays three values:
- QMF with directional arrow showing current oscillator value and whether it is rising, falling, or unchanged
- SIG showing the signal line value
- Histogram value with plus or minus sign showing the difference between QMF and signal line
Row 3 - PROGRESS BAR
Visual representation of oscillator position from 0 to 100 using text characters. Provides quick visual reference without needing to look at the oscillator pane.
Row 4 - ZONE STATUS
Text classification of current zone with color coding:
- EXTREME OB (red): Oscillator at or above extreme overbought level
- OVERBOUGHT (light red): Oscillator in overbought zone
- BULLISH (light green): Oscillator above 55 but below overbought
- NEUTRAL (gray): Oscillator between 45 and 55
- BEARISH (light red): Oscillator below 45 but above oversold
- OVERSOLD (light blue): Oscillator in oversold zone
- EXTREME OS (blue): Oscillator at or below extreme oversold level
Row 5 - LAST SIGNAL (Standard and Full mode)
Shows information about the most recent signal:
- Direction and grade (LONG A, SHORT B, etc.)
- Bars ago since signal fired
- Entry price when signal fired
- Current profit/loss from that price level
This helps track performance of recent signals and manage any open positions based on them.
Row 6 - GRADE STATISTICS (Standard and Full mode)
Running count of signals generated:
- A: Count of Grade A signals
- B: Count of Grade B signals
- C: Count of Grade C signals
- T: Total signal count
This provides perspective on signal frequency and grade distribution over the visible chart period.
Row 7 - DIVERGENCE STATUS (Standard and Full mode)
Current state of divergence detection:
- CHECKING BULL: Bullish divergence pattern forming, not yet confirmed
- CHECKING BEAR: Bearish divergence pattern forming, not yet confirmed
- BULL CONFIRMED: Bullish divergence validated
- BEAR CONFIRMED: Bearish divergence validated
- NONE: No divergence currently active
Row 8 - S/R AND VOLUME
Two pieces of information:
- S/R status: Shows R BROKEN (resistance broken upward), S BROKEN (support broken downward), AT RES (testing resistance), AT SUP (testing support), or CLEAR (between levels)
- Volume status: Shows HIGH (volume 1.5x or more above average), MID (volume near average), or LOW (volume below average)
Row 9 - LIVE MOMENTUM (Standard and Full mode)
Real-time momentum scoring:
- BULL: Bullish percentage and letter grade
- BEAR: Bearish percentage and letter grade
- Dominant bias indicator
Row 10-11 - MTF PANEL (when enabled, Standard and Full mode)
Multi-timeframe status:
- Top row shows the four timeframe labels
- Bottom row shows the status code for each timeframe (OB, B+, B, N, S, S+, OS)
- Final cell shows alignment score as X/4
FULL MODE ADDITIONAL ROWS
Structure row: Shows EMA stack status (BULL STACK, BEAR STACK, or relationship between fast and slow) and trend MA position (ABOVE MA or BELOW MA)
Stats row: Shows count of long signals, short signals, and active trendlines
Ribbon row: Shows ribbon state (BULL, BEAR, NEUT), expansion status (EXP or CON), and volatility regime (H-VOL for high volatility, L-VOL for low volatility, N-VOL for normal)
DASHBOARD POSITIONING AND SIZING
Position options: Top Left, Top Center, Top Right, Middle Left, Middle Right, Bottom Left, Bottom Center, Bottom Right
Size options: Tiny (minimal space), Small (balanced), Normal (maximum readability)
Choose a position that does not obscure important price action on your chart and a size that balances readability with space efficiency.
HOW SIGNALS EMERGE FROM CONFLUENCE
After understanding all the individual components, it becomes clear how signals are generated. Signals in QMF are not arbitrary triggers based on single conditions. They emerge when multiple independent factors align to create confluence.
THE PATTERN-BASED APPROACH
The signal system uses a hierarchical pattern-based approach. Rather than calculating a score from random factors and labeling it, the system actively hunts for specific predefined pattern combinations.
The system first checks for Grade A patterns. If none are found, it checks for Grade B patterns. If none are found, it checks for Grade C patterns. Each grade represents specific combinations of factors that must be present together.
GRADE A REQUIREMENTS
Grade A patterns require multiple strong factors aligned. Examples of Grade A pattern combinations:
Pattern A1 - Perfect Storm Reversal:
- Extreme zone positioning (deeply oversold or overbought)
- Confirmed regular divergence
- Structural break (resistance broken or support broken or trendline broken)
- Strong volume conviction (1.3x or higher)
- High MTF alignment (3 or more timeframes agreeing)
Pattern A2 - Breakout Conviction:
- Resistance or support broken
- Accelerating momentum in the breakout direction
- Full EMA stack aligned
- Ribbon aligned and expanding
- Strong volume conviction (1.4x or higher)
- Good MTF alignment (2 or more timeframes)
Pattern A3 - Zone Reversal Multi-Confirmation:
- Extreme or standard zone positioning
- Regular or hidden divergence confirmed
- Active bounce from zone
- EMA crossover or MA break in reversal direction
- Good MTF alignment (2 or more timeframes)
- Volume conviction present (1.2x or higher)
All factors in the pattern must be present simultaneously. Missing any single factor disqualifies the Grade A pattern.
GRADE B REQUIREMENTS
Grade B patterns require fewer but still meaningful confirmations. These patterns fire only when no Grade A pattern is detected:
Pattern B1 - Zone with Confirmation:
- Oversold or overbought zone positioning
- Momentum in reversal direction
- Hidden divergence, EMA crossover, or trendline break present
- Minimum MTF alignment met
Pattern B2 - Divergence with Structure:
- Regular or hidden divergence confirmed
- Structural break (S/R or trendline or MA)
- Momentum confirming direction
- Volume at least average
Pattern B3 - Clean Trend Continuation:
- Above or below trend MA
- Ribbon aligned in direction
- Oscillator crossed signal line
- EMA stack complete
GRADE C REQUIREMENTS
Grade C patterns require basic confirmations. These patterns fire only when no Grade A or Grade B pattern is detected:
Pattern C1 - Early Zone Entry:
- Zone positioning or approaching zone
- Momentum in expected direction
- Oscillator or EMA crossover present
Pattern C2 - Momentum Shift:
- Histogram turning in expected direction
- Oscillator crossover confirmed
- Oscillator on expected side of midline
SIGNAL QUALITY CONTROLS
Beyond pattern detection, several quality controls must be satisfied:
COOLDOWN
A minimum number of bars must pass between any two signals. This prevents signal clustering during volatile conditions and ensures each signal represents a distinct opportunity.
DIRECTION ALTERNATION
When enabled, signals must alternate between LONG and SHORT. After a LONG signal, only SHORT signals can fire until direction changes. This prevents multiple consecutive signals in the same direction.
PULLBACK REQUIREMENT
After a signal fires, the oscillator must retrace a minimum percentage before another same-direction signal can fire. This ensures re-entry signals occur after meaningful pullbacks rather than immediately after the first signal.
VOLUME CONFIRMATION (Optional)
When enabled, volume must meet minimum threshold relative to average. This filters out signals during low-volume periods when moves may lack follow-through.
BAR CONFIRMATION
All signals require barstate.isconfirmed, meaning they only fire after the bar closes. This prevents signals from appearing and disappearing during live bar formation, ensuring backtest results match live behavior.
A comprehensive example that combines signal generation logic, grading system, with all elements clearly annotated for easy understanding.
SETTINGS REFERENCE
This section provides a reference for the main configurable settings organized by category.
QUANTUM ENGINE SETTINGS
Sensitivity (5-50): Primary lookback period for momentum calculations. Lower values respond faster but may include more noise. Higher values smooth the oscillator but increase lag. Default 14 balances responsiveness with stability.
Smoothing (1-10): Exponential smoothing applied to final QMF value. Higher values reduce noise, lower values preserve detail. Default 3 provides good noise reduction.
Adaptive Mode: When enabled, automatically adjusts sensitivity based on volatility regime. Increases sensitivity during high volatility, decreases during low volatility.
Dimension Toggles: Enable or disable each of the four dimensions (Velocity, Volume, Volatility, Session) individually. Useful for customizing the oscillator for specific instruments or conditions.
Dimension Weights: Adjust relative contribution of each dimension. Weights are normalized so they do not need to sum to 1.0. Higher weight means that dimension has more influence on the final value.
Signal Length: EMA period for the signal line. Lower values make signal line more responsive, higher values make it smoother.
DISPLAY SETTINGS
Display Mode: Choose between Energy Candles, QMF Line, Impulse Bars, or Heikin Flow visualization.
Candle Glow: Adds luminous glow effect around energy candles based on momentum strength. Visually striking but can impact performance on slower systems.
Glow Layers: Number of glow layers when candle glow is enabled. More layers create smoother gradient but use more resources.
VISUAL SETTINGS
Theme: Choose between Tokyo Night (dark blue with vibrant accents), Dracula (purple-grey with high contrast), or Nord (muted arctic tones). Each theme is designed for extended trading sessions.
Glow Intensity: Controls transparency of glow effects. Lower values create more visible glows, higher values more subtle.
Enable Glow Effects: Master toggle for all glow effects around candles and levels.
REVERSAL CLOUD SETTINGS
Enable Reversal Clouds: Toggle cloud display on or off.
Cloud Style: Choose calculation method (Dynamic Bollinger, Golden Ratio, Adaptive Halo, Volatility Squeeze, Ichimoku RSI).
Cloud Transparency: Higher values make clouds more transparent, lower values more visible.
Cloud Width: Multiplier for cloud width. Higher values create wider reversal zones.
FLOW RIBBON SETTINGS
Enable Ribbons: Toggle ribbon display.
Fast/Medium/Slow Ribbon: Period for each ribbon EMA. Faster periods respond quicker, slower periods show longer-term trend.
DIVERGENCE SETTINGS
Enable Divergence: Toggle divergence detection.
Pivot Sensitivity: Bars required on each side to confirm pivot point. Higher values detect more significant pivots but may miss shorter-term divergences.
Confirmation Bars: Bars to wait after pivot detection before confirming divergence.
Min Strength Pct: Minimum divergence strength percentage to display. Higher values filter out weaker divergences.
Show Lines: Draw connecting lines between divergence pivots.
Min/Max Distance: Range of bars between pivots for valid divergence.
SIGNAL SYSTEM SETTINGS
Enable Signals: Toggle signal generation.
Show Signals: Filter by grade (A Only, A and B, All Grades).
Cooldown Bars: Minimum bars between signals.
Pullback Required Pct: Percentage pullback needed before same-direction signal.
Require Direction Alternation: Force signals to alternate LONG and SHORT.
Fast/Slow EMA: Periods for EMA crossover analysis.
Trend MA: Period for trend-defining moving average.
Min MTF Alignment: Minimum timeframes that must align for higher grades.
Require Volume Confirmation: Make volume threshold mandatory for signals.
Min Volume Ratio: Minimum volume relative to average when required.
TRENDLINE SETTINGS
Enable Trendlines: Toggle automated trendline detection.
Pivot Left/Right: Bars for pivot detection.
Extension Bars: How far to extend lines into future.
Min Touch Points: Minimum pivots to validate line.
Enable Strength Filter: Filter by calculated strength.
Minimum Strength: Threshold for strength filter.
Show Trendline Zones: Display shaded zones around lines.
Zone Width StdDev: Standard deviation multiplier for zone width.
Line Style: Solid, Dashed, or Dotted.
Line Width: Thickness in pixels.
Show Touch Points: Display circle markers at pivots.
Show Strength Labels: Display strength percentage at line end.
SUPPORT RESISTANCE SETTINGS
Enable S/R: Toggle dynamic S/R display.
Pivot Lookback: Period for detecting S/R pivots.
DASHBOARD SETTINGS
Enable Dashboard: Toggle dashboard display.
Position: Screen position (8 options).
Size: Tiny, Small, or Normal.
Style: Compact, Standard, or Full detail level.
MTF Panel: Include or exclude multi-timeframe panel.
MTF 1-4: Timeframe selections for MTF analysis.
LEVEL SETTINGS
Overbought/Oversold: Standard zone thresholds.
Extreme OB/OS: Extreme zone thresholds.
PRACTICAL EXAMPLE: READING THE COMPLETE PICTURE
This example walks through analyzing a chart using all the indicator components together.
SCENARIO: You are analyzing a 15-minute chart looking for trading opportunities.
STEP 1: ASSESS OSCILLATOR ZONE
You look at the QMF oscillator and see it reading 24, which is in the oversold zone. The dashboard confirms this showing OVERSOLD in the zone status. The progress bar shows the oscillator is in the lower portion of its range.
Initial assessment: The market has experienced significant selling pressure and is in territory where bullish reversals have elevated probability.
STEP 2: CHECK STRUCTURE
You look at the dynamic S/R levels. The oscillator recently touched its support level at 22 and bounced. You see an S with checkmark marker indicating support held. The dashboard shows AT SUP status.
Assessment update: The oscillator found support at a level that has held before. This adds to the bullish case.
STEP 3: EXAMINE TRENDLINES
You notice a resistance trendline connecting recent oscillator highs that has been declining. The oscillator is currently approaching this trendline from below. No break has occurred yet.
Assessment update: There is overhead resistance that will need to be cleared. A break above would be significant.
STEP 4: CHECK DIVERGENCE
The dashboard shows BULL CONFIRMED in the divergence status. Looking at the oscillator, you see a BULL DIV label with a dotted line connecting two pivot lows. The oscillator made a higher low while price made a lower low.
Assessment update: Confirmed bullish divergence suggests selling momentum is weakening despite price continuing lower. This is a meaningful signal of potential reversal.
STEP 5: EVALUATE RIBBONS
The ribbons are currently mixed with fast below medium but both above slow. Ribbon fill is gray indicating transitioning state. However, you notice the fast ribbon is turning upward and approaching the medium ribbon from below.
Assessment update: Ribbons are not yet aligned bullish, but appear to be transitioning. A bullish crossover may be approaching.
STEP 6: CHECK MTF ALIGNMENT
The dashboard MTF panel shows: 5m is B+, 15m is B, 1H is N, 4H is S. The alignment shows 2/4 bullish.
Assessment update: Lower timeframes support bullish bias, but higher timeframes are neutral or bearish. This is mixed alignment, suggesting caution. Any bullish move may face resistance from higher timeframe sellers.
STEP 7: REVIEW LIVE MOMENTUM SCORES
Dashboard shows BULL at 52% Grade B, BEAR at 28% Grade D. Dominant bias shows BULL.
Assessment update: Bullish factors currently outweigh bearish factors. The score suggests moderate bullish conditions, not yet strong.
STEP 8: SYNTHESIS
Putting it together:
- Oversold zone positioning (bullish factor)
- Support held (bullish factor)
- Bullish divergence confirmed (strong bullish factor)
- Ribbons transitioning but not yet aligned (neutral)
- MTF alignment mixed at 2/4 (caution factor)
- Live score favors bullish moderately (supporting factor)
- Resistance trendline overhead (risk factor)
Conclusion: Conditions favor a bullish reversal but with caution warranted due to mixed MTF alignment and overhead resistance. This would not qualify for a Grade A signal due to insufficient MTF alignment. If a signal fires, it would likely be Grade B.
STEP 9: SIGNAL FIRES
Several bars later, the oscillator crosses above its signal line while still in oversold territory. The EMA fast crosses above EMA slow. A LONG B signal appears at 85% confluence.
The signal represents: Oversold positioning plus confirmed divergence plus momentum crossover, meeting Grade B pattern requirements.
STEP 10: MONITORING
After entry, you monitor the dashboard for changing conditions. Live momentum scores continue rising. The resistance trendline breaks (TL up arrow marker appears). Ribbons align bullish. MTF alignment improves to 3/4 as the 1H turns bullish.
The improving conditions confirm the trade thesis. You hold the position as conditions strengthen.
ALERTS AVAILABLE
28 alert conditions are available covering all major events. To set up alerts, click the alert icon in TradingView, select this indicator, and choose the desired condition.
SIGNAL ALERTS
- A-Grade LONG Signal: Highest probability bullish entry
- A-Grade SHORT Signal : Highest probability bearish entry
- B-Grade LONG Signal: Solid bullish entry
- B-Grade SHORT Signal: Solid bearish entry
- Any LONG Signal: Any bullish signal regardless of grade
- Any SHORT Signal: Any bearish signal regardless of grade
DIVERGENCE ALERTS
- Regular Bullish Divergence: Classic bullish reversal pattern
- Regular Bearish Divergence: Classic bearish reversal pattern
- Hidden Bullish Divergence: Bullish continuation pattern
- Hidden Bearish Divergence: Bearish continuation pattern
- Any Bullish Divergence: Either regular or hidden bullish
- Any Bearish Divergence: Either regular or hidden bearish
STRUCTURE ALERTS
- Trendline Break Up : Resistance trendline broken
- Trendline Break Down: Support trendline broken
- Resistance Broken: S/R resistance level broken
- Support Broken: S/R support level broken
CROSSOVER ALERTS
- EMA Cross Up : Fast EMA crossed above slow EMA
- EMA Cross Down : Fast EMA crossed below slow EMA
- Trend MA Break Up: Oscillator crossed above trend MA
- Trend MA Break Down: Oscillator crossed below trend MA
ZONE ALERTS
- Entered Overbought Zone: Oscillator entered overbought
- Entered Oversold Zone: Oscillator entered oversold
- Entered Extreme Overbought: Oscillator reached extreme overbought
- Entered Extreme Oversold: Oscillator reached extreme oversold
RIBBON ALERTS
- Ribbon Cross Up: Fast ribbon crossed above slow ribbon
- Ribbon Cross Down: Fast ribbon crossed below slow ribbon
BOUNCE ALERTS
- Bounce From Oversold: Active reversal from oversold zone
- Bounce From Overbought : Active reversal from overbought zone
NON-REPAINTING Structure
All visual elements and signals in this indicator are non-repainting:
- Signals use barstate.isconfirmed to fire only after bar close
- Divergence confirmation waits for pivot validation
- Trendline breaks confirm after bar close
- S/R breaks confirm after bar close
- MTF data uses lookahead off setting
- No future data is used in any calculation
What you see in backtesting accurately represents what would have appeared in real-time trading.
RISK DISCLAIMER
This indicator is provided for educational and informational purposes only. It does not constitute financial advice, investment advice, or trading advice.
Trading financial instruments involves substantial risk of loss and is not suitable for all investors. Past performance is not indicative of future results. The analysis provided by this indicator should not be relied upon as the sole basis for any trading decision.
Before trading:
- Understand you may lose some or all of your investment
- Never trade with money you cannot afford to lose
- Conduct your own research and due diligence
- Consider consulting with a qualified financial advisor
- Practice with paper trading before risking real capital
- Implement proper risk management with recommended maximum 1-2% risk per trade
By using this indicator, you acknowledge that you have read and understood this disclaimer and accept full responsibility for your trading decisions.






















