logo
Developers

MACD Strategy

Script from: TradingViewSwingTrend followingMomentumScalping

For the MACD Strategy on BTCUSD 5-min chart: Enter a buy position when the price is above the EMA and the MACD line crosses above the signal line under 0. Enter a sell position when the price is below the EMA and the MACD line crosses below the signal line over 0. Enhancements include ATR StopLoss, alerts, a Parabolic SAR for added security, and adjustable parameters via PineConnector for integration.

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.

2,480backtests3 markets
22robust scoreranked median 52
0.54p-valueranked median 0.24
4/103pass quality gatebacktests >15 trades

Audit details

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

✓
Repainting audit
8 of 8 checks passed.
✓
Script availability
Open-source, still published on TradingView.
✕
Statistical edge
Average t-statistic 0.68 (p = 0.54), below the median of 1.98 (p = 0.24) for ranked strategies.
✓
Quality gate
4 of 103 backtests with more than 15 trades pass our quality gate.
✕
Robust score
22/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.68
avg. t-statistic
1.98
median, ranked strategies

Best 5 of 2,480 backtests

Shown for transparency.

SymbolTimeframeNet profitProfit factorTradesMax drawdown
New Zealand Dollar/U.S. Dollar
FX:NZDUSD
1D+205%1.538932%
UiPath, Inc.
NYSE:PATH
15m+103%1.2912632%
Kinder Morgan, Inc.
NYSE:KMI
1H+99%1.2612625%
SunPower Corporation
NASDAQ:SPWR
1H+91%1.2616037%
Southwestern Energy Company
NYSE:SWN
2H+77%1.409915%
⚠Selected after the fact: these are the best 5 of 2,480 runs, not what to expect from this strategy.

Is MACD Strategy profitable?

Not reliably, based on our tests. Across 2,480 backtests, 4 of 103 with more than 15 trades pass our quality gate. The best result is +205% on New Zealand Dollar/U.S. Dollar (1D, 89 trades). On average, its results are statistically indistinguishable from chance (p = 0.54).

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