Join waitlist
Strategies / Trend / Donchian Low WMA Cross With Target

Donchian Low WMA Cross With Target

The system buys when the 7-bar lowest low crosses above the 62-period weighted moving average of the close. It closes the long at a 1% gain or when the lowest low crosses back below that average while the average is not rising.

TrendLong onlySwingGoldDaily
2.97Profit factor
1,970Net profit EUR
84.74%Win rate
190Trades
-309Max drawdown
10.37Avg trade

Best run of 39. Gold, Daily, spread 0.6, from run pf:2026-10-13-GOLD-D.tsv:4.

Entry rules, long

  1. The 7-bar lowest low crosses over the 62-bar weighted average of the close.

Exit rules

  1. The 7-bar lowest low crosses under the weighted average while that average is not higher than the previous bar.

Test conditions

PeriodUp to 2026-10-13
InstrumentGold, Daily
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-13

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
GoldBest runDaily2.97 19084.741,970 EUR-309
DAX 401 hour1.37 87364.6020,221 EUR-4,237
Dow Jones15 min1.29 77050.2628,762 EUR-6,523
S&P 50015 min1.24 97251.133,706 EUR-835
Nikkei 2254 hoursn/a 29276.0331,391 USD-10,068
Nikkei 2251 hourn/a 77566.3231,018 USD-11,131
Nikkei 22530 minn/a 1,35857.1430,080 USD-10,943
Nikkei 225Dailyn/a 16984.0227,217 USD-7,603
Nikkei 2255 minn/a 85648.3622,621 USD-12,427
Dow JonesDailyn/a 22687.1721,988 EUR-11,142
Dow Jones1 hourn/a 27565.4519,167 EUR-9,649
Nikkei 22515 minn/a 1,10552.8518,506 USD-13,120
Nikkei 2253 minn/a 77746.2017,672 USD-10,833
Dow Jones5 minn/a 66442.3217,359 EUR-5,049
Nikkei 22510 minn/a 96350.1616,642 USD-12,210
Nasdaq 1004 hoursn/a 37778.5112,609 EUR-5,773
DAX 404 hoursn/a 34676.0112,565 EUR-7,770
Nasdaq 10010 minn/a 88553.9012,115 EUR-6,240
Nasdaq 10015 minn/a 1,05655.5911,119 EUR-6,768
Nasdaq 1005 minn/a 75746.2410,703 EUR-4,980
Nasdaq 10030 minn/a 1,23060.5710,581 EUR-7,141
Dow Jones30 minn/a 43755.619,886 EUR-9,734
DAX 405 minn/a 71645.959,810 EUR-4,144
Nasdaq 1001 hourn/a 98465.558,595 EUR-7,596
DAX 4015 minn/a 95951.827,677 EUR-4,654
DAX 4030 minn/a 1,13958.826,787 EUR-4,426
Nasdaq 1003 minn/a 64744.056,048 EUR-5,546
S&P 5004 hoursn/a 35475.424,142 EUR-1,077
Brent Crude2 minn/a 96747.054,062 EUR-3,459
FTSE 100Dailyn/a 17184.803,830 EUR-3,821
S&P 50010 minn/a 82948.853,335 EUR-1,722
S&P 5001 hourn/a 86561.503,206 EUR-1,211
S&P 500Dailyn/a 24685.773,028 EUR-1,220
S&P 50030 minn/a 1,07756.822,557 EUR-1,570
Gold1 hourn/a 88365.692,392 EUR-1,190
S&P 5005 minn/a 68143.912,173 EUR-1,027
Gold4 hoursn/a 32475.311,835 EUR-716
Gold15 minn/a 87852.281,571 EUR-1,329
Gold30 minn/a 1,08058.151,193 EUR-1,072

Charts

Results by run

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

Above 1.0 made money, below 1.0 lost money.

The code

ProBuilder code, as tested

// ==============================================================
// Donchian Low WMA Cross With Target
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false

donlow = lowest[7](low)
wma = WeightedAverage[62](close)

20 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

WMA
Read this firstKnown weaknesses2 points
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.
  • Results include the spread only. Commissions and overnight financing are not included.

Questions

About this strategy

Can I run Donchian Low WMA Cross With Target 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 39 market and timeframe combinations. The best run was Gold, Daily, with a profit factor of 2.97 over 190 trades.

How large was the drawdown?

The best run had a maximum drawdown of 309 EUR at the tested position size, against a net result of 1,970 EUR.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Smoothed MACD Turn With RSI

Uses the same indicator.

2.60 PF · 5,812 trades

CCI Breakout

Best run on the same market, Gold.

1.08 PF · 6,065 trades

MACD Signal State Long

Also a trend strategy.

2.98 PF · 106 trades

Get the full rules, the complete code and the ProRealAlgos portfolio as a member.

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