Join waitlist
Strategies / Trend / MACD Trend Day Trader

MACD Trend Day Trader Strategy

Price above the 200 period SMA and a positive MACD(12,26,9) histogram put the system long. Below the SMA with a negative histogram, it goes short. Each trade has a 1% stop and a 3% target, and an opposite signal flips the position.

TrendLong & shortIntradayEUR/USD2 min
2.06Profit factor
487,386Net profit USD
19.46%Win rate
4,783Trades
-53,806Max drawdown
102Avg trade

Best run of 16. EUR/USD, 2 min, spread 1, from run pf:2026-09-24-EURUSD-2m.tsv:5.

Entry rules, long

  1. Close is above the 200-period SMA

Entry rules, short

  1. Close is below the 200-period SMA

Exit rules

  1. Stop loss at 1% from entry
  2. An opposite signal reverses the position

Test conditions

PeriodUp to 2026-09-25
InstrumentEUR/USD, 2 minutes
Spread1 points
Contracts1
Starting capital1,000,000
CostsSpread only. Commissions and overnight financing are not included.
BarsUp to 200,000 bars, fewer where the instrument has less history
Last tested2026-09-25
Parameters (7)
positionSize
Contracts per trade
1
trendPeriod
Trend SMA length
200
macdFast
MACD fast length
12
macdSlow
MACD slow length
26
macdSignalPeriod
MACD signal length
9
stopLossPct
Protective stop, percent of entry price
1
takeProfitPct
Profit target, percent of entry price
3

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
EUR/USDBest run2 min2.06 4,78319.46487,386 USD-53,806
EUR/USD3 min1.80 4,51219.81320,038 USD-36,504
EUR/USD5 min1.43 4,25319.89151,962 USD-34,084
USD/JPYDaily1.28 1,03228.292,702,350 JPY-382,610
USD/JPY30 minn/a 3,70421.33352,160 JPY-343,430
USD/JPY10 minn/a 3,75820.78319,550 JPY-190,140
EUR/USDDailyn/a 97227.47107,120 USD-31,597
EUR/USD4 hoursn/a 1,20324.7758,507 USD-51,528
Nikkei 225Dailyn/a 2,03527.8638,685 USD-19,774
GBP/USDDailyn/a 99426.5614,062 USD-8,831
Nasdaq 10030 minn/a 4,43223.0411,399 EUR-5,084
Gold1 hourn/a 3,13523.292,607 EUR-811
Gold4 hoursn/a 1,59724.171,824 EUR-939
Gold5 minn/a 4,12519.011,291 EUR-1,038
Gold3 minn/a 4,03920.331,184 EUR-876
GoldDailyn/a 2,16625.35826 EUR-810

Charts

Results by run

Top 10 of 16 runs. The full list is in the table above.

Above 1.0 made money, below 1.0 lost money.

The code

ProBuilder, rewritten to house standard

// ============================================================
// MACD Trend Day Trader
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long & short
// Timeframe tested: 2 minutes
// ============================================================

// --- Settings ---
DEFPARAM CumulateOrders = false

// --- Parameters ---
positionSize = 1          // contracts per trade
trendPeriod = 200         // trend SMA length
macdFast = 12             // MACD fast length
macdSlow = 26             // MACD slow length
macdSignalPeriod = 9      // MACD signal length
stopLossPct = 1           // protective stop, percent of entry price
takeProfitPct = 3         // profit target, percent of entry price

// --- Indicators ---
trendMA = Average[trendPeriod](close)
macdHistogram = MACD[macdFast, macdSlow, macdSignalPeriod](close)

17 more lines: the entry and exit rules.

Setup

How to load it

  1. Copy the code with the copy button on the code block.
  2. In ProRealTime, open a chart of the instrument and timeframe you want to test, then open ProOrder > New trading system and choose "Create with programming".
  3. Paste the code, give the system a name and save it.
  4. Click "Backtest", set your own spread and position size, and run it before you consider trading it live.

Indicators used

SMAMACD
Longer historyRe-run on up to 1,000,000 barsEUR/USD · 2 min · older data -229,549.00 USD

With 996,000 bars available on EUR/USD 2 minutes, net profit fell to USD 257,837 from USD 487,386 in the standard run, because the older data alone lost USD 229,549.

EUR/USD · 2 min

Bars available996,000
Net, standard 200,000-bar run487,386.00 USD
Net, long run257,837.00 USD
Net on the older data alone-229,549.00 USD
Read this firstKnown weaknesses4 points
  • The win rate is low at 19.46% on EUR/USD 2 minutes. Long losing streaks are normal with a 1% stop and a 3% target.
  • The long history test was much weaker. Over 996000 bars the net profit fell to 257,837 USD, and the older part alone came to -229,549 USD.
  • Drawdowns are large on some markets. USD/JPY 30 minutes made 352,160 JPY but drew down 343,430 JPY.
  • It reverses on every opposite signal, so it is almost always in the market and fully exposed to costs on a 2 minute chart.

Questions

About this strategy

Can this day trader run in ProOrder?

Yes. It is fully automated with a fixed stop, a fixed target and reversal on opposite signals.

Where did it work?

EUR/USD was strongest: 2 minutes (profit factor 2.06), 3 minutes (1.8) and 5 minutes (1.43). USD/JPY Daily reached 1.28, while Gold showed small profits on every timeframe tested.

What drawdown should I plan for?

On EUR/USD 2 minutes at 1 contract the worst drawdown was 53,806 USD. That is the figure to size against.

Why such a short timeframe?

The 2 minute EUR/USD chart gave the best result. The longer 996000 bar rerun showed the edge was far weaker in older data, so the timeframe choice is sensitive to the test period.

Related

Strategies like this one

Bollinger Squeeze

Uses the same indicator.

14.30 PF · 86 trades

Slow MACD Slope

Best run on the same market, EUR/USD.

6.80 PF · 7,305 trades

Candle Body Sum Daily

A similar profit factor.

2.05 PF · 168 trades

Follow real trend systems as they run. Join the ProRealAlgos waitlist.

The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.

Past backtest results do not guarantee future results. This is not financial advice. Curated and maintained by ProRealAlgos. ProRealTime™ is a trademark of ProRealTime SAS. prorealalgos.comStatsDocs