Trend-Following Rules for the Stochastic Oscillator
Summary
This article tests a set of stochastic oscillator strategies that reinterpret extreme readings as trend signals. The baseline follows the conventional approach of buying below the oversold threshold and selling above the overbought threshold. The revised rule instead buys on an overbought reading when the daily close is above the average of recent highs and lows, and sells on an oversold reading when the close is below that midpoint. It then adds confirmation from the average open and close prices of recent hourly candles.
The reported backtests use EURUSD data over 2021–2025, consistent position sizing, one position at a time, and randomized execution delays. The article reports that four of five variants performed well and identifies the version combining range direction with lower-timeframe confirmation as the preferred iteration; one added variant introduced excess signal noise. These results come from a specific historical test and do not establish robustness beyond it. The article supplies MQL5 implementation examples, but its claims should be treated as test-specific rather than a general guarantee of performance.
Key ideas
- The classical stochastic approach trades against extreme readings, while the proposed interpretation treats them as trend signals.
- The revised daily rule confirms overbought and oversold readings with the close relative to a recent trading-range midpoint.
- Hourly candle open and close averages are added as lower-timeframe trend confirmation.
- The article compares five variants using common position sizing and test conditions on EURUSD historical data.
- Reported results favor a version with range direction and hourly confirmation, while an additional variant added too much noise.
- The backtest findings are limited to the tested instrument, period, and assumptions.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.