Join waitlist
Strategies / Trend / WMA Vote ATR Band Exit

WMA Vote ATR Band Exit

The strategy buys 1 contract when three pairs of weighted averages of the high all have the fast line above the slow line. It exits when the vote weakens and price touches a level 10 ATR above or 5 ATR below the entry close.

TrendLong onlySwingS&P 5004 hours
1.80Profit factor
6,622Net profit EUR
43.43%Win rate
198Trades
-1,183Max drawdown
33.44Avg trade

Best run of 51. S&P 500, 4 hours, spread 1, from run pf:2026-10-11-USA500-4h.tsv:3.

Entry rules, long

  1. The 3 period weighted average of the high is above the 5 period weighted average.
  2. The 4 period weighted average of the high is above the 6 period weighted average.
  3. All three comparisons must hold while no long position is open.
  4. Signals are evaluated only after bar 20.

Exit rules

  1. Levels are the signal close plus 10 times ATR(14) and the signal close minus 5 times ATR(14), frozen at entry.

Test conditions

PeriodUp to 2026-10-11
InstrumentS&P 500, 4 hours
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-11

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
S&P 500Best run4 hours1.80 19843.436,622 EUR-1,183
Nasdaq 10030 min1.26 1,15336.5124,540 EUR-5,924
S&P 50030 min1.25 1,07836.275,862 EUR-1,291
USD/JPY30 minn/a 94935.19577,020 USD-309,170
USD/JPY10 minn/a 85737.11478,830 USD-232,670
USD/JPY15 minn/a 88234.13344,990 USD-291,780
Nikkei 2251 hourn/a 60037.3349,592 USD-15,848
Nikkei 22530 minn/a 1,14035.5346,246 USD-12,346
Nikkei 225Dailyn/a 8043.7544,888 USD-37,857
Dow JonesDailyn/a 8447.6243,491 EUR-10,038
Nikkei 2254 hoursn/a 14141.8443,351 USD-12,304
Nikkei 22515 minn/a 1,03734.2340,384 USD-12,166
Nikkei 22510 minn/a 1,06634.3337,332 USD-10,672
Nikkei 2255 minn/a 87634.4727,084 USD-11,679
Nasdaq 1004 hoursn/a 20841.8324,867 EUR-6,455
Nasdaq 100Dailyn/a 8950.5624,329 EUR-7,594
Dow Jones4 hoursn/a 6440.6224,212 EUR-10,010
Nikkei 2253 minn/a 78234.0223,788 USD-11,849
DAX 40Dailyn/a 13543.7021,832 EUR-5,603
Dow Jones1 hourn/a 27835.9721,094 EUR-10,983
Nasdaq 1001 hourn/a 87737.9720,862 EUR-7,524
Nasdaq 10015 minn/a 1,01534.8819,961 EUR-6,280
DAX 401 hourn/a 69536.1218,839 EUR-4,735
Dow Jones15 minn/a 74434.4116,883 EUR-12,913
Nasdaq 10010 minn/a 87934.3615,884 EUR-6,024
Nikkei 2252 minn/a 78234.0215,768 USD-13,130
DAX 4030 minn/a 1,09234.8015,629 EUR-6,598
Dow Jones10 minn/a 78333.7215,142 EUR-9,429
Dow Jones30 minn/a 48533.2014,261 EUR-13,661
DAX 404 hoursn/a 17935.7513,663 EUR-6,744
Nasdaq 1005 minn/a 64736.3213,379 EUR-5,238
Dow Jones5 minn/a 62134.3012,814 EUR-7,765
DAX 4015 minn/a 93934.0811,738 EUR-6,346
DAX 4010 minn/a 89334.839,512 EUR-4,544
FTSE 100Dailyn/a 6747.768,680 EUR-4,006
Nasdaq 1003 minn/a 64533.187,450 EUR-5,561
S&P 500Dailyn/a 9454.266,318 EUR-1,477
FTSE 1004 hoursn/a 10136.635,685 EUR-3,446
S&P 5001 hourn/a 79137.175,330 EUR-1,349
DAX 405 minn/a 84035.604,455 EUR-4,286
Dow Jones1 minn/a 65534.354,248 EUR-3,405
GoldDailyn/a 8645.353,731 EUR-1,408
Gold4 hoursn/a 19343.013,682 EUR-1,450
S&P 50015 minn/a 96135.283,612 EUR-1,378
Gold1 hourn/a 68138.913,034 EUR-1,675
S&P 50010 minn/a 82634.502,979 EUR-1,199
FTSE 10010 minn/a 91034.622,720 EUR-1,146
S&P 5005 minn/a 65435.172,261 EUR-1,333
Gold5 minn/a 72138.561,891 EUR-1,507
Gold10 minn/a 76336.171,773 EUR-1,617
FTSE 1005 minn/a 86435.531,732 EUR-1,460

Charts

Results by run

Top 10 of 51 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

// ==============================================================
// WMA Vote ATR Band Exit
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 4 hours
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE profitprice = 0
ONCE lossprice = 0

myAtr = AverageTrueRange[14](close)
votes = 0

23 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

WMAATR
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 WMA Vote ATR Band Exit 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 51 market and timeframe combinations. The best run was S&P 500, 4 hours, with a profit factor of 1.80 over 198 trades.

How large was the drawdown?

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

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

KDJ J Line Momentum Long

Uses the same indicator.

4.17 PF · 6,135 trades

CCI Sign With EMA Alignment

Best run on the same market, S&P 500.

1.23 PF · 1,253 trades

EMA Cross With MACD Filter

Also a trend strategy.

1.80 PF · 496 trades

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

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