Join waitlist
Strategies / Trend / SMA Crossover Long Only

SMA Crossover Long Only

It buys when the 50-period SMA crosses above the 100-period SMA and closes the long when the 100-period SMA crosses below the 200-period SMA. Shorts are not taken and no stop or target is set.

TrendLong onlyIntradayDow Jones5 min
n/aProfit factor
9,129Net profit EUR
45.34%Win rate
536Trades
-7,475Max drawdown
17.03Avg trade

Best run of 46. Dow Jones, 5 min, spread 3, from run sweeps:2026-10-12-DOW30-5m-opt.tsv:24.

Entry rules, long

  1. SMA(50) crosses over SMA(100) while flat.

Exit rules

  1. No stop loss or profit target is set.

Test conditions

PeriodUp to 2026-10-12
InstrumentDow Jones, 5 minutes
Spread3 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-12

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Dow JonesBest run5 minn/a 53645.349,129 EUR-7,475
Nikkei 2251 hourn/a 25848.4541,913 USD-12,861
Nikkei 2254 hoursn/a 6845.5935,680 USD-16,014
Dow JonesDailyn/a 2777.7832,794 EUR-11,142
Silver10 minn/a 52243.3032,574 USD-13,471
Nikkei 2252 minn/a 51846.9129,601 USD-9,796
Nikkei 22510 minn/a 52447.7128,729 USD-9,502
Dow Jones4 hoursn/a 2369.5727,345 EUR-8,599
Nikkei 22530 minn/a 51047.6527,106 USD-17,235
Nikkei 22515 minn/a 52545.3324,900 USD-12,843
Nasdaq 100Dailyn/a 2568.0023,200 EUR-5,874
Nasdaq 1004 hoursn/a 7061.4321,658 EUR-5,942
Silver15 minn/a 52444.8521,390 USD-20,831
Nasdaq 10030 minn/a 49349.0920,145 EUR-7,968
Dow Jones15 minn/a 41247.5719,571 EUR-6,073
Nasdaq 1001 hourn/a 31753.9418,932 EUR-5,504
Dow Jones30 minn/a 21451.4018,915 EUR-10,364
Nasdaq 10015 minn/a 50350.5018,579 EUR-5,423
Nikkei 2255 minn/a 52145.8716,714 USD-13,838
DAX 40Dailyn/a 3650.0014,881 EUR-5,535
DAX 401 hourn/a 29545.7614,802 EUR-4,915
DAX 4010 minn/a 49447.5710,628 EUR-3,976
DAX 405 minn/a 51246.6810,559 EUR-3,456
Nasdaq 10010 minn/a 49845.189,534 EUR-5,483
DAX 404 hoursn/a 8155.569,222 EUR-4,268
DAX 4030 minn/a 52647.348,632 EUR-5,047
Nasdaq 1005 minn/a 53046.048,251 EUR-5,913
Nasdaq 1002 minn/a 48444.217,801 EUR-3,517
DAX 4015 minn/a 53548.227,735 EUR-4,086
S&P 500Dailyn/a 2576.006,895 EUR-1,238
Nasdaq 1001 minn/a 49946.696,509 EUR-3,676
Dow Jones1 minn/a 50842.915,553 EUR-2,522
S&P 5004 hoursn/a 7166.205,264 EUR-1,255
FTSE 100Dailyn/a 3154.845,219 EUR-4,138
FTSE 1001 hourn/a 28947.754,663 EUR-3,471
S&P 50030 minn/a 48551.554,657 EUR-1,255
S&P 50015 minn/a 52851.523,463 EUR-964
Gold1 hourn/a 30446.713,429 EUR-1,059
GoldDailyn/a 2941.383,366 EUR-1,792
S&P 5001 hourn/a 31951.723,047 EUR-1,478
S&P 50010 minn/a 50548.122,981 EUR-1,257
Gold10 minn/a 50544.362,895 EUR-745
Gold15 minn/a 51545.242,775 EUR-930
Gold4 hoursn/a 8348.192,520 EUR-1,880
Gold3 minn/a 52845.271,463 EUR-1,178
S&P 5002 minn/a 50344.931,086 EUR-482

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// SMA Crossover Long Only
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 5 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

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

10 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 maximum drawdown of 7,475 EUR is large next to the net profit of 9,129 EUR.

Questions

About this strategy

Can I run SMA Crossover Long Only 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 46 market and timeframe combinations. The best run by trade count was Dow Jones, 5 minutes, with 536 trades.

How large was the drawdown?

The best run had a maximum drawdown of 7,475 EUR at the tested position size, against a net result of 9,129 EUR.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

Turtle Trade

Best run on the same market, Dow Jones.

2.42 PF · 6,324 trades

ADX Filtered EMA Cross

Also a trend strategy.

1.15 PF · 607 trades

Want strategies that are already part of a live portfolio? Join the ProRealAlgos waitlist.

Copy trading on US indices is available to ProRealAlgos members as spots open.

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