Join waitlist
Strategies / Trend / SMA 50/200 Trend Reversal

SMA 50/200 Trend Reversal

The system holds a long position while the 50-period SMA is above the 200-period SMA, and a short position while it is below. It reverses when the averages cross, with the new trade opened one bar after the exit.

TrendLong & shortIntradayEUR/USD2 min
n/aProfit factor
142,133Net profit USD
30.43%Win rate
1,308Trades
-51,117Max drawdown
109Avg trade

Best run of 26. EUR/USD, 2 min, spread 1, from run sweeps:2026-10-04-EURUSD-2m-opt.tsv:15.

Entry rules, long

  1. When flat, buy 1 contract at market if the 50-period SMA is above the 200-period SMA.

Entry rules, short

  1. When flat, sell short 1 contract at market if the 50-period SMA is below the 200-period SMA.

Exit rules

  1. An open short is bought back at market when the 50-period SMA rises above the 200-period SMA.
  2. An opposite signal closes the trade and reverses it on the following bar.

Test conditions

PeriodUp to 2026-10-04
InstrumentEUR/USD, 2 minutes
Spread1 points
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-10-04

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
EUR/USDBest run2 minn/a 1,30830.43142,133 USD-51,117
USD/JPYDailyn/a 7332.881,245,290 USD-1,024,400
USD/JPY10 minn/a 1,17936.47562,980 USD-254,900
USD/JPY30 minn/a 1,20934.00412,720 USD-286,300
USD/JPY5 minn/a 1,24435.21349,230 USD-182,580
USD/JPY3 minn/a 1,24233.74181,050 USD-123,440
EUR/USDDailyn/a 7445.95174,563 USD-31,840
Nikkei 225Dailyn/a 6235.4858,877 USD-22,118
EUR/USD4 hoursn/a 28035.7147,257 USD-46,970
Silver2 minn/a 1,23934.3820,916 USD-19,504
Silver10 minn/a 1,25131.1820,864 USD-18,027
US Crude Oil4 hoursn/a 13140.4613,551 EUR-7,984
GBP/USDDailyn/a 7342.4711,834 USD-11,012
Brent Crude4 hoursn/a 9642.7111,793 EUR-6,091
Nasdaq 1004 hoursn/a 18032.785,773 EUR-5,464
GoldDailyn/a 5945.764,277 EUR-1,631
S&P 500Dailyn/a 6251.613,514 EUR-2,003
Brent Crude2 minn/a 1,19033.702,852 EUR-2,472
Gold5 minn/a 1,21532.352,506 EUR-638
Gold10 minn/a 1,24133.762,296 EUR-1,466
Gold3 minn/a 1,20934.492,228 EUR-662
Gold1 hourn/a 71136.851,728 EUR-1,416
Gold4 hoursn/a 20834.131,636 EUR-1,209
Gold15 minn/a 1,22533.141,583 EUR-996
Gold2 minn/a 1,27433.591,450 EUR-921
Gold1 minn/a 1,27032.76834 EUR-750

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// SMA 50/200 Trend Reversal
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long & short
// Timeframe tested: 2 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

fast = Average[50](close)
slow = Average[200](close)

15 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

SMA
Read this firstKnown weaknesses2 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.

Questions

About this strategy

Can I run SMA 50/200 Trend Reversal in ProOrder?

Yes. The code is ProBuilder and runs as an automated ProOrder system. Backtest it on your own account with your own spread and position size before trading it live.

Which markets was it tested on?

It was tested on 26 market and timeframe combinations. The best run by trade count was EUR/USD, 2 minutes, with 1,308 trades.

How large was the drawdown?

The best run had a maximum drawdown of 51,117 USD at the tested position size, against a net result of 142,133 USD.

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

Slow MACD Slope

Best run on the same market, EUR/USD.

6.80 PF · 7,305 trades

ADX Filtered EMA Cross

Also a trend strategy.

1.15 PF · 607 trades

See how ProRealAlgos combines strategies like this into one automated portfolio.

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