Regression Slope Oscillator [BigBeluga]🔵 OVERVIEW
The Regression Slope Oscillator is a trend–momentum tool that applies multiple linear regression slope calculations over different lookback ranges, then averages them into a single oscillator line. This design helps traders visualize when price is extending beyond typical regression behavior, as well as when momentum is shifting up or down.
🔵 CONCEPTS
Regression Slope – Measures the steepness and direction of price trends over a selected length.
f_log_regression(src, length) =>
float sumX = 0.0
float sumY = 0.0
float sumXSqr = 0.0
float sumXY = 0.0
for i = 0 to length - 1
val = math.log(src )
per = i + 1.0
sumX += per
sumY += val
sumXSqr += per * per
sumXY += val * per
slope = (length * sumXY - sumX * sumY) / (length * sumXSqr - sumX * sumX)
slope*-1
Multi–Sample Averaging – Instead of relying on one regression slope, the indicator loops through many lengths (from Min Range to Max Range with Step increments) and averages their slopes.
multiSlope(length)=>
// Get regression slope
slope = f_log_regression(close, length)
slopAvg.push(slope)
for i = minRange to maxRange by step
multiSlope(i)
Color Gradient – The oscillator and candles are colored dynamically from oversold (orange) to overbought (aqua), based on slope extremes observed within the user–defined Color Range.
Trend Oscillation – When the oscillator rises, price trend is strengthening; when it falls, momentum weakens.
🔵 FEATURES
Calculates regression slopes across a user–defined range (e.g., 10–100 with steps of 5).
Averages all sampled slopes into a single oscillator line.
Dynamic coloring of oscillator and chart candles based on slope values.
User–controlled Color Range :
High values (e.g., 50–100) → interpret as overbought vs oversold zones.
Low values (e.g., 2–5) → interpret as slope rising vs falling momentum shifts.
Dashboard table (top–right) displaying number of slope samples and current averaged slope value.
Candle coloring mode (optional) – candles take on the oscillator gradient color for at–a–glance reading of trend bias.
Signal Line (SMA) – A moving average of the slope oscillator used to identify momentum reversals.
Bullish Reversal Signal – Triggered when the oscillator crosses above the signal line while below zero, indicating downside momentum exhaustion and potential trend recovery.
Bearish Reversal Signal – Triggered when the oscillator crosses below the signal line while above zero, indicating upside momentum exhaustion and potential trend rollover.
Dual Placement Signals – Reversal signals are plotted both:
On the oscillator pane (for momentum context)
On the price chart (for execution alignment)
Confirmation Logic – Signals are only printed on confirmed bars to reduce repainting and false triggers.
🔵 HOW TO USE
Watch the oscillator cross above/below zero: signals shifts in regression slope direction.
Use the signal line crossovers near zero to identify early trend reversals.
Use high Color Range settings to identify potential overbought/oversold extremes in trend slope.
Use low Color Range settings for a faster, momentum–driven color change that tracks slope rising/falling.
Candle coloring highlights short–term trend pressure in sync with the oscillator.
Combine reversal signals with structure, support/resistance, or volume for higher–probability entries.
🔵 CONCLUSION
The Regression Slope Oscillator transforms raw regression slope data into a smooth, color–coded oscillator. By averaging across multiple regression lengths, it avoids the noise of single–range analysis while still capturing trend extensions and momentum shifts.
With the addition of signal line crossovers and confirmed reversal markers, the indicator now provides both trend context and actionable momentum signals within a single regression-based framework.
震荡指标
Adaptive RSI [BOSWaves]Adaptive RSI - Percentile-Based Momentum Detection with Dynamic Regime Thresholds
Overview
Adaptive RSI is a self-calibrating momentum oscillator that identifies overbought and oversold conditions through historical percentile analysis, constructing dynamic threshold boundaries that adjust to evolving market volatility and momentum characteristics.
Instead of relying on traditional fixed RSI levels (30/70 or 20/80) or static overbought/oversold zones, regime detection, threshold placement, and signal generation are determined through rolling percentile calculation, smoothed momentum measurement, and divergence pattern recognition.
This creates adaptive boundaries that reflect actual momentum distribution rather than arbitrary fixed levels - tightening during low-volatility consolidation periods, widening during trending environments, and incorporating divergence analysis to reveal momentum exhaustion or continuation patterns.
Momentum is therefore evaluated relative to its own historical context rather than universal fixed thresholds.
Conceptual Framework
Adaptive RSI is founded on the principle that meaningful momentum extremes emerge relative to recent price behavior rather than at predetermined numerical levels.
Traditional RSI implementations identify overbought and oversold conditions using fixed thresholds that remain constant regardless of market regime, often generating premature signals in strong trends or missing reversals in range-bound markets. This framework replaces static threshold logic with percentile-driven adaptive boundaries informed by actual momentum distribution.
Three core principles guide the design:
Threshold placement should correspond to historical momentum percentiles, not fixed numerical levels.
Regime detection must adapt to current market volatility and momentum characteristics.
Divergence patterns reveal momentum exhaustion before price reversal becomes visible.
This shifts oscillator analysis from universal fixed levels into adaptive, context-aware regime boundaries.
Theoretical Foundation
The indicator combines smoothed RSI calculation, rolling percentile tracking, adaptive threshold construction, and multi-pattern divergence detection.
A Hull Moving Average (HMA) pre-smooths the price source to reduce noise before RSI computation, which then undergoes optional post-smoothing using configurable moving average types. Confirmed oscillator values populate a rolling historical buffer used for percentile calculation, establishing upper and lower thresholds that adapt to recent momentum distribution. Regime state persists until the oscillator crosses the opposing threshold, preventing whipsaw during consolidation. Pivot detection identifies swing highs and lows in both price and oscillator values, enabling regular divergence pattern recognition through comparative analysis.
Five internal systems operate in tandem:
Smoothed Momentum Engine : Computes HMA-preprocessed RSI with optional post-smoothing using multiple MA methodologies (SMA, EMA, HMA, WMA, DEMA, RMA, LINREG, TEMA).
Historical Buffer Management : Maintains a rolling array of confirmed oscillator values for percentile calculation with configurable lookback depth.
Percentile Threshold Calculation : Determines upper and lower boundaries by extracting specified percentile values from sorted historical distribution.
Persistent Regime Detection : Establishes bullish/bearish/neutral states based on threshold crossings with state persistence between signals.
Divergence Pattern Recognition : Identifies regular bullish and bearish divergences through synchronized pivot analysis of price and oscillator values with configurable range filtering.
This design allows momentum interpretation to adapt to market conditions rather than reacting mechanically to universal thresholds.
How It Works
Adaptive RSI evaluates momentum through a sequence of self-calibrating processes:
Source Pre-Smoothing: Input price undergoes 4-period HMA smoothing to reduce bar-to-bar noise before oscillator calculation.
RSI Calculation: Standard RSI computation applied to smoothed source over configurable length period.
Optional Post-Smoothing: Raw RSI value undergoes additional smoothing using selected MA type and length for cleaner regime detection.
Historical Buffer Population: Confirmed oscillator values accumulate in a rolling array with size limit determined by adaptive lookback parameter.
Percentile Threshold Extraction: Array sorts on each bar to calculate upper percentile (bullish threshold) and lower percentile (bearish threshold) values.
Regime State Persistence: Bullish regime activates when oscillator crosses above upper threshold, bearish regime activates when crossing below lower threshold, neutral regime persists until directional threshold breach.
Pivot Identification: Swing highs and lows detected in both oscillator and price using configurable left/right parameters.
Divergence Pattern Matching: Compares pivot relationships between price and oscillator within min/max bar distance constraints to identify regular bullish (price LL, oscillator HL) and bearish (price HH, oscillator LH) divergences.
Together, these elements form a continuously updating momentum framework anchored in statistical context.
Interpretation
Adaptive RSI should be interpreted as context-aware momentum boundaries:
Bullish Regime (Blue): Activated when oscillator crosses above upper percentile threshold, indicating momentum strength relative to recent distribution favors upside continuation.
Bearish Regime (Red): Established when oscillator crosses below lower percentile threshold, identifying momentum weakness relative to recent distribution favors downside continuation.
Upper Threshold Line (Blue)**: Dynamic resistance level calculated from upper percentile of historical oscillator distribution - adapts higher during trending markets, lower during ranging conditions.
Lower Threshold Line (Red): Dynamic support level calculated from lower percentile of historical oscillator distribution - adapts lower during downtrends, higher during consolidation.
Regime Fill: Gradient coloring between oscillator and baseline (50) visualizes current momentum intensity - stronger color indicates greater distance from neutral.
Extreme Bands (15/85): Upper and lower extreme zones with strength-modulated transparency reveal momentum extremity - darker shading during powerful moves, lighter during moderate momentum.
Divergence Lines: Connect price and oscillator pivots when divergence pattern detected, appearing on both price chart and oscillator pane for confluence identification.
Reversal Markers (✦): Diamond signals appear at 80+ (bearish extreme) and sub-15 (bullish extreme) levels, marking potential exhaustion zones independent of regime state.
Percentile context, divergence confirmation, and regime persistence outweigh isolated oscillator readings.
Signal Logic & Visual Cues
Adaptive RSI presents four primary interaction signals:
Regime Switch - Long : Oscillator crosses above upper percentile threshold after previously being in bearish or neutral regime, suggesting momentum strength shift favoring bullish continuation.
Regime Switch - Short : Oscillator crosses below lower percentile threshold after previously being in bullish or neutral regime, indicating momentum weakness shift favoring bearish continuation.
Regular Bullish Divergence (𝐁𝐮𝐥𝐥) : Price forms lower low while oscillator forms higher low, revealing positive momentum divergence during downtrends - often precedes reversal or consolidation.
Regular Bearish Divergence (𝐁𝐞𝐚𝐫) : Price forms higher high while oscillator forms lower high, revealing negative momentum divergence during uptrends - often precedes reversal or correction.
Alert generation covers regime switches, threshold crossings, and divergence detection for systematic monitoring.
Strategy Integration
Adaptive RSI fits within momentum-informed and mean-reversion trading approaches:
Adaptive Regime Following : Use threshold crossings as primary trend inception signals where momentum confirms directional breakouts within statistical context.
Divergence-Based Reversals : Enter counter-trend positions when divergence patterns appear at extreme oscillator levels (above 80 or below 20) for high-probability mean-reversion setups.
Threshold-Aware Scaling : Recognize that tighter percentile spreads (e.g., 45/50) generate more signals suitable for ranging markets, while wider spreads (e.g., 30/70) filter for stronger trend confirmation.
Extreme Zone Confluence : Combine reversal markers (✦) with divergence signals for maximum-conviction exhaustion entries.
Multi-Timeframe Regime Alignment : Apply higher-timeframe regime context to filter lower-timeframe entries, taking only setups aligned with dominant momentum direction.
Smoothing Optimization : Increase smoothing length in choppy markets to reduce false signals, decrease in trending markets for faster response.
Technical Implementation Details
Core Engine : HMA-preprocessed RSI with configurable smoothing (SMA, HMA, EMA, WMA, DEMA, RMA, LINREG, TEMA)
Adaptive Model : Rolling percentile calculation over confirmed oscillator values with size-limited historical buffer
Threshold Construction : Linear interpolation percentile extraction from sorted distribution array
Regime Detection : State-persistent threshold crossing logic with confirmed bar validation
Divergence Engine : Pivot-based pattern matching with range filtering and duplicate prevention
Visualization : Gradient-filled regime zones, adaptive threshold lines, strength-modulated extreme bands, dual-pane divergence lines
Performance Profile : Optimized for real-time execution with efficient array management and minimal computational overhead
Optimal Application Parameters
Timeframe Guidance:
1 - 5 min : Micro-structure momentum detection for scalping and intraday reversals
15 - 60 min : Intraday regime identification with divergence-validated turning points
4H - Daily : Swing and position-level momentum analysis with macro divergence context
Suggested Baseline Configuration:
RSI Length : 18
Source : Close
Smooth Oscillator : Enabled
Smoothing Length : 20
Smoothing Type : SMA
Adaptive Lookback : 1000
Upper Percentile : 50
Lower Percentile : 45
Divergence Pivot Left : 15
Divergence Pivot Right : 15
Min Pivot Distance : 5
Max Pivot Distance : 60
These suggested parameters should be used as a baseline; their effectiveness depends on the asset's volatility profile, momentum characteristics, and preferred signal frequency, so fine-tuning is expected for optimal performance.
Parameter Calibration Notes
Use the following adjustments to refine behavior without altering the core logic:
Too many whipsaw signals : Widen percentile spread (e.g., 40/60 instead of 45/50) to demand stronger momentum confirmation, or increase "Smoothing Length" to filter noise.
Missing legitimate regime changes : Tighten percentile spread (e.g., 48/52 instead of 45/50) for earlier detection, or decrease "Smoothing Length" for faster response.
Oscillator too choppy : Increase "Smoothing Length" for cleaner readings, or switch "Smoothing Type" to RMA/TEMA for heavier smoothing.
Thresholds not adapting properly : Reduce "Adaptive Lookback" to emphasize recent behavior (500-800 bars), or increase it for more stable thresholds (1500-2000 bars).
Too many divergence signals : Increase "Pivot Left/Right" values to demand stronger swing confirmation, or widen "Min Pivot Distance" to space out detections.
Missing significant divergences : Decrease "Pivot Left/Right" for faster pivot detection, or increase "Max Pivot Distance" to compare more distant swings.
Prefer different momentum sensitivity : Adjust "RSI Length" - lower values (10-14) for aggressive response, higher values (21-28) for smoother trend confirmation.
Divergences appearing too late : Reduce "Pivot Right" parameter to detect divergences closer to current price action.
Adjustments should be incremental and evaluated across multiple session types rather than isolated market conditions.
Performance Characteristics
High Effectiveness:
Markets with mean-reverting characteristics and consistent momentum cycles
Instruments where momentum extremes reliably precede reversals or consolidations
Ranging environments where percentile-based thresholds adapt to volatility contraction
Divergence-driven strategies targeting momentum exhaustion before price confirmation
Reduced Effectiveness:
Extremely strong trending markets where oscillator remains persistently extreme
Low-liquidity environments with erratic momentum readings
News-driven or gapped markets where momentum disconnects from price temporarily
Markets with regime shifts faster than adaptive lookback can recalibrate
Integration Guidelines
Confluence : Combine with BOSWaves structure, volume analysis, or traditional support/resistance
Threshold Respect : Trust signals that occur after clean threshold crossings with sustained momentum
Divergence Context : Prioritize divergences appearing at extreme oscillator levels (80+/15-) over those in neutral zones
Regime Awareness : Consider whether current market regime matches historical momentum patterns used for calibration
Multi-Pattern Confirmation : Seek divergence patterns coinciding with reversal markers or threshold rejections for maximum conviction
Disclaimer
Adaptive RSI is a professional-grade momentum and divergence analysis tool. It uses percentile-based threshold calculation that adapts to recent market behavior but cannot predict future regime shifts or guarantee reversal timing. Results depend on market conditions, parameter selection, lookback period appropriateness, and disciplined execution. BOSWaves recommends deploying this indicator within a broader analytical framework that incorporates price structure, volume context, and comprehensive risk management.
RSI Chebyshev Pro with Goldilocks Fractals - NR [NPR21]RSI Chebyshev Pro with Goldilocks Fractals - Non-Repaint
CHART INFORMATION
Instrument: /MNQ (Micro E-mini Nasdaq-100 Futures)
Timeframe: 2-minute
Indicator: RSI Chebyshev Pro with Goldilocks Fractals - NR
THE PROBLEM
Standard RSI is too choppy and noisy – it whipsaws all over the place in volatile markets like futures, giving false oversold/overbought signals that burn you on entries. I was sick of missing real reversals or getting stopped out on fakeouts. I wanted something smoother that still catches the big momentum shifts without lagging too much, plus actual market structure to make it more reliable for quick trades.
WHAT MAKES THIS UNIQUE
Unlike basic RSI indicators that use simple moving average smoothing, this combines several advanced techniques that aren't commonly found together:
1. Chebyshev Type I Filtering - Signal processing mathematics (not basic EMAs) that kills noise while keeping real swings sharp. Most RSI smoothing just blurs everything - this keeps responsiveness without the chop.
2. MAMA Adaptive Period - The moving average adapts to actual market cycles using the MESA algorithm, not fixed periods that lag in changing conditions.
3. RSI Pivot Fractals - These aren't price fractals slapped onto RSI. The fractals detect pivots directly on RSI values at extreme levels, with signals appearing back at the exact pivot bar (not current bar), showing you where the actual reversal happened.
4. True Non-Repainting Implementation - Signals appear delayed BUT locked at the historical pivot location forever. What you see in backtests is exactly what appeared live - no vanishing signals, no shifting.
5. All-in-One Integration - Instead of running 3-4 separate indicators (RSI + fractals + patterns + smoothing), everything works together in a single, optimized calculation with confluence built in.
This isn't just RSI with some Williams Fractals thrown on top - it's a complete rethink of how to identify high-probability RSI reversals using signal processing and adaptive algorithms.
ORIGIN & ENHANCEMENTS
Original Source: ChartPrime RSI Chebyshev indicator
Converted & Enhanced by: NPR21
What I Added:
✅ Converted to Pine Script v6 - Made this available to TradingView traders
✅ Goldilocks Fractals - RSI alone doesn't tell you about price structure. These fractals nail those "just right" pivot points where highs/lows confirm. I kept seeing RSI extremes that reversed hard when they lined up with fractals - this was the missing piece for confluence.
✅ 100% Non-Repainting - I've been burned by repainters. You'd backtest something, looks amazing, then live it vanishes or shifts. Lost real money on that. This is rock-solid: signals show delayed but once they're there, they're locked forever. Makes backtesting trustworthy.
✅ Candlestick Patterns - Engulfing, Morning Star, Evening Star detection for confluence
✅ Customizable Visuals - BUY/SELL labels, multiple display styles, full color/size control
✅ Complete Alert System - Get notified on all signal types
HOW IT WORKS
Chebyshev Filtering:
Like putting noise-canceling on your RSI – smooths out jittery ups and downs from random price spikes without flattening into useless lag. It's signal processing math that keeps important swings sharp while killing BS noise. Way better than simple EMA smoothing that blurs everything.
The Components:
Ultra-Smooth RSI - Chebyshev Type I filtering + adaptive MAMA algorithm
Goldilocks Fractals - Pivot detection confirmed after N bars (default 5)
Pattern Recognition - Detects Engulfing, Morning/Evening Star patterns
Visual Styles - Candle Trend (hollow green/solid red) or traditional candles
SIGNAL DELAY vs REPAINTING
✅ THIS HAS SIGNAL DELAY (GOOD) - NOT REPAINTING (BAD)
Signal Delay:
Signals appear after N bars (default 5 bar delay)
Once visible, NEVER disappears or moves
Perfect for backtesting - 100% reliable
What you see in history is what you'd see live
Why the Delay:
To confirm a pivot, we need to see price didn't go lower/higher in the next N bars. This confirmation makes signals reliable. The delay is the price for trustworthy signals.
Want faster? Drop Fractal Periods to 2-3 (more signals, less confirmation).
HOW I TRADE IT
My /MNQ Scalping (1-3 min charts):
LONG: BUY label appears (down fractal + maybe morning star/engulfing) → Check RSI crossing up from oversold (<30) → Confirm with volume → Long with stop below fractal low → Target 1-2R
SHORT: SELL label (up fractal + maybe evening star) → RSI from overbought → Short with stop above
Filter: Only longs in uptrends (watch the MA). Exit partials if momentum fades.
Best Timeframes: 1-5 min for futures scalping. Works on 15 min for swings but for pure scalping, stay under 5 min in high-vol sessions.
SETTINGS I USE
Standard Setup:
Length: 24, Smoothing: 3
Auto MA: ON, Multiplier: 1-2
Fractal Periods: 5 (good confirmation)
Choppy Days:
Smoothing to 5
Aggressive:
Fractal Periods to 3
Pro Tip: Pair with volume or price EMA. Love when fractal BUY + engulfing bull align. Use Candle Trend style. Test on demo first.
KEY SETTINGS
RSI: Length (24), Smoothing (3), Auto MA, Style (Candle/Candle Trend)
Fractals: Periods (5 = more reliable, 3 = faster/riskier), Label colors/sizes, Offsets
Alerts: All signals fire only on confirmed, non-repainting events
DISCLAIMERS
⚠️ Tool, not a complete system - use proper risk management
⚠️ Signals have delay for reliability - not for instant entries
⚠️ Best with price action, volume, other analysis
⚠️ Test on demo before live trading
Questions? Comment below!
NPR21
RSI Chebyshev Pro with Goldilocks Fractals - NR [NPR21]RSI Chebyshev Pro with Goldilocks Fractals - Non-Repaint
==================================================================================
**CHART INFORMATION**
The example chart shown displays:
- Instrument: /MNQ (Micro E-mini Nasdaq-100 Futures)
- Timeframe: 2-minute
- Indicator: RSI Chebyshev Pro with Goldilocks Fractals - NR
==================================================================================
═════════════════════════════════════════════════════════════
THE PROBLEM
Standard RSI is too choppy and noisy – it whipsaws all over the place in volatile markets like futures, giving false oversold/overbought signals that burn you on entries. I was sick of missing real reversals or getting stopped out on fakeouts. I wanted something smoother that still catches the big momentum shifts without lagging too much, plus actual market structure to make it more reliable for quick trades.
═════════════════════════════════════════════════════════════
WHAT MAKES THIS UNIQUE
Unlike basic RSI indicators that use simple moving average smoothing, this combines several advanced techniques that aren't commonly found together:
1. Chebyshev Type I Filtering - Signal processing mathematics (not basic EMAs) that kills noise while keeping real swings sharp. Most RSI smoothing just blurs everything - this keeps responsiveness without the chop.
2. MAMA Adaptive Period - The moving average adapts to actual market cycles using the MESA algorithm, not fixed periods that lag in changing conditions.
3. RSI Pivot Fractals - These aren't price fractals slapped onto RSI. The fractals detect pivots directly on RSI values at extreme levels, with signals appearing back at the exact pivot bar (not current bar), showing you where the actual reversal happened.
4. True Non-Repainting Implementation - Signals appear delayed BUT locked at the historical pivot location forever. What you see in backtests is exactly what appeared live - no vanishing signals, no shifting.
5. All-in-One Integration - Instead of running 3-4 separate indicators (RSI + fractals + patterns + smoothing), everything works together in a single, optimized calculation with confluence built in.
This isn't just RSI with some Williams Fractals thrown on top - it's a complete rethink of how to identify high-probability RSI reversals using signal processing and adaptive algorithms.
═════════════════════════════════════════════════════════════
ORIGIN & ENHANCEMENTS
Original Source: ChartPrime RSI Chebyshev indicator
Converted & Enhanced by: NPR21
What I Added:
✅ Converted to Pine Script v6 - Made this available to TradingView traders
✅ Goldilocks Fractals - RSI alone doesn't tell you about price structure. These fractals nail those "just right" pivot points where highs/lows confirm. I kept seeing RSI extremes that reversed hard when they lined up with fractals - this was the missing piece for confluence.
✅ 100% Non-Repainting - I've been burned by repainters. You'd backtest something, looks amazing, then live it vanishes or shifts. Lost real money on that. This is rock-solid: signals show delayed but once they're there, they're locked forever. Makes backtesting trustworthy.
✅ Candlestick Patterns - Engulfing, Morning Star, Evening Star detection for confluence
✅ Customizable Visuals - BUY/SELL labels, multiple display styles, full color/size control
✅ Complete Alert System - Get notified on all signal types
═════════════════════════════════════════════════════════════
HOW IT WORKS
Chebyshev Filtering:
Like putting noise-canceling on your RSI – smooths out jittery ups and downs from random price spikes without flattening into useless lag. It's signal processing math that keeps important swings sharp while killing BS noise. Way better than simple EMA smoothing that blurs everything.
The Components:
Ultra-Smooth RSI - Chebyshev Type I filtering + adaptive MAMA algorithm
Goldilocks Fractals - Pivot detection confirmed after N bars (default 5)
Pattern Recognition - Detects Engulfing, Morning/Evening Star patterns
Visual Styles - Candle Trend (hollow green/solid red) or traditional candles
═════════════════════════════════════════════════════════════
SIGNAL DELAY vs REPAINTING
✅ THIS HAS SIGNAL DELAY (GOOD) - NOT REPAINTING (BAD)
Signal Delay:
Signals appear after N bars (default 5 bar delay)
Once visible, NEVER disappears or moves
Perfect for backtesting - 100% reliable
What you see in history is what you'd see live
Why the Delay:
To confirm a pivot, we need to see price didn't go lower/higher in the next N bars. This confirmation makes signals reliable. The delay is the price for trustworthy signals.
Want faster? Drop Fractal Periods to 2-3 (more signals, less confirmation).
════════════════════════════════════════════════════════════
HOW I TRADE IT
My /MNQ Scalping (1-3 min charts):
LONG: BUY label appears (down fractal + maybe morning star/engulfing) → Check RSI crossing up from oversold (<30) → Confirm with volume → Long with stop below fractal low → Target 1-2R
SHORT: SELL label (up fractal + maybe evening star) → RSI from overbought → Short with stop above
Filter: Only longs in uptrends (watch the MA). Exit partials if momentum fades.
Best Timeframes: 1-5 min for futures scalping. Works on 15 min for swings but for pure scalping, stay under 5 min in high-vol sessions.
═════════════════════════════════════════════════════════════
SETTINGS I USE
Standard Setup:
Length: 24, Smoothing: 3
Auto MA: ON, Multiplier: 1-2
Fractal Periods: 5 (good confirmation)
Choppy Days: Smoothing to 5
Aggressive: Fractal Periods to 3
Pro Tip: Pair with volume or price EMA. Love when fractal BUY + engulfing bull align. Use Candle Trend style. Test on demo first.
═════════════════════════════════════════════════════════════
KEY SETTINGS
RSI: Length (24), Smoothing (3), Auto MA, Style (Candle/Candle Trend)
Fractals: Periods (5 = more reliable, 3 = faster/riskier), Label colors/sizes, Offsets
Alerts: All signals fire only on confirmed, non-repainting events
═════════════════════════════════════════════════════════════
DISCLAIMERS
⚠️ Tool, not a complete system - use proper risk management
⚠️ Signals have delay for reliability - not for instant entries
⚠️ Best with price action, volume, other analysis
⚠️ Test on demo before live trading
═════════════════════════════════════════════════════════════
Questions? Comment below!
NPR21
Multi-Factor ConsensusMFC (Market Field Coherence)
A Triumph of Complexity: The Fusion of Three Professional Engines to Visualize the Unified
Mind of the Market
█ OVERVIEW: BEYOND THE INDICATOR
This is not another lagging indicator. This is a command suite.
MFC (Market Field Coherence) is not a single tool, but a seamless integration of three professional-grade, independent analytical engines fused into a singular, awe-inspiring system. It's a masterwork of signal processing and applied mathematics designed to visualize the invisible—the collective, underlying state of the market.
It moves beyond the simplistic analysis of individual price bars to measure something far more profound: the degree of emergent coherence across an entire ensemble of market oscillators. While traditional tools see the market as a series of disconnected data points, MFC sees it as a dynamic, fluctuating field of forces. By deploying its three specialized engines, MFC identifies moments of critical transition when disparate, chaotic market inputs converge into a single, unified, and tradable state of being. It measures the very instant the "noise" becomes a "symphony," and generates signals only when all three engines are in unanimous agreement.
█ A TRINITY OF SYSTEMS: THREE INDICATORS IN ONE
MFC's unparalleled precision comes from its unique tripartite architecture. It is not a monolithic tool. It is a fusion of three distinct, professional-grade analytical engines, each performing a critical and independent function. Their synergy is what produces the high-quality, filtered signals and the profound analytical clarity.
ENGINE 1: The Quantum Coherence Engine
The heart of the system. This is a pure regime-detection indicator. Its sole purpose is to perform the heavy lifting of converting the oscillator ensemble into complex-plane phasors and calculating the two most critical metrics: the Coherence Index (CI) and the Dominant Phase . It constantly works to answer the primary question: " How unified is the market, and in which direction is it leaning? "
ENGINE 2: The Multi-Layer Confirmation Matrix
A high CI from the first engine is not enough. This second, independent engine acts as the ultimate quality filter. It is, in essence, a sophisticated confirmation indicator that runs two rigorous, non-negotiable checks: the Phase-Lock Detector (is the alignment tight enough?) and the Pairwise Entanglement Web (is the alignment broad-based and not a fluke?). This is a purely logical system designed to reject ambiguity, eliminate false positives, and validate the findings of the Coherence Engine. It answers the crucial follow-up question: " Is this detected coherence real, or is it a statistical ghost? "
ENGINE 3: The Advanced Visualization Suite
Raw data is meaningless without interpretation. This third engine is a full-fledged visual indicator in its own right, dedicated to translating the abstract mathematics from the other two engines into an intuitive, multi-dimensional language. Featuring the revolutionary Circular Orbit Plot , the atmospheric Quantum Field Cloud , and deep-dive analytical grids, it allows you to see the market's state in a way that numbers alone never could. It answers the final question: " What does this confirmed state of coherence actually look like? "
An Ignition Signal only fires when all three of these independent systems reach a unanimous conclusion. This is the source of MFC's power and precision.
█ THE PHILOSOPHY & THEORETICAL FOUNDATION
MFC is built upon a synthesis of advanced mathematical frameworks, each chosen for its unique ability to extract a deeper layer of truth from market data. Their combination across the three engines creates a system far greater than the sum of its parts.
1. The Kernel: Gaussian-Weighted Smoothing for Intelligent Lag Reduction
Simple and Exponential Moving Averages are primitive tools. MFC's engines reject them. We employ a Gaussian Kernel for all internal smoothing. This "bell curve" weighting assigns the most significance to the most recent data, gracefully decaying influence for older data. The result is a beautifully smooth yet highly responsive measure of coherence, fundamentally reducing the lag that plagues other systems.
The formula for the weight w at a distance i from the center μ is:
w(i) = exp(- (i - μ)² / (2 * σ²))
2. The Lens: Sigmoid Normalization for Non-Linear State Definition
To compare an RSI of 80 to a MACD of 0.5, MFC utilizes the robust and mathematically elegant Sigmoid (Logistic) Function. Its non-linear, "S-shaped" curve squashes any input into a perfect, bounded range, creating extreme sensitivity near the neutral midpoint and gracefully compressing values at the extremes. This provides a crystal-clear distinction between "weak," "strong," and "extreme" conditions.
f(x) = 1 / (1 + exp(-k * x))
3. The Engine: Complex-Plane Phasors for Coherence Measurement
This is the heart of Engine 1. Each normalized oscillator is transformed from a single scalar value into a two-dimensional vector (a phasor) in the complex plane, capturing its magnitude (strength) and its phase angle (position and velocity).
Resultant Vector (R) = Σ e^(iφₙ) = Σ cos(φₙ) + i·Σ sin(φₙ)
The Coherence Index (CI) is the magnitude of this resultant vector, normalized by the number of oscillators N:
CI = |R| / N
This mathematical blending— Gaussian smoothing for clean data, Sigmoid normalization to define state, and Complex-Plane Analysis to measure collective coherence—is what allows MFC to generate insight that is simply impossible to achieve with conventional tools.
█ THE INPUTS MENU: YOUR COMMAND & CONTROL
Every parameter is exposed, allowing you to fine-tune MFC's three engines to any instrument, timeframe, or trading style. Here is an exhaustive guide:
Oscillator Settings (Engine 1)
Enable/Disable Toggles & Lengths: Construct the perfect ensemble for your market. Shorter lengths for scalping (e.g., 5m chart), longer lengths for swing trading (e.g., 4H chart). Disable any oscillator that consistently acts as an outlier to reduce noise.
Normalization Anchors: Define the "extreme" boundaries for the Sigmoid function. Widen these anchors (e.g., RSI 80/20) for highly volatile assets to better capture the larger price swings.
Coherence & Confirmation Settings (Engines 1 & 2)
CI Smoothing Window: Controls the Gaussian Kernel for the final Coherence Index. A short window (2-4) offers a fast reaction for scalpers. A longer window (5-10) creates a smoother CI line for swing traders.
Ignition Threshold: The CI level needed to activate a signal check. A lower threshold (0.70) generates more signals. A higher threshold (0.85) produces fewer, but extremely high-conviction signals.
Phase Lock Tolerance & Min Entangled Pairs: These are the core parameters for the Confirmation Engine (Engine 2). Use tighter tolerances (e.g., 25°) and a higher number of pairs (e.g., 5+) to demand an incredibly high standard for signal confirmation.
█ THE DASHBOARD: YOUR QUANTITATIVE READOUT
The dashboard provides a real-time, numerical dissection of the market field, summarizing the outputs of all three engines.
CI (Coherence Index): What it is: The master metric from Engine 1. How to interpret: < 40% (Chaos): The market is disjointed. 40-70% (Coherent): A regime is forming. > 70% (Ignition Zone): High consensus.
Dom Phase (Dominant Phase): What it is: The "average" direction from Engine 1. How to interpret: The arrow gives the immediate directional bias.
Field Strength: What it is: CI × Average Amplitude . How to interpret: Measures alignment with conviction. A high Field Strength is the signature of a powerful, aggressive trend.
Entangled Pairs & Phase Lock: What they are: The direct readouts from the Confirmation Engine (Engine 2). How to interpret: The 🔒 symbol and a high pair count are the final "green lights" before a signal can be generated.
State: What it is: A real-time classification of the market's condition based on the combined output of all engines. How to interpret:
🚀 IGNITION: All three engines are in unanimous, bullish/bearish agreement.
⚡ COHERENT: The trend is healthy and coherence is stable.
💥 COLLAPSE: The regime's integrity is compromised.
🌀 CHAOS: The market is unpredictable.
Collapse Risk: What it is: A 0-100% gauge measuring the rate of recent CI decay. How to interpret: A leading indicator for trend exhaustion. A value rising above 50% is a powerful signal to tighten stops.
█ THE VISUALS: THE ART OF ANALYSIS (ENGINE 3)
The Visualization Suite (Engine 3) translates the complex calculations into an intuitive visual language. Learning to read these displays is like learning to see the market in a new dimension.
The Circular Orbit Plot: The soul of MFC. A polar grid showing each oscillator as a labeled vector.
Angle = Phase, Length = Amplitude. Watch for Convergence: when scattered vectors cluster into a single quadrant, you are witnessing the birth of a new regime in real-time.
The Quantum Field Cloud: An atmospheric overlay on the price chart.
Color = Dominant Phase ( Green for bullish, Red for bearish). Opacity = Coherence Index . A dense, opaque cloud signifies an extremely strong, coherent regime.
The Entanglement Web Matrix & Phase-Time Heat Map: Deep-dive analytical tools. Use the Web to diagnose the quality and breadth of coherence. Use the Heat Map to identify historical patterns and pivotal moments of unified market phase.
█ THE DEVELOPMENT: A QUEST FOR TRUTH
MFC was not created to be just another tool. It was engineered to solve the fundamental ambiguity of technical analysis by creating a system of checks and balances between three specialized engines. I sought to replace subjective interpretation with objective, multi-stage mathematical measurement. The choice of Gaussian kernels, Sigmoid functions, and complex-plane analysis was a deliberate decision to embrace the multi-dimensional reality of market dynamics rather than simplifying it into a single, misleading number.
This is a tool for the discerning trader who understands that the market is not a random walk, but a complex, adaptive system. MFC provides a new set of senses to perceive the behavior of that system.
"The financial markets are generally unpredictable. So that one has to have different scenarios... The idea that you can actually predict what's going to happen contradicts my way of looking at the market."
— George Soros
MFC does not predict. It measures . Its three engines work in concert to provide a high-resolution image of the market's current state , allowing you to align yourself with moments of profound clarity and step aside during times of absolute chaos. Trade the coherence, not the forecast.
█ IMPORTANT WARNINGS & DISCLAIMER
This tool is designed for analytical and informational purposes. It identifies periods of high statistical confluence based on the behavior of technical oscillators. This is not a "signal" service and provides no financial advice.
RISK OF LOSS: All trading and investment activities involve substantial risk of loss. Do not trade with capital you cannot afford to lose.
NO GUARANTEE: This indicator does not guarantee profits or prevent losses. Past performance is not indicative of future results.
USE CONFIRMATION: "Ignition" markers denote a unanimous conclusion from all three internal engines, not explicit instructions to buy or sell. They should be used as one component within a comprehensive trading plan.
REGIME DEPENDENT: The effectiveness of this tool is dependent on market conditions. It performs best in markets with clear cyclical behavior.
Taking you to school. - Dskyz, Trade with probability. Trade with consensus. Trade with MFC.
Deviation Momentum For Loop | Lyro RSThe Deviation Momentum For Loop is a directional momentum tool that evaluates the persistence of price deviation from a moving average over a historical range using a custom loop-based scoring function. It quantifies relative momentum strength by comparing current deviation to previous values, assigning a net score used to assess trend bias, reversals, and volatility-adjusted strength.
Key Features
Deviation-Based Momentum: Calculates standardized deviation from a selected moving average by subtracting the MA from price and normalizing via standard deviation and a scaling constant. This standardization adjusts for volatility and creates a consistent scoring base across assets and timeframes.
Historical For-Loop Scoring: Implements a user-defined for-loop function that compares current deviation to values from earlier bars (configurable range). Each comparison adds or subtracts from a cumulative score based on whether current deviation exceeds historical ones, producing a dynamic momentum read.
Threshold-Based Signal Logic: Applies user-defined thresholds for long and short signals. If the loop score exceeds the long threshold, a bullish bias is inferred; if it drops below the short threshold, a bearish bias is indicated. These thresholds are plotted for visual clarity.
Multi-Palette Visual System:
Predefined Palettes – Choose from Classic, Mystic, Accented, or Royal schemes for bullish and bearish colors.
Custom Colors – Toggle on custom color selection to manually define bullish (UpC) and bearish (DnC) tones.
Dynamic Visuals – Oscillator line, threshold markers, background shading, bar and candle coloring are applied in real time based on trend state
.
Glow and Overlay Effects: Layered glow lines and optional bar/candle coloring reinforce signal strength and trend status directly on the chart.
Built-In Alerts: Provides alert conditions when the for-loop score crosses above or below the defined thresholds, enabling automated monitoring of trend conditions.
How It Works
MA Calculation – Applies the selected moving average to the chosen price source (e.g., close, open, high). Offers 16 moving average types including SMA, EMA, WMA, TEMA, JMA, FRAMA, ZLSMA, KAMA, and others via the LyroRS/LMAs/1 library.
Deviation Computation – Measures the deviation of price from its moving average, normalized by standard deviation and scaled by a fixed constant factor to account for volatility.
Loop Function – Iterates from user-defined indices (From → To) and compares current deviation to past deviations. Increments score for each instance where current > past, decrements when current < past. The resulting value is plotted as the primary oscillator.
Signal Logic – Long and short threshold values are configurable inputs. Crossing above the long threshold signals bullish bias; crossing below the short threshold signals bearish pressure.
Color Coding & Visual Feedback
Palette or custom colors reflect oscillator's directional state.
Additional glow lines increase signal emphasis.
Background shading highlights crossovers with mid-threshold for enhanced visibility.
Optional bar and candle coloring aligns price visualization with indicator signals.
Practical Use
Momentum Confirmation – Use a score rising above the long threshold as a potential bullish signal; falling below the short threshold may indicate bearish strength.
Volatility Normalization – Standardized deviation ensures consistency across assets of different volatility profiles.
Multi-Timeframe Adaptation – The wide selection of moving averages and loop depth settings allows calibration for scalping, swing, or long-term analysis.
Visual Clarity – Color-coordinated candles, bars, oscillator lines, and background simplify interpretation of signal context and trend structure.
Customization
Select from 16 moving average types to control sensitivity and smoothing.
Adjust loop depth (From/To) to define how far back deviation is compared.
Set custom threshold levels to reflect your preferred sensitivity to momentum shifts.
Customize visuals with predefined palettes or manual color settings for full chart integration.
⚠️Disclaimer
This indicator is a tool for technical analysis and does not provide guaranteed results. It should be used in conjunction with other analysis methods and proper risk management practices. The creators of this indicator are not responsible for any financial decisions made based on its signals.
Accumulation/Distribution Oscillator [MarkitTick]💡 This script presents a statistically normalized evolution of the classic Accumulation/Distribution (A/D) indicator, designed to transform unbounded volume flow into a bounded, actionable oscillator. By integrating Relative Volume (RVOL) weighting and Z-Score standardization, this tool isolates genuine institutional buying and selling pressure from market noise, offering a clear view of volume momentum regimes.
✨ Originality and Utility
The standard Accumulation/Distribution line is a cumulative total of volume flow, which often results in an unbounded line that drifts indefinitely with price trends. This makes it difficult for traders to identify overextended conditions or specific turning points.
This script solves that problem through a three-stage quantitative process:
Smart Volume Weighting: Instead of treating all volume equally, this indicator amplifies the impact of high-volume nodes using a Relative Volume (RVOL) filter. This ensures that significant institutional activity carries more weight than low-liquidity chopping.
Detrending: It subtracts a smoothed average (using ALMA, EMA, or others) from the raw A/D line to create a raw oscillator.
Normalization: Finally, it applies a Z-Score calculation to normalize the data. This bounds the oscillator around a zero mean, allowing for the application of Bollinger Bands to detect statistical extremes (2 or 3 standard deviations).
🔬 Methodology and Concepts
The calculation logic follows a strict quantitative pipeline:
● Money Flow Multiplier (MFM)
The core engine is the classic MFM calculation, which determines the location of the Close relative to the High-Low range. A Close near the High results in +1, while a Close near the Low results in -1.
● Advanced Volume Filtering
Before accumulation, the volume is processed through two filters:
RVOL Multiplier: If the current bar's volume exceeds its simple moving average (`rvol_len`), the volume is multiplied by a user-defined factor (`rvol_mult`). This emphasizes breakout candles.
Candle Strength (Optional): If enabled, weight is increased based on how close the price closes to the absolute high or low, rewarding decisive candle shapes.
● Z-Score Standardization
The script calculates the "Raw Oscillator" by subtracting a moving average (Signal Line) from the cumulative A/D Line. It then calculates the Z-Score of this raw value over a lookback period (`z_len`).
Formula: Z = (Value - Mean) / Standard Deviation
🎨 Visual Guide
The indicator renders a complex data set into an easy-to-read interface:
• The Oscillator (Line & Histogram)
The primary output is the Z-Score value.
Teal Histogram/Line: Represents Bullish momentum (Accumulation). Darker Teal indicates accelerating momentum (`osc > previous`), while lighter Teal indicates decaying momentum.
Red Histogram/Line: Represents Bearish momentum (Distribution). Darker Red indicates accelerating selling pressure, while lighter Red indicates exhaustion.
Gray: If the Trend Filter (200 EMA) or VWAP Filter is enabled and the signal opposes the trend, the histogram turns Gray to indicate a low-probability counter-trend signal.
• Bollinger Bands (Blue Bands)
These bands wrap around the oscillator line.
Upper Band: Usually set to +2 Standard Deviations. When the oscillator pierces this band, accumulation is statistically extreme (potential mean reversion or strong breakout).
Lower Band: Usually set to -2 Standard Deviations. Indicates statistically extreme distribution.
• Divergences
The script automatically detects and plots structural divergences:
Green Lines/Labels: Bullish Divergence. Price makes a Lower Low while the Oscillator makes a Higher Low.
Red Lines/Labels: Bearish Divergence. Price makes a Higher High while the Oscillator makes a Lower High.
• Multi-Timeframe (MTF) Dashboard
Located in the top right, this table displays the momentum status (BULL/BEAR) of the oscillator across three user-defined timeframes (default: 60min, 240min, Daily), allowing for fractal trend analysis.
📖 How to Use
This tool is best used for identifying trend exhaustion and hidden volume strength.
1. Trend Continuation
In a strong uptrend, look for the Histogram to remain Teal and above the Zero line. A pullback to the Zero line that bounces back up suggests buyers are stepping in to defend the trend.
2. Statistical Extremes
When the oscillator line breaks outside the Bollinger Bands, volume flow is significantly deviated from the norm.
If price is ranging, this often signals a reversal (Reversion to Mean).
If price is breaking out, this confirms strong impulse participation.
3. Divergence Reversals
A divergence is a leading signal. If price is pushing new highs but the A/D Oscillator fails to make a new high (Red Divergence Line), it indicates that the volume supporting the move is drying up, often preceding a correction.
⚙️ Inputs and Settings
● Oscillator Settings
Smoothing Type/Length: Choose between ALMA, EMA, SMA, etc., to smooth the A/D line. ALMA is default for its zero-lag properties.
ALMA Offset/Sigma: Fine-tune the responsiveness of the Arnaud Legoux Moving Average.
● Quant Filters
RVOL Lookback & Multiplier: Determines the threshold for "High Volume." Default is 1.5x average volume.
Z-Score Lookback: The period used to establish statistical significance (Default: 100).
Use VWAP/Trend Filter: Logical switches to gray out signals that contradict the macro trend (200 EMA) or the intraday mean (VWAP).
● Dashboard
Customize the three timeframes displayed in the MTF table to match your trading horizon (e.g., Scalpers might use 5m, 15m, 1h).
🔍 Deconstruction of the Underlying Scientific and Academic Framework
This indicator relies on the Law of Supply and Demand quantified through Standard Score (Z-Score) Statistics .
Standard Accumulation/Distribution is derived from the work of Marc Chaikin, positing that the proximity of the close to the high/low on high volume indicates the "smart money" flow. However, raw cumulative data suffers from heteroscedasticity (varying variance).
By applying Z-Score normalization:
Z = (x - μ) / σ
We transform the data into a standard normal distribution. This allows us to apply probability theory to volume analysis. A value of +2.0 is not merely "high"; it represents a volume flow intensity that falls within the top 2.2% of the data set (assuming normal distribution), providing a mathematically robust definition of "Overbought" or "Oversold" volume conditions.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
RSI Chebyshev Pro with Goldilocks Fractals - NR [NPR21]RSI Chebyshev Pro with Goldilocks Fractals - Non-Repaint
----------------------------------------------------------------------------------------------------------------------
CHART INFORMATION
Instrument: /MNQ (Micro E-mini Nasdaq-100 Futures)
Timeframe: 2-minute
Indicator: RSI Chebyshev Pro with Goldilocks Fractals - NR
----------------------------------------------------------------------------------------------------------------------
THE PROBLEM
Standard RSI is too choppy and noisy – it whipsaws all over the place in volatile markets like futures, giving false oversold/overbought signals that burn you on entries. I was sick of missing real reversals or getting stopped out on fakeouts. I wanted something smoother that still catches the big momentum shifts without lagging too much, plus actual market structure to make it more reliable for quick trades.
WHAT MAKES THIS UNIQUE
Unlike basic RSI indicators that use simple moving average smoothing, this combines several advanced techniques that aren't commonly found together:
1. Chebyshev Type I Filtering - Signal processing mathematics (not basic EMAs) that kills noise while keeping real swings sharp. Most RSI smoothing just blurs everything - this keeps responsiveness without the chop.
2. MAMA Adaptive Period - The moving average adapts to actual market cycles using the MESA algorithm, not fixed periods that lag in changing conditions.
3. RSI Pivot Fractals - These aren't price fractals slapped onto RSI. The fractals detect pivots directly on RSI values at extreme levels, with signals appearing back at the exact pivot bar (not current bar), showing you where the actual reversal happened.
4. True Non-Repainting Implementation - Signals appear delayed BUT locked at the historical pivot location forever. What you see in backtests is exactly what appeared live - no vanishing signals, no shifting.
5. All-in-One Integration - Instead of running 3-4 separate indicators (RSI + fractals + patterns + smoothing), everything works together in a single, optimized calculation with confluence built in.
This isn't just RSI with some Williams Fractals thrown on top - it's a complete rethink of how to identify high-probability RSI reversals using signal processing and adaptive algorithms.
ORIGIN & ENHANCEMENTS
Original Source: ChartPrime RSI Chebyshev indicator
Converted & Enhanced by: NPR21
What I Added:
✅ Converted to Pine Script v6 - Made this available to TradingView traders
✅ Goldilocks Fractals - RSI alone doesn't tell you about price structure. These fractals nail those "just right" pivot points where highs/lows confirm. I kept seeing RSI extremes that reversed hard when they lined up with fractals - this was the missing piece for confluence.
✅ 100% Non-Repainting - I've been burned by repainters. You'd backtest something, looks amazing, then live it vanishes or shifts. Lost real money on that. This is rock-solid: signals show delayed but once they're there, they're locked forever. Makes backtesting trustworthy.
✅ Candlestick Patterns - Engulfing, Morning Star, Evening Star detection for confluence
✅ Customizable Visuals - BUY/SELL labels, multiple display styles, full color/size control
✅ Complete Alert System - Get notified on all signal types
HOW IT WORKS
Chebyshev Filtering:
Like putting noise-canceling on your RSI – smooths out jittery ups and downs from random price spikes without flattening into useless lag. It's signal processing math that keeps important swings sharp while killing BS noise. Way better than simple EMA smoothing that blurs everything.
The Components:
Ultra-Smooth RSI - Chebyshev Type I filtering + adaptive MAMA algorithm
Goldilocks Fractals - Pivot detection confirmed after N bars (default 5)
Pattern Recognition - Detects Engulfing, Morning/Evening Star patterns
Visual Styles - Candle Trend (hollow green/solid red) or traditional candles
SIGNAL DELAY vs REPAINTING
✅ THIS HAS SIGNAL DELAY (GOOD) - NOT REPAINTING (BAD)
Signal Delay:
Signals appear after N bars (default 5 bar delay)
Once visible, NEVER disappears or moves
Perfect for backtesting - 100% reliable
What you see in history is what you'd see live
Why the Delay:
To confirm a pivot, we need to see price didn't go lower/higher in the next N bars. This confirmation makes signals reliable. The delay is the price for trustworthy signals.
Want faster? Drop Fractal Periods to 2-3 (more signals, less confirmation).
HOW I TRADE IT
My /MNQ Scalping (1-3 min charts):
LONG: BUY label appears (down fractal + maybe morning star/engulfing) → Check RSI crossing up from oversold (<30) → Confirm with volume → Long with stop below fractal low → Target 1-2R
SHORT: SELL label (up fractal + maybe evening star) → RSI from overbought → Short with stop above
Filter: Only longs in uptrends (watch the MA). Exit partials if momentum fades.
Best Timeframes: 1-5 min for futures scalping. Works on 15 min for swings but for pure scalping, stay under 5 min in high-vol sessions.
SETTINGS I USE
Standard Setup:
Length: 24, Smoothing: 3
Auto MA: ON, Multiplier: 1-2
Fractal Periods: 5 (good confirmation)
Choppy Days:
Smoothing to 5
Aggressive:
Fractal Periods to 3
Pro Tip: Pair with volume or price EMA. Love when fractal BUY + engulfing bull align. Use Candle Trend style. Test on demo first.
KEY SETTINGS
RSI: Length (24), Smoothing (3), Auto MA, Style (Candle/Candle Trend)
Fractals: Periods (5 = more reliable, 3 = faster/riskier), Label colors/sizes, Offsets
Alerts: All signals fire only on confirmed, non-repainting events
DISCLAIMERS
⚠️ Tool, not a complete system - use proper risk management
⚠️ Signals have delay for reliability - not for instant entries
⚠️ Best with price action, volume, other analysis
⚠️ Test on demo before live trading
Questions? Comment below!
NPR21
Forecast OscillatorGeneral Overview
The Forecast Oscillator Plus (FOSC+) is not just another oscillator. It is an advanced quantitative analysis tool developed to bridge the gap left by traditional momentum indicators (like RSI or Stochastic) which often suffer from "lag" or remain pinned in extreme zones during strong trends.
This "Plus" version has been specifically engineered and optimized for high-velocity scalping and day-trading on assets like NAS100 (Nasdaq) and XAUUSD (Gold) using ultra-short timeframes (1-min, 5-min).
🛡️ Why is FOSC+ Different?
1. Linear Regression Intelligence
At the heart of this script is a powerful Linear Regression (LinReg) engine. Instead of comparing price to a simple average, FOSC+ calculates the percentage deviation between the current price and its predicted theoretical trajectory. This allows the indicator to identify not just if the price is "high" or "low," but if it is abnormally distanced from its current trend, signaling an imminent Mean Reversion.
2. Adaptive Dynamic Bands (Volatility-Adjusted)
A major weakness of classic oscillators is the use of fixed levels (e.g., 80/20). FOSC+ utilizes Standard Deviation to generate overbought and oversold zones that "breathe" with the market.
During high volatility, the bands expand to filter out noise and premature entries.
During low volatility, they tighten to capture precise turning points.
3. Institutional Volume Filter (Anti-Fakeout)
To succeed in the Nasdaq market, you must follow the "Smart Money." This script integrates a Volume Spike Filter. A signal (Buy/Sell) is only triggered if the current candle's volume is significantly higher than its moving average (adjustable multiplier). This ensures you only enter trades backed by real institutional strength.
4. Algo-Ready for PineConnector
The code has been structured for seamless automation. With built-in EMA smoothing to reduce 1-minute "market chatter," the signals are clean and sharp, minimizing execution errors when sending orders to MetaTrader 5 via PineConnector.
📈 Technical Trading Guide
Buy Signals (Green Triangle): Occur when the oscillator crosses above the dynamic oversold band OR crosses back above the zero line, provided that volume confirms the impulse.
Sell Signals (Red Triangle): Occur when the oscillator crosses below the dynamic overbought band OR breaks below the zero line from above, with volume confirmation.
Momentum Histogram: The colored columns indicate acceleration strength. Excellent for Trailing Stops: as long as the histogram is growing, the momentum is in your favor!.
⚙️ Recommended Parameters
Length (14): The "Sweet Spot" for balancing reactivity and reliability.
Smooth Len (4): Essential for 1-min charts to eliminate micro-fluctuations without adding lag.
Volume Mult (1.15): Filters out the bottom 15% of volume to keep only significant candles.
⚠️ Stress-Tested for Real Conditions
This script has been rigorously backtested with Slippage settings ranging from 10 to 25 points. Even under difficult market conditions with high spreads, the indicator maintains a positive expectancy, making it a premier tool for traders using Standard or Raw accounts.
BNF (Kotegawa) Strategy [CB Algos]STRATEGY: BNF (Kotegawa) Mean Reversion Strategy
DEVELOPED BY: CB Algos
DESCRIPTION:
This indicator replicates the trading style of Takashi Kotegawa (BNF).
It calculates the percentage deviation of the price from the 25-period SMA.
HOW TO USE:
1. Look for 'Lime' bars (Extreme Buy) or 'Teal' bars (Moderate Buy). These indicate the price has dropped significantly below the average.
2. Look for 'Red' bars (Extreme Sell) as profit-taking zones.
3. Use the Info Panel to see the exact current deviation %.
Nova Capital MACDNova Capital MACD is a momentum oscillator based on the classic MACD calculation, enhanced with a clean 4-state histogram and optional signal labels.
Core calculation:
MACD Line = Fast MA − Slow MA
Signal Line = MA(MACD Line, Signal Length)
Histogram = MACD Line − Signal Line
Features in this version:
4-state histogram coloring (positive/negative + rising/falling) to visualize momentum changes more clearly.
Optional confirmed-bar behavior (signals trigger only on closed bars).
Optional zero-line directional filter:
Long labels only when MACD is below 0.
Short labels only when MACD is above 0.
Built-in alert conditions for Long/Short events.
How to use:
Watch histogram state changes for momentum transitions.
A Long label appears on MACD crossing above the Signal line (optionally below 0).
A Short label appears on MACD crossing below the Signal line (optionally above 0).
Note: This indicator is not a complete trading system. Use risk management and confirm signals with market context.
Apex Adaptive Trail [Neuro-Core Auto]Self-tuning trend and trade management framework
This version is a major functional upgrade of the original Apex Adaptive Trail.
It introduces an Auto-Pilot engine that dynamically adapts the indicator’s behavior to the active chart timeframe, reducing the need for manual tuning while preserving full transparency and control.
1. What Makes This Version Different
Unlike previous versions, v6 AUTO is not configured manually by default.
When Auto-Pilot is enabled, the script:
Detects the chart timeframe
Automatically adjusts ATR length and multiplier
Dynamically sets confidence thresholds
Modifies decay speed and add cooldowns
The result is a timeframe-aware execution model, not a fixed-parameter indicator.
Manual mode remains available for advanced users.
2. Core Architecture (Not a Simple Mashup)
This script is built as a single, state-driven system where each component influences the others.
Adaptive ATR Trail The trailing level defines both:
Trend direction
Dynamic exit logic
Its sensitivity is adjusted using volatility statistics and Auto-Pilot parameters.
Volatility Regime Detection
An ATR Z-Score is used to identify abnormal volatility conditions:
Expands the trail during high volatility
Restricts position adds when volatility is excessive
3. Confidence-Driven Decision Engine
Instead of binary signals, the script computes a normalized confidence score based on:
EMA distance (trend alignment)
ADX (trend strength)
Choppiness Index (market structure)
Daily higher-timeframe bias
All values are merged into a single confidence metric that controls:
Initial entries
Additional entries (pyramiding)
Emergency exits
4. Auto-Pilot Logic (Timeframe Adaptive)
When Auto-Pilot is active, the script selects a behavioral profile:
Turbo Mode (M1–M5): fast reaction, tight decay
Scalp Mode (M15): balanced sensitivity
Day Mode (M30): moderate trend persistence
Swing Mode (H1+): conservative and stable
This allows the same script to be used across multiple timeframes without retuning inputs.
5. Trade State & Risk Governance
The script internally tracks trade state:
FLAT LONG SHORT
Position adds are allowed only when: Price pulls back toward the adaptive trail
Confidence remains above a dynamic threshold
Volatility and cooldown conditions are respected
A Guardian system can force exits when confidence collapses during active trades.
6. How to Use
Follow the trail for trend direction INIT labels indicate potential trend starts
ADD labels indicate controlled continuation opportunities
Exit occurs on trail breaks or Guardian protection
Designed for trend-following and trade management, not for scalping or signal-only use.
7. Difference vs Previous Apex Adaptive Trail
Compared to earlier versions, update introduces:
Timeframe-aware Auto-Pilot configuration
Dynamic thresholds for entries, adds, and exits
Reduced need for manual parameter optimization
Improved usability for non-programmers
Earlier versions remain suitable for users who prefer full manual control.
8. Open-Source & Credits
This script is published as open-source under the Mozilla Public License 2.0.
© mentalExpert19609
All-In-One Trading Toolkit [wjdtks255]Title: All-In-One Trading Toolkit
Description: This professional toolkit integrates 5 essential indicators into one seamless interface to enhance your market analysis. It provides a comprehensive view of trend, momentum, and volatility.
Features:
Bollinger Bands: Tracks price volatility and potential reversal zones.
Ichimoku Cloud: Visualizes long-term trend support and resistance.
RSI Dashboard: Real-time momentum monitoring in the top-right corner.
MACD Signals: Direct Buy/Sell shape indicators on the chart for instant decision making.
Volume Profile: Identifies key price levels with high trading activity.
Strategy:
Entry: Follow the MACD crossover signals (Green/Red triangles) when they align with the Ichimoku Cloud direction.
Elite Risk-On/Risk-Off Oscillator (6 pairs) The Elite Risk-On / Risk-Off Oscillator is a market-regime indicator designed to determine whether conditions favor aggressive risk-taking or defensive capital preservation rather than to predict price direction.
It combines six carefully selected relative-strength pairs that measure risk appetite across the most important parts of the market:
IEI/HYG (credit stress, weighted most heavily because credit often leads equities)
SPHB/SPLV (equity risk appetite via high-beta versus low-volatility stocks)
IWM/SPY (liquidity and growth sensitivity through small-caps versus large-caps)
MTUM/QUAL (trend durability versus balance-sheet quality)
XLY/XLP (consumer cyclicality, wants versus needs)
EEM/SPY (global risk and dollar-sensitive capital flows)
Each pair is evaluated using relative performance against a moving-average and slope filter to classify it as risk-on (+1), neutral (0), or risk-off (-1), with defensive ratios inverted so that positive readings always indicate risk-on conditions; the weighted signals are then aggregated, normalized to a -100 to +100 scale, and smoothed into a single oscillator. Readings above approximately +40 indicate a supportive risk-on environment where trends are more likely to persist, readings between -40 and +40 reflect transitional or choppy conditions with lower conviction, and readings below -40 signal a risk-off regime where capital preservation and defense should be prioritized.
The indicator is intended as a context and position-sizing tool, helping traders align strategy aggressiveness with underlying market conditions rather than relying on forecasts or narratives.
MTF RSI Momentum BackgroundThis RSI Indicator for the main chart can help you to avoid "chewy" longs and catch momentum for quick, fluid scalping - long and short.
Inspired by TanHef
I discovered that longs turn out to be chewy if the 1min RSI is above midline, yet below the 5min and 15min RSI.
They seem to work like support and resistance in some way.
In order to catch Momentum from scratch I developped this BG Indicator, whith some help of AI (QWEN)
It would be nice to refer to Tanhef and me, if you use this code to enhance it any further.
Happy gains!
VWAP Band PositionVWAP Band Position — Synopsis
VWAP Band Position is a session-based oscillator that measures where price is trading relative to volume-weighted VWAP deviation bands.
The indicator uses true VWAP logic with volume-weighted variance, resetting each trading session to ensure accurate intraday behavior.
Values are normalized on a 0–1 scale:
0.0 → price at the lower VWAP deviation band
0.5 → price at VWAP (fair value)
1.0 → price at the upper VWAP deviation band
Readings above 1.0 or below 0.0 indicate price extension beyond VWAP deviation, highlighting potential exhaustion, continuation, or mean-reversion conditions depending on market context.
This tool is designed for intraday traders who use VWAP as a primary reference and want a clear, normalized view of price location within the VWAP range. It works well alongside trend-strength or momentum indicators to help filter entries, manage risk, and identify high-probability trade zones.
SMI Histogram State VisualizationStochastic Momentum Index (SMI) – State Histogram
One issue I always had with the standard SMI was how difficult it can be to clearly distinguish EMA crosses, especially when the oscillator is compressed near overbought or oversold levels. Important information is there — it’s just not always easy to read quickly.
This script is my solution to that problem.
By transforming the SMI into a state-based histogram, momentum, exhaustion, and EMA crosses become visually obvious at a glance.
How It Works
The Stochastic Momentum Index (SMI) measures price position relative to the midpoint of its recent high–low range, which makes it:
symmetric around zero
smoother than a classic stochastic
well suited for momentum analysis
Instead of a traditional line oscillator, the SMI is displayed as a color-coded histogram, while an EMA of the SMI is used as a confirmation signal.
Color-Coded Momentum States
The histogram dynamically changes color based on momentum state and EMA position:
🔴 Red – Oversold & Below EMA
Strong bearish momentum, downtrend still intact.
🟠 Orange – Oversold & Above EMA
Bearish momentum weakening, early bullish reversal potential.
🟢 Green – Overbought & Above EMA
Strong bullish momentum, trend continuation.
🟡 Yellow – Overbought & Below EMA
Bullish momentum weakening, early bearish reversal potential.
Faded colors represent neutral or transition phases near the zero line.
Best Use Cases
Quickly identifying EMA crosses inside overbought / oversold zones
Spotting early reversals before price reacts
Confirming momentum continuation
Filtering noise in ranging markets
This indicator is non-repainting and works on all timeframes.
Inputs
%K Length – Lookback window used to define the price range
%D Length – Smoothing applied to the momentum calculation
EMA Length – Confirmation smoothing applied to the SMI
Notes
This indicator is intended as a visual momentum and confirmation tool, not a standalone trading system.
Always use it in confluence with price action, market structure, and proper risk management.
eXquTrading FIB (Auto)eXquTrading FIB (Auto) — EMA144/169 Cloud + 8X Score + Auto Fibonacci (Single Set)
This indicator uses the EMA144/169 Cloud to define the market regime (LONG/SHORT/NEUTRAL), then generates BUY/SELL signals based on an 8-factor scoring system, while automatically drawing one Fibonacci set and extending it to the right so labels remain readable.
Features
Trend Regime (EMA144/169 Cloud):
Above cloud = LONG, below cloud = SHORT, inside cloud = NEUTRAL
8X Score Signals: confirmations from RSI, MACD, Stoch, Momentum, Volume, MFI, CCI, OBV(EMA)
Noise-reduction filters:
ATR-based cloud distance filter (reduces chasing signals)
ATR-based impulse candle filter (blocks oversized candles)
Cooldown (limits back-to-back signals)
Auto Fibonacci (Single Set):
Rebuilds on trend flip / fib invalidation / (optional) when a signal appears and no fib exists
Levels: -1.618, -1, -0.382, 0, 0.382, 0.5, 0.618, 1
Fib lines extend to the right on every bar (labels stay clean)
Settings (Quick tips)
Increase Minimum Confirmations (Score) → fewer but cleaner signals
Tighten ATR filters in choppy markets, loosen slightly in strong trends
Increase Right Pad Bars to keep right-side labels readable
Repaint / Execution Mode
Default: bar close only (more reliable)
Optional “Early Signal (Repaint Risk)” enables intrabar signals (faster, but may repaint)
Alerts
8X SCALP BUY
8X SCALP SELL
Disclaimer
For analysis/educational purposes only. Not financial advice. Always test settings on your own symbols and timeframes.
GS Quantum Radar [Elite Aesthetic - Bilingual]GS Quantum Radar / GS 量子雷達
Overview / 概述
Inspired by the quantum physics concept of "Ghostly action at a distance," the GS Quantum Radar is a high-end quantitative tool designed to capture the hidden correlations between two entangled assets (e.g., 2330.TW vs. TSM, or NVDA vs. AI sector). It identifies "Quantum Tension"—statistical deviations that signal imminent mean reversion or breakout opportunities.
受量子力學中**「幽靈般的遠距作用」**啟發,GS 量子雷達是一款專為捕捉資產間隱藏關聯而設計的高階量化工具(例如台積電與 TSM ADR,或 NVDA 與 AI 類股)。它能識別「量子張力」——即統計學上的異常偏離,預示著即將到來的均值回歸或突破機會。
Core Logic / 核心邏輯
The indicator operates on Statistical Arbitrage principles using a dynamic Z-Score model:該指標基於統計套利原理,採用動態 Z-Score 模型:
Entanglement Strength (Correlation) / 糾纏強度(相關性): It measures how synchronized the two assets are. Signals are only valid when the correlation is high, ensuring you aren't trading noise.衡量兩項資產的同步程度。僅在相關性高時訊號才有效,確保您避開市場雜訊。
Quantum Tension (Z-Score) / 量子張力 (Z-Score): Using the formula $Z = \frac{x - \mu}{\sigma}$, it calculates the price ratio deviation.透過公式 $$Z = \frac{x - \mu}{\sigma}$$
計算價差比率的偏離值。
$Z > +2$ (Red Column / 紅色柱狀): Particle A is overstretched (Overvalued). / 資產 A 擴張過度(相對高估)。
$Z < -2$ (Green Column / 綠色柱狀): Particle A is compressed (Undervalued). / 資產 A 壓縮過度(相對低估)。Shutterstock探索
Key Features / 主要功能
Bilingual Cyberpunk Dashboard / 中英雙語賽博龐克儀表板: Real-time monitoring of network status, entanglement strength, and tension levels with intuitive scale bars.即時監控網路狀態、糾纏強度與張力水平,配備直觀的比例尺進度條。
Aesthetic UI / 視覺美學: Designed with a Neon-Tokyo palette. Optimized for Dark Mode with a focus on high-density information display.採用霓虹東京配色。專為深色模式優化,專注於高密度資訊顯示。
Taiwan Style Color / 台股配色慣例: Red for Bullish/Up, Green for Bearish/Down.符合台股習慣:紅漲、綠跌。
How to Use / 如何使用
Select your pair / 選擇對象: Load the script on your primary chart (e.g., 2330.TW) and input the "Entangled Particle" (e.g., NASDAQ:TSM) in settings.在主圖表(如 2330.TW)掛載腳本,並在設定中輸入「糾纏對象」(如 NASDAQ:TSM)。
Monitor the Status / 監控狀態: Look for "STRONG BUY" or "TAKE PROFIT" advisories on the dashboard.觀察儀表板上的「強力買進 (STRONG BUY)」或「獲利了結 (TAKE PROFIT)」建議。
Execute / 執行交易: Enter when the "Quantum Tension" hits the $\pm 2.0$ thresholds while "Entanglement" is full.當「量子張力」達到 $\pm 2.0$ 臨界點且「糾纏強度」滿格時進場。
Disclaimer / 免責聲明Trading involves significant risk. This indicator is a statistical tool for decision support and does not guarantee profits. Use with proper risk management.交易涉及重大風險。本指標為輔助決策的統計工具,不保證獲利。請配合適當的風險管理使用。
XAUUSD Mean Reversion Strategy Gold (ATR and RSI)The XAUUSD Mean Reversion Strategy – Gold v6 is a non-repainting TradingView strategy designed specifically for Gold (XAUUSD). It capitalizes on price overextensions and statistically probable pullbacks toward the mean, a behavior Gold frequently exhibits during active market sessions.
🔍 Strategy Logic
Uses EMA 50 as the mean price reference
Detects overextended conditions with RSI (14)
Trades are taken only when price deviates significantly from the mean
Designed for both long and short positions
📈 Entry Conditions
Long Trades
Price below EMA 50
RSI below oversold level
Short Trades
Price above EMA 50
RSI above overbought level
📉 Exit & Risk Management
ATR-based Stop Loss adapts to Gold’s volatility
Take Profit Options
Mean reversion back to EMA
Fixed ATR-based risk-to-reward
One trade at a time to control exposure
⚙️ Features
Fully backtestable
Non-repainting
Optimized for XAUUSD volatility
Adjustable inputs for optimization
Works best on 5m–30m timeframes
📊 Recommended Use
XAUUSD (Gold)
London & New York sessions
Intraday mean-reversion traders
⚠️ This strategy is for educational and research purposes only. Always perform your own testing and risk management before using it in live markets.
Minervini TT RS Break (vs TOPIX)his script selects “buyable” stocks using Minervini’s Trend Template and filters for market leaders by relative strength versus TOPIX. A BUY signal appears when all TT conditions are met (price above 50/150/200-day MAs, 50>150>200 alignment, rising 200-day MA, +30% from 52-week low, within 25% of 52-week high) and RS is above the threshold, trending up, and making new highs. While BUY is active, an ENTRY signal is shown only when a pivot breakout (above the prior N-day high) occurs with a volume surge (multiple of average volume) and volatility contraction (lower ATR%). An RS BREAK is flagged when relative strength weakens (below its MA or MA turning down), indicating no-add and exit watch. Use BUY to build a watchlist, act only on ENTRY signals, and stop adding while prioritizing exit decisions when RS BREAK appears.
HTB Reversal Pattern - RSI DivergenceHow this Script Works
Pivot Points: The script looks for "peaks" and "valleys" in the RSI indicator.
Divergence Logic: * Bullish: If the current price low is lower than the previous low, but the RSI low is higher than the previous RSI low, it indicates the selling pressure is fading despite the price drop.
Bearish: If the current price high is higher than the previous high, but the RSI high is lower than the previous RSI high, it suggests buying momentum is weakening.
The "Lookback" Offset: Because pivot points require a few bars to the right to be confirmed (defined by lbR), the labels will appear on the chart with a small delay (default is 5 bars). This is necessary to prevent "repainting" (signals that disappear after they appear).






















