Tag: Crossover

  • Stochastic Oscillator Strategy Backtest: The Whipsaw Machine

    Stochastic Oscillator Strategy Backtest: The Whipsaw Machine

    The Stochastic oscillator is on every beginner’s screen, usually with the same rule attached: buy when %K crosses above %D, sell when it crosses below. George Lane popularised it in the 1950s as a way to measure momentum’s speed. Seventy years later the %K/%D crossover is still one of the most-taught mechanical signals in retail trading. It also generates an astonishing number of trades — which turns out to be exactly the problem. We ran the standard 14/3/3 through the 7-Gate Protocol. Verdict: reject.

    Gate 0 — Fidelity

    Standard Stochastic: %K is a 3-period smoothing of where price closed within its 14-bar high–low range; %D is a 3-period average of %K. Buy when %K crosses above %D, sell when it crosses below. Identical to every platform’s default. The only question is what happens when you actually trade the cross.

    The Exact Rules

    • Signal: %K crosses above %D → long; %K crosses below %D → short (stop-and-reverse, always in the market)
    • Settings: 14 / 3 / 3 (the universal default)
    • Execution: on the bar close, no look-ahead; 0.06%/side; Binance spot Jul 2024–Jul 2026; BTC/ETH/SOL/BNB/XRP; 5m–1D; benchmark buy & hold
    Stochastic BTC 4H equity, net minus 65 percent while gross zero-fee curve is plus 25 percent, huge friction gap

    BTC 4H ends at −65%. But look at the two strategy lines: the gross (0-fee) curve actually finishes up around +25%, while the net curve craters. That gap is the entire story of this indicator — and it is the widest gap on this whole site.

    Gate 2 — The Most Fee-Sensitive Strategy We’ve Tested

    Stochastic friction gate, plus 25 percent gross becomes minus 65 percent at 0.06 percent fees, most fee sensitive

    At zero fees, BTC 4H makes +25%. Add a gentle 0.02%/side and it drops to −18%. At a realistic 0.06% it is −65%. At 0.11% it is −88%. There is a faint gross edge in the crossover — but harvesting it requires so many trades that the toll dwarfs the prize several times over. No strategy we’ve examined loses more of its gross return to friction than this one.

    Gate 6 — The Whipsaw Machine

    Stochastic whipsaw machine, 51098 trades on 5 minute over two years, trade count explodes on fast timeframes all minus 100

    Why so fee-sensitive? Because %K and %D cross constantly. On BTC 5m the crossover takes 51,098 trades in two years — and the account goes to −100%. 15m: 17,152 trades, −100%. 1h: 4,283, −100%. Even the 4H, the slowest liquid timeframe, is 1,053 trades. Every one of those round-trips pays a fee. Stochastic doesn’t lose because it’s wrong more often than right — it loses because it trades so much that being 40% right at a 0.06% toll is a guaranteed bleed.

    Gate 6b — Five Coins, and a Green Cell That Lies

    Stochastic five coins 4H all negative, zero of five positive

    On 4H, all five coins lose — BTC −65%, ETH −68%, SOL −82%, BNB −80%, XRP −16%. Zero of five. Now, one gate does flash green in the raw data: the out-of-sample split shows 5/5 coins positive over the final six months. Do not be fooled by it. That is a few dozen trades in one short window, sitting at the tail end of a run that lost 65–82% per coin. A brief green patch after a multi-year wipeout is the definition of small-sample noise. It is precisely why we weight full-sample behaviour and friction above a single lucky window — and why we report it rather than cherry-pick it.

    The Verdict: REJECT

    • Gate 0 — Indicator fidelitypass (standard 14/3/3 %K/%D)
    • Gate 1 — Sanitypass (signal on the closed bar, no look-ahead)
    • Gate 2 — Frictionfail (a +25% gross edge on 4H collapses to −65% net — the most fee-sensitive strategy on this site)
    • Gate 3 — Yearly consistencyfail (negative on every timeframe overall)
    • Gate 4 — Out-of-samplefail (noise) (the lone green gate — 5/5 over the last 6 months — is a few-dozen-trade window after a 65–82% loss, not an edge)
    • Gate 5 — Robustnessfail (0 of 6 %K × %D-smoothing cells positive)
    • Gate 6 — Multi-marketfail (0 of 5 coins positive on 4H)
    • Gate 7 — vs Buy & Holdfail (0 of 5 timeframes beat holding)

    The Stochastic crossover is a machine for converting your capital into exchange fees. There is a whisper of a gross edge in the signal, but the crossover fires so relentlessly — tens of thousands of times on fast charts — that friction buries it many times over. Being right 40% of the time is fine if you trade 20 times; it is fatal if you trade 20,000. Stochastic is a reasonable way to read momentum. As a mechanical trade trigger, it is the clearest over-trading autopsy we have.

    FAQ

    You should only take crosses in oversold/overbought zones.
    That’s a filter, and a fair idea — but it’s a different strategy, and “add conditions until the curve turns up” is how over-fitting happens. We tested the crossover that’s actually taught first. A zone-filtered version has to clear the same seven gates, friction included.

    Isn’t the daily better?
    Less catastrophic, not good: the daily is −33% and still loses to holding. Fewer trades means less fee bleed, but the underlying signal still doesn’t predict.

    Can I replicate this?
    Yes — Stochastic(14,3,3), public Binance data, 0.06%/side, %K/%D cross, five coins, five timeframes.

    See also: RSI 30/70, RSI Divergence, MACD crossover, Parabolic SAR, and the conditional passes VWAP and Ichimoku (daily).


    Disclaimer: educational research, not financial advice. Past performance does not guarantee future results. Never trade money you cannot afford to lose.

  • MACD Crossover Strategy Backtest: the 45-Year-Old Signal That Still Loses

    MACD Crossover Strategy Backtest: the 45-Year-Old Signal That Still Loses

    MACD is the indicator on the first page of every “Trading 101” course. Gerald Appel built it in the late 1970s; nearly half a century later it is still the default momentum tool on every platform, and the crossover rule — buy when the MACD line crosses above its signal line, sell when it crosses below — is taught to more beginners than any other single signal. So does the most famous crossover in trading actually work? We ran the standard 12/26/9 through the 7-Gate Protocol. Verdict: reject.

    Gate 00 — Fidelity

    Standard MACD: the 12-period EMA minus the 26-period EMA, with a 9-period EMA of that as the signal line. Identical to every platform’s default. Nothing to get wrong — the only question is whether crossing those lines makes money.

    The Exact Rules

    • Signal: MACD line crosses above the signal line → long; crosses below → short. Stop-and-reverse (always in the market)
    • Settings: 12 / 26 / 9 (the universal default)
    • Execution: on the bar close, no look-ahead; costs 0.06%/side; data Binance spot Jul 2024–Jul 2026, BTC/ETH/SOL/BNB/XRP, 5m–1D; benchmark buy & hold
    MACD crossover verdict reject, loses on all 5 timeframes, tiny gross edge eaten by fees
    MACD 12 26 9 signal line cross on BTC 4H, lagging momentum, price panel with buy sell and MACD histogram

    Notice the shape of the signal: MACD is a lagging momentum oscillator. By the time the lines cross, a good chunk of the move has already happened — you buy after the bounce and sell after the drop. That lag is the whole story.

    Gate 06a — Every Timeframe

    MACD net return by timeframe all negative, minus 100 on 5 minute, minus 4 on daily

    It loses on all five: 5m −100% (16,762 trades — the account is vaporised), 15m −100%, 1h −86%, 4h −23%, and even the daily is negative at −4%. Zero timeframes positive, zero beat buy & hold. A 33–38% win rate with tiny wins and a lagging entry is a recipe for exactly this.

    Gate 02 — Friction

    MACD BTC 4H gross plus 14 percent turns to minus 23 net after fees, 330 trades

    MACD does have a whisper of a gross edge — +14% on BTC 4H with zero fees. But it takes 330 trades to collect it, and at a realistic 0.06%/side that +14% becomes −23%. The edge is smaller than the toll. This is the recurring epitaph on this site: a real-but-tiny signal, over-traded until the fees are bigger than the alpha.

    Gate 04 — Out-of-Sample

    MACD out of sample, in-sample winner ETH plus 182 collapses to minus 26 out of sample

    Split 18 months in / 6 months out and the overfit is glaring. ETH looks like a miracle in-sample at +182% — and prints −26% out-of-sample. SOL +30% → −25%. XRP +15% → −28%. Only 1 of 5 coins is positive out-of-sample. The in-sample winners were the strategy memorising the past, not predicting the future.

    Gate 06b & 05 — Coins and Robustness

    MACD five coins 4H only 1 of 5 positive ETH outlier

    On 4H only 1 of 5 coins is profitable, and that one (ETH, +107%) is the same coin that dies out-of-sample. The parameter sweep is 1 of 12 positive, and neither popular fix helps: the zero-line cross is −55%, the EMA-200 trend filter −15%. Every reasonable variation of MACD-alone loses money.

    The Verdict: REJECT

    • Gate 0 — Indicator fidelitypass (standard 12/26/9, identical to every platform’s default)
    • Gate 1 — Sanitypass (signal on the closed bar, no look-ahead)
    • Gate 2 — Frictionfail (+14% gross → −23% net on 4H across 330 trades)
    • Gate 3 — Yearly consistencyfail (no consistently positive year on any timeframe)
    • Gate 4 — Out-of-samplefail (1/5 positive; ETH +182% in-sample → −26% out)
    • Gate 5 — Robustnessfail (1 of 12 sweep cells positive; zero-cross −55%, EMA-200 filter −15%)
    • Gate 6 — Multi-marketfail (1 of 5 coins on 4H, and that one is an outlier)
    • Gate 7 — vs Buy & Holdfail (0 of 5 timeframes beat buy & hold)

    The MACD crossover is 45 years old and still cannot beat holding. It is a lagging momentum signal: by the time the lines cross the move is half over, so you buy high-ish and sell low-ish, hundreds of times, paying a fee on each. There’s a faint gross edge, but it’s smaller than the cost of harvesting it, it doesn’t generalize across coins, and every in-sample star collapses out-of-sample. MACD is a fine way to read momentum on a chart. As a mechanical entry/exit, it’s a museum piece.

    FAQ

    Everyone says to combine MACD with RSI / a filter.
    Exactly — because MACD alone doesn’t work, which is what we measured. “Add a second indicator until the backtest looks good” is a different, and easily over-fit, strategy. We test the thing that’s actually taught: the crossover.

    Isn’t the daily at least okay?
    No — the daily is −4% and still loses to simply holding (+13%). It’s the least-bad timeframe, not a good one.

    Can I replicate this?
    Yes — MACD(12,26,9), public Binance data, 0.06%/side. Signal-line cross, five coins, five timeframes.

    See also: RSI 30/70, UT Bot, Range Filter, Bollinger reversion, and the conditional passes VWAP and Ichimoku (daily).


    Disclaimer: educational research, not financial advice. Past performance does not guarantee future results. Never trade money you cannot afford to lose.