logo
Developers

Stochastic Moving Average

Script from: TradingViewSwingTrend followingMomentumPullbackBot

The Stochastic Moving Average strategy leverages EMAs with the Stochastic Oscillator for trend following. Criteria include the Fast EMA above the Slow EMA, Stochastic K% in the oversold range, a K% over D% crossover, and price closure between EMAs for long positions. Settings allow adjustment of trade direction, volume, risk and reward based on ATR volatility stops and reference market conditions for alignment with overall market trends. Updates to the script include alert functions and improved default settings.

Audit verdict

Not rankedUpdated Jul 28, 2026

No reliable edge found

Its average result can't be told apart from chance, so it stays out of our rankings. The script itself passed our repainting audit.

1,647backtests3 markets
23robust scoreranked median 52
0.48p-valueranked median 0.24
4/61pass quality gatebacktests >15 trades

Audit details

How we decide whether a strategy enters our rankings. Read the methodology →

✓
Repainting audit
7 of 8 checks passed.
✓
Script availability
Open-source, still published on TradingView.
✕
Statistical edge
Average t-statistic 0.77 (p = 0.48), below the median of 1.98 (p = 0.24) for ranked strategies.
✓
Quality gate
4 of 61 backtests with more than 15 trades pass our quality gate.
✕
Robust score
23/100, below the median of 52 for ranked strategies.

How its evidence compares

The t-statistic measures how far the average result sits from zero relative to its noise. Below about 2, it is within what random entries produce.

0.77
avg. t-statistic
1.98
median, ranked strategies

Best 5 of 1,647 backtests

Shown for transparency.

SymbolTimeframeNet profitProfit factorTradesMax drawdown
10 Year T-Note Futures
CBOT:ZN1!
4H+432%1.737441%
U.S. TREASURY BOND FUTURES
CBOT:ZB1!
2H+155%1.13119107%
U.S. TREASURY BOND FUTURES
CBOT:ZB1!
4H+112%1.138739%
Verizon Communications Inc.
NYSE:VZ
1H+47%1.501079%
SunPower Corporation
NASDAQ:SPWR
4H+42%2.32488%
⚠Selected after the fact: these are the best 5 of 1,647 runs, not what to expect from this strategy.

Is Stochastic Moving Average profitable?

Not reliably, based on our tests. Across 1,647 backtests, 4 of 61 with more than 15 trades pass our quality gate. The best result is +432% on 10 Year T-Note Futures (4H, 74 trades). On average, its results are statistically indistinguishable from chance (p = 0.48).

Strategies that passed our audit

Ranked strategies from the same family, ordered by robust score.

Explore the best Trading & TradingView strategies

Stop trading blindly. Explore quality-gated backtests and improve your trading skills with data.

Start for free