CodeWave Rider - or about pullback trading

1
Hello fellow traders,

I wanted to share a custom indicator I've been developing called "Wave Rider EVO." This is an advanced MT5 indicator that combines adaptive trend following with pullback detection to identify potential trading opportunities.

What It Does

Wave Rider EVO is designed to identify both trend-following and counter-trend opportunities through a combination of adaptive statistical measures. It provides:
  • Trend direction identification using an Adaptive Gaussian Moving Average
  • Pullback detection through a WaveTrend oscillator with Z-Score normalization
      Visual entry signals with automatically calculated stop loss and take profit levels
    • A comprehensive dashboard displaying real-time trading statistics and signal information
    Core Components

    Adaptive Gaussian Moving Average

    The foundation of the indicator is an adaptive Gaussian MA that automatically adjusts its sensitivity based on market volatility. Unlike standard moving averages, it:
    • Applies Gaussian (normal distribution) weighting to price data
    • Adapts its standard deviation (sigma) based on current volatility
    • Creates a more responsive yet smooth price action filter
    WaveTrend Z-Score Analysis

    To identify potential pullbacks within a trend, the indicator:
    • Calculates a WaveTrend oscillator (similar to a normalized price deviation from an EMA)
    • Applies Z-Score normalization to identify statistically significant deviations
    • Triggers pullback signals when the Z-Score crosses specific thresholds (the small dots on the chart)
    Signal Generation with Risk Management

    The indicator generates two distinct types of signals:
    • Trend Signals: Standard trend-following entries when the price action confirms a new trend
    • Pullback Signals: Counter-trend opportunities when the WaveTrend Z-Score shows extreme readings during an established trend
    For each signal, the indicator automatically calculates and displays:
    • Stop Loss levels (based on ATR volatility)
    • Take Profit targets
    • Risk-to-Reward ratio
    Visual Dashboard

    One feature I'm particularly proud of is the comprehensive dashboard that displays:
    • Current trend direction and strength
    • Trend duration in bars
    • WaveTrend Z-Score value with visual meter
    • Latest signal details
    • Stop loss and take profit levels
    • Risk-to-reward ratio
    This gives you a quick overview of the current market conditions without scrolling through charts or indicators.

    The indicator is highly customizable - you can adjust the Gaussian MA length, Z-Score thresholds, and risk parameters to match your trading style.

    Would appreciate any feedback, especially from those who try it out!

    AlgoAlex
    My professional trading tools:
    Mql5 "alexf81"

    Re: Wave Rider - or about pullback trading

    2
    AlgoAlex811 wrote: Fri May 02, 2025 1:36 am Hello fellow traders,
    I wanted to share a custom indicator I've been developing called "Wave Rider EVO." This is an advanced MT5 indicator that combines adaptive trend following with pullback detection to identify potential trading opportunities.

    What It Does

    Wave Rider EVO is designed to identify both trend-following and counter-trend opportunities through a combination of adaptive statistical measures. It provides:

    Trend direction identification using an Adaptive Gaussian Moving Average
    Pullback detection through a WaveTrend oscillator with Z-Score normalization
    Visual entry signals with automatically calculated stop loss and take profit levels
    A comprehensive dashboard displaying real-time trading statistics and signal information

    Core Components

    Adaptive Gaussian Moving Average
    The foundation of the indicator is an adaptive Gaussian MA that automatically adjusts its sensitivity based on market volatility. Unlike standard moving averages, it:

    Applies Gaussian (normal distribution) weighting to price data
    Adapts its standard deviation (sigma) based on current volatility
    Creates a more responsive yet smooth price action filter

    WaveTrend Z-Score Analysis
    To identify potential pullbacks within a trend, the indicator:

    Calculates a WaveTrend oscillator (similar to a normalized price deviation from an EMA)
    Applies Z-Score normalization to identify statistically significant deviations
    Triggers pullback signals when the Z-Score crosses specific thresholds (the small dots on the chart)

    Signal Generation with Risk Management
    The indicator generates two distinct types of signals:

    Trend Signals: Standard trend-following entries when the price action confirms a new trend
    Pullback Signals: Counter-trend opportunities when the WaveTrend Z-Score shows extreme readings during an established trend

    For each signal, the indicator automatically calculates and displays:

    Stop Loss levels (based on ATR volatility)
    Take Profit targets
    Risk-to-Reward ratio

    Visual Dashboard

    One feature I'm particularly proud of is the comprehensive dashboard that displays:

    Current trend direction and strength
    Trend duration in bars
    WaveTrend Z-Score value with visual meter
    Latest signal details
    Stop loss and take profit levels
    Risk-to-reward ratio

    This gives you a quick overview of the current market conditions without scrolling through charts or indicators.



    The indicator is highly customizable - you can adjust the Gaussian MA length, Z-Score thresholds, and risk parameters to match your trading style.
    Would appreciate any feedback, especially from those who try it out!

    AlgoAlex
    I would like to thank you for sharing such an indicator with everyone, I started testing it and so far it looks perfect
    These users thanked the author Akela for the post:
    AlgoAlex811

    Re: Wave Rider - or about pullback trading

    3
    AlgoAlex811 wrote: Fri May 02, 2025 1:36 am Hello fellow traders,
    I wanted to share a custom indicator I've been developing called "Wave Rider EVO." This is an advanced MT5 indicator that combines adaptive trend following with pullback detection to identify potential trading opportunities.

    What It Does

    Wave Rider EVO is designed to identify both trend-following and counter-trend opportunities through a combination of adaptive statistical measures. It provides:

    Trend direction identification using an Adaptive Gaussian Moving Average
    Pullback detection through a WaveTrend oscillator with Z-Score normalization
    Visual entry signals with automatically calculated stop loss and take profit levels
    A comprehensive dashboard displaying real-time trading statistics and signal information

    Core Components

    Adaptive Gaussian Moving Average
    The foundation of the indicator is an adaptive Gaussian MA that automatically adjusts its sensitivity based on market volatility. Unlike standard moving averages, it:

    Applies Gaussian (normal distribution) weighting to price data
    Adapts its standard deviation (sigma) based on current volatility
    Creates a more responsive yet smooth price action filter

    WaveTrend Z-Score Analysis
    To identify potential pullbacks within a trend, the indicator:

    Calculates a WaveTrend oscillator (similar to a normalized price deviation from an EMA)
    Applies Z-Score normalization to identify statistically significant deviations
    Triggers pullback signals when the Z-Score crosses specific thresholds (the small dots on the chart)

    Signal Generation with Risk Management
    The indicator generates two distinct types of signals:

    Trend Signals: Standard trend-following entries when the price action confirms a new trend
    Pullback Signals: Counter-trend opportunities when the WaveTrend Z-Score shows extreme readings during an established trend

    For each signal, the indicator automatically calculates and displays:

    Stop Loss levels (based on ATR volatility)
    Take Profit targets
    Risk-to-Reward ratio

    Visual Dashboard

    One feature I'm particularly proud of is the comprehensive dashboard that displays:

    Current trend direction and strength
    Trend duration in bars
    WaveTrend Z-Score value with visual meter
    Latest signal details
    Stop loss and take profit levels
    Risk-to-reward ratio

    This gives you a quick overview of the current market conditions without scrolling through charts or indicators.



    The indicator is highly customizable - you can adjust the Gaussian MA length, Z-Score thresholds, and risk parameters to match your trading style.
    Would appreciate any feedback, especially from those who try it out!

    AlgoAlex
    Thanks for this, Very useful.

    Re: Wave Rider - or about pullback trading

    4
    A very excellent indicator. I noticed that it performed very well on XAUUSD and US500. However, in the currency pairs EURUSD and GBPUSD, the arrow signals appeared too frequently. I used the default parameters of the indicator in the 5-minute cycle. Could you recommend modifying those parameters to optimize the indicator's performance in the currency pairs?

    IdeaRe: Wave Rider - or about pullback trading

    5
    muli0506 wrote: Sat Jun 13, 2026 9:50 am A very excellent indicator. I noticed that it performed very well on XAUUSD and US500. However, in the currency pairs EURUSD and GBPUSD, the arrow signals appeared too frequently. I used the default parameters of the indicator in the 5-minute cycle. Could you recommend modifying those parameters to optimize the indicator's performance in the currency pairs?
    Strong point, this indicator works flawlessly with Indices, Energy and Stocks but for some reason a bit of volatility throws it off and it's quite noticeable during high impact news etc.

    Apart from this, it's actually perfect.

    That saying, the way it signals so well is still a bit of a mystery to me!

    Re: Wave Rider - or about pullback trading

    7
    muli0506 wrote: Sat Jun 13, 2026 9:50 am A very excellent indicator. I noticed that it performed very well on XAUUSD and US500. However, in the currency pairs EURUSD and GBPUSD, the arrow signals appeared too frequently. I used the default parameters of the indicator in the 5-minute cycle. Could you recommend modifying those parameters to optimize the indicator's performance in the currency pairs?
    Hi, in fact I created this indicator to perform on indices and commodities (but it works well also on Bitcoin), but its performance falls on forex due to the ATR calculation. I'm not going to fix this, but I will share a newer version soon!
    These users thanked the author AlgoAlex811 for the post (total 2):
    forexjoe85, muli0506
    My professional trading tools:
    Mql5 "alexf81"

    Re: Wave Rider - or about pullback trading

    8
    Wave Rider v6.1

    What's new?

    1. Baseline Engine — 8 algorithms in one indicator

    Instead of hard-coding one MA, you choose the model that fits your instrument:

    - KAMA (Kaufman Adaptive MA) — speeds up in trends, slows down in chop, using an efficiency ratio.
    - Ahrens Moving Average — a triple-smoothed adaptive MA, generally smoother than KAMA at the same responsiveness.
    - Kernel Epanechnikov — a compact-support kernel-weighted average; reacts fast near the current bar and fades weight quickly going back.
    - Kernel Rational Quadratic — a heavy-tailed kernel variant, gives more weight to older bars than Epanechnikov, useful on noisier instruments.
    - VHMA (Vertical Horizontal MA) — adapts its smoothing factor using a Vertical Horizontal Filter (trend efficiency squared).
    - EPF (Edge Preserving Filter) — stays flat in range conditions and snaps quickly when an "edge" (genuine breakout) is detected, useful for avoiding lag at trend starts.
    - TRAMA (Trend Regularity Adaptive MA) — adapts based on how consistently the market is making new highs/lows over the lookback window, not just on raw volatility.
    - PKF (Parametric Kalman Filter) — a self-tuning Kalman-style estimator that derives its own gain from the ratio of bar-to-bar noise vs. deviation from a reference SMA, no fixed smoothing constant needed.

    Every baseline (where applicable) has an **Adaptive Mode** toggle that scales its responsiveness based on recent volatility, plus a configurable lookback (`BaselineLength`) and applied price.

    2. Trend Detection — Slope-Based, Not Crossover-Based

    Wave Rider does not flip trend on price crossing the baseline (too noisy). Instead it measures the **slope** of the baseline over `SlopePeriod` bars and compares it against a threshold:

    - Threshold Mode: Auto — the threshold self-calibrates from the 25th percentile of recent ATR values, so it adapts automatically to current volatility.
    - Threshold Mode: Manual — you set a fixed ATR multiplier.

    Two slope methods are available:
    - Smoothed Delta — straightforward: trend flips when slope crosses the threshold in either direction.
    - Hysteresis — uses separate enter/exit thresholds (controlled by `HysteresisFactor`) to avoid whipsaws in choppy slope conditions; once "locked" into a direction it requires a stronger reversal to flip back.

    3. Linear Trajectory — Regression Channel for Pullback Entries

    A second, independent layer: a rolling linear regression line (`LT_Length` bars) with a statistically-derived band around it. You choose:

    Deviation type (how the band width is calculated): ATR, Standard Deviation, Mean Absolute Deviation, Median Absolute Deviation (most robust to outliers), Gaussian-weighted deviation, Historical Volatility (log-return based), ATR Percent, raw True Range, Residual StdDev (orthogonal to the regression line itself), or Standard Error.

    Confidence level: 90%, 95%, or 99% — sets the z-score multiplier on the deviation.

    Filter mode: None, Double-Pass Smoothing, or Zero-Lag enhancement, for extra smoothing/responsiveness on the regression baseline itself.

    The bands also use a "fitted deviation" calculation that measures actual high/low wick excursions above/below the fitted line rather than a purely symmetric band, so upper and lower bands can differ in width based on real price behavior.

    An R-Squared value is computed internally as a goodness-of-fit metric for the regression (how well price is actually trending vs. just chopping around the line).

    4. Signals

    - Trend signals — arrow printed when the slope-based trend flips direction.
    - Pullback signals — the higher-conviction setup: printed when price breaks out of the Linear Trajectory band *in the same direction* as the current slope-based trend. This is the "wave" entry.
    - Close signals — printed when the LT band breaks in a direction that contradicts the slope trend, suggesting the current position should be closed.
    - Stop loss / take profit lines are auto-plotted using ATR multipliers (`StopLossATRMultiplier`, `TakeProfitATRMultiplier`) for every pullback signal.

    5. Live Dashboard & Performance Tracking

    An on-chart panel shows current baseline, trend state, hysteresis lock status, live slope value, LT trend state, and the active signal's SL/TP/R:R. Optionally, it also tracks closed-signal statistics in real time: win rate, wins/losses/active count, profit factor, average R, and current win/loss streak — so you can evaluate whether a given baseline/threshold/deviation combination is actually working on the instrument and timeframe you're trading, without needing to run a separate backtest.

    6. Practical Notes

    - Built for chart-window display with colored candles reflecting current trend state.
    - Works on any symbol/timeframe; but originally developed and tested on NAS100/US100 and BTC, M1–M5.
    - No external indicator handles besides ATR — all baseline math is computed internally.

    Feedback and parameter combos that worked well for you are welcome — as well as any bug you may finds or improvements/concepts you would like to see in a next version.
    These users thanked the author AlgoAlex811 for the post (total 5):
    Shink, muli0506, thomdel, eduarescobar, dilong
    My professional trading tools:
    Mql5 "alexf81"

    Re: Wave Rider - or about pullback trading

    10
    AlgoAlex811 wrote: Thu Jun 18, 2026 2:27 am Wave Rider v6.1

    What's new?

    1. Baseline Engine — 8 algorithms in one indicator

    Instead of hard-coding one MA, you choose the model that fits your instrument:

    - KAMA (Kaufman Adaptive MA) — speeds up in trends, slows down in chop, using an efficiency ratio.
    - Ahrens Moving Average — a triple-smoothed adaptive MA, generally smoother than KAMA at the same responsiveness.
    - Kernel Epanechnikov — a compact-support kernel-weighted average; reacts fast near the current bar and fades weight quickly going back.
    - Kernel Rational Quadratic — a heavy-tailed kernel variant, gives more weight to older bars than Epanechnikov, useful on noisier instruments.
    - VHMA (Vertical Horizontal MA) — adapts its smoothing factor using a Vertical Horizontal Filter (trend efficiency squared).
    - EPF (Edge Preserving Filter) — stays flat in range conditions and snaps quickly when an "edge" (genuine breakout) is detected, useful for avoiding lag at trend starts.
    - TRAMA (Trend Regularity Adaptive MA) — adapts based on how consistently the market is making new highs/lows over the lookback window, not just on raw volatility.
    - PKF (Parametric Kalman Filter) — a self-tuning Kalman-style estimator that derives its own gain from the ratio of bar-to-bar noise vs. deviation from a reference SMA, no fixed smoothing constant needed.

    Every baseline (where applicable) has an **Adaptive Mode** toggle that scales its responsiveness based on recent volatility, plus a configurable lookback (`BaselineLength`) and applied price.

    2. Trend Detection — Slope-Based, Not Crossover-Based

    Wave Rider does not flip trend on price crossing the baseline (too noisy). Instead it measures the **slope** of the baseline over `SlopePeriod` bars and compares it against a threshold:

    - Threshold Mode: Auto — the threshold self-calibrates from the 25th percentile of recent ATR values, so it adapts automatically to current volatility.
    - Threshold Mode: Manual — you set a fixed ATR multiplier.

    Two slope methods are available:
    - Smoothed Delta — straightforward: trend flips when slope crosses the threshold in either direction.
    - Hysteresis — uses separate enter/exit thresholds (controlled by `HysteresisFactor`) to avoid whipsaws in choppy slope conditions; once "locked" into a direction it requires a stronger reversal to flip back.

    3. Linear Trajectory — Regression Channel for Pullback Entries

    A second, independent layer: a rolling linear regression line (`LT_Length` bars) with a statistically-derived band around it. You choose:

    Deviation type (how the band width is calculated): ATR, Standard Deviation, Mean Absolute Deviation, Median Absolute Deviation (most robust to outliers), Gaussian-weighted deviation, Historical Volatility (log-return based), ATR Percent, raw True Range, Residual StdDev (orthogonal to the regression line itself), or Standard Error.

    Confidence level: 90%, 95%, or 99% — sets the z-score multiplier on the deviation.

    Filter mode: None, Double-Pass Smoothing, or Zero-Lag enhancement, for extra smoothing/responsiveness on the regression baseline itself.

    The bands also use a "fitted deviation" calculation that measures actual high/low wick excursions above/below the fitted line rather than a purely symmetric band, so upper and lower bands can differ in width based on real price behavior.

    An R-Squared value is computed internally as a goodness-of-fit metric for the regression (how well price is actually trending vs. just chopping around the line).

    4. Signals

    - Trend signals — arrow printed when the slope-based trend flips direction.
    - Pullback signals — the higher-conviction setup: printed when price breaks out of the Linear Trajectory band *in the same direction* as the current slope-based trend. This is the "wave" entry.
    - Close signals — printed when the LT band breaks in a direction that contradicts the slope trend, suggesting the current position should be closed.
    - Stop loss / take profit lines are auto-plotted using ATR multipliers (`StopLossATRMultiplier`, `TakeProfitATRMultiplier`) for every pullback signal.

    5. Live Dashboard & Performance Tracking

    An on-chart panel shows current baseline, trend state, hysteresis lock status, live slope value, LT trend state, and the active signal's SL/TP/R:R. Optionally, it also tracks closed-signal statistics in real time: win rate, wins/losses/active count, profit factor, average R, and current win/loss streak — so you can evaluate whether a given baseline/threshold/deviation combination is actually working on the instrument and timeframe you're trading, without needing to run a separate backtest.

    6. Practical Notes

    - Built for chart-window display with colored candles reflecting current trend state.
    - Works on any symbol/timeframe; but originally developed and tested on NAS100/US100 and BTC, M1–M5.
    - No external indicator handles besides ATR — all baseline math is computed internally.

    Feedback and parameter combos that worked well for you are welcome — as well as any bug you may finds or improvements/concepts you would like to see in a next version.
    Hi, looks good. Can we have a mt4 version of this indicator? Many dont use mt5 as main, just like me my main platform is mt4. I could help translating the code to mql4 if you need my assistance, i code on mql4 mostly. Thanks for the indicator though
    John