Join waitlist
Strategies / Trend / Golden Cross Moving Average

Golden Cross Moving Average

Buys on the bar where the 50-bar SMA crosses above the 200-bar SMA. Sells when the 50-bar SMA falls below the 200-bar SMA.

TrendLong onlyIntradayGold3 min
1.30Profit factor
1,802Net profit EUR
36.75%Win rate
604Trades
-441Max drawdown
2.98Avg trade

Best run of 52. Gold, 3 min, spread 0.6, from run pf:2026-10-05-GOLD-3m.tsv:1.

Entry rules, long

Exit rules

  1. The 50-bar SMA is below the 200-bar SMA.

Test conditions

PeriodUp to 2026-10-05
InstrumentGold, 3 minutes
Spread0.6 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-05

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
GoldBest run3 min1.30 60436.751,802 EUR-441
USD/JPY30 minn/a 60737.73591,700 USD-215,620
USD/JPY10 minn/a 59140.95519,570 USD-177,750
USD/JPY15 minn/a 58738.16363,970 USD-224,490
USD/JPY5 minn/a 62839.33230,090 USD-167,690
USD/JPY3 minn/a 62237.94142,860 USD-98,610
EUR/USDDailyn/a 3636.1183,476 USD-31,390
Nikkei 225Dailyn/a 3141.9446,394 USD-13,756
Nikkei 2251 hourn/a 30541.3129,225 USD-11,879
Nikkei 2254 hoursn/a 8434.5228,376 USD-11,085
Nikkei 22530 minn/a 62338.5225,230 USD-16,768
Nikkei 22515 minn/a 62538.5624,455 USD-9,991
Silver30 minn/a 63533.3922,275 USD-19,304
Nasdaq 100Dailyn/a 2962.0722,082 EUR-5,747
Dow JonesDailyn/a 4055.0022,054 EUR-9,964
Silver10 minn/a 62733.0118,789 USD-17,947
Nasdaq 1004 hoursn/a 9147.2517,130 EUR-4,661
Silver2 minn/a 62237.1415,942 USD-13,766
Dow Jones4 hoursn/a 2748.1514,742 EUR-6,728
Nikkei 22510 minn/a 63837.4614,341 USD-13,298
DAX 40Dailyn/a 3852.6313,709 EUR-6,347
Nikkei 2252 minn/a 63134.8713,255 USD-12,299
Nikkei 2251 minn/a 60535.7011,482 USD-5,039
Dow Jones1 hourn/a 13241.679,524 EUR-8,599
Nasdaq 10030 minn/a 60241.209,491 EUR-6,051
Dow Jones5 minn/a 65435.479,416 EUR-4,704
DAX 404 hoursn/a 9845.929,187 EUR-3,224
Brent Crude4 hoursn/a 4841.678,719 EUR-6,020
Nasdaq 1001 hourn/a 38841.758,633 EUR-5,143
DAX 401 hourn/a 37035.148,510 EUR-3,868
Nasdaq 10015 minn/a 58542.228,446 EUR-5,782
US Crude Oil4 hoursn/a 6743.287,082 EUR-6,357
DAX 4030 minn/a 63437.856,733 EUR-3,277
Nasdaq 1005 minn/a 64437.586,312 EUR-3,281
S&P 500Dailyn/a 3177.425,739 EUR-1,190
FTSE 100Dailyn/a 3243.755,589 EUR-2,445
DAX 405 minn/a 61338.015,093 EUR-3,138
DAX 4010 minn/a 60037.504,428 EUR-2,913
Nasdaq 1002 minn/a 59536.814,306 EUR-3,456
GoldDailyn/a 2955.174,184 EUR-1,466
Nasdaq 1003 minn/a 60936.454,053 EUR-3,593
S&P 5004 hoursn/a 8747.133,797 EUR-938
Brent Crude2 minn/a 59834.783,457 EUR-2,399
Gold1 hourn/a 35839.392,584 EUR-1,315
Gold4 hoursn/a 10440.382,571 EUR-1,073
Gold10 minn/a 62036.942,374 EUR-1,067
Gold5 minn/a 60836.512,261 EUR-690
S&P 50030 minn/a 61440.392,119 EUR-1,181
Gold15 minn/a 61136.012,050 EUR-1,120
Gold30 minn/a 61636.041,931 EUR-1,284
S&P 5001 hourn/a 38739.791,735 EUR-1,136
Gold2 minn/a 63934.901,079 EUR-811

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Golden Cross Moving Average
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 3 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

smaf = Average[50](close)
smas = Average[200](close)

11 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
Longer historyRe-run on up to 1,000,000 barsGold · 3 min · older data -715.00 EUR

On the long run with 1,000,000 bars the net result was 1,087 EUR, against 1,802 EUR on the standard 200,000-bar run. The older data alone gave -715 EUR.

Gold · 3 min

Bars available1,000,000
Net, standard 200,000-bar run1,802.00 EUR
Net, long run1,087.00 EUR
Net on the older data alone-715.00 EUR
Read this firstKnown weaknesses2 points
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.
  • On the older part of the 1,000,000-bar history it lost -715 EUR.

Questions

About this strategy

Can I run Golden Cross Moving Average 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 52 market and timeframe combinations. The best run was Gold, 3 minutes, with a profit factor of 1.30 over 604 trades.

How large was the drawdown?

The best run had a maximum drawdown of 441 EUR at the tested position size, against a net result of 1,802 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

CCI Breakout

Best run on the same market, Gold.

1.08 PF · 6,065 trades

Hull MA Cross With MACD Filter

Also a trend strategy.

1.29 PF · 1,134 trades

Put your name on the ProRealAlgos waitlist to trade a tested portfolio instead of single strategies.

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