Join waitlist
Strategies / Trend / Trend Vote Ensemble

Trend Vote Ensemble

The strategy adds three votes: a moving average trend, a 40-bar breakout, and 252-bar momentum, buying when all three agree bullish and selling short when all three agree bearish. It closes a position when the vote total falls back below its exit level.

TrendLong & shortIntradayEUR/USD2 min
n/aProfit factor
35,208Net profit USD
23.49%Win rate
1,260Trades
-27,443Max drawdown
27.94Avg trade

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

Entry rules, long

  1. The 50-period average is above the 200-period average.
  2. The close is above the highest high of the prior 40 bars.
  3. The close is above the close 252 bars ago.

Entry rules, short

  1. The 50-period average is below the 200-period average.
  2. The close is below the lowest low of the prior 40 bars.
  3. The close is below the close 252 bars ago.

Exit rules

  1. A short position closes at market when the score rises above -1.
  2. A score of +3 or -3 while holding the opposite side reverses the position.

Test conditions

PeriodUp to 2026-10-10
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-10

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
EUR/USDBest run2 minn/a 1,26023.4935,208 USD-27,443
USD/JPY3 minn/a 1,12030.27206,030 USD-84,450
USD/JPY5 minn/a 1,16629.67149,560 USD-144,530
EUR/USDDailyn/a 7238.89114,649 USD-38,420
Nikkei 225Dailyn/a 5547.2768,137 USD-12,916
EUR/USD4 hoursn/a 26529.4342,886 USD-32,377
Silver30 minn/a 1,06027.2625,741 USD-13,462
Silver10 minn/a 1,13425.6621,535 USD-12,751
Nasdaq 100Dailyn/a 4542.2217,740 EUR-6,890
Silver5 minn/a 1,19824.2115,605 USD-13,855
GBP/USDDailyn/a 7335.6212,574 USD-7,258
DAX 40Dailyn/a 8038.7511,013 EUR-8,497
Nasdaq 1004 hoursn/a 18031.1110,413 EUR-3,526
Brent Crude4 hoursn/a 10530.487,681 EUR-6,670
S&P 500Dailyn/a 6248.394,556 EUR-948
GoldDailyn/a 7129.583,146 EUR-1,466
Gold5 minn/a 1,10928.042,132 EUR-597
Gold4 hoursn/a 18634.951,974 EUR-962
Gold1 hourn/a 67230.511,477 EUR-1,198
Gold3 minn/a 1,14026.051,394 EUR-852

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Trend Vote Ensemble
// 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)

36 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

Donchian ChannelMomentumSMA
Read this firstKnown weaknesses3 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The maximum drawdown of 27,443 USD is large next to the net profit of 35,208 USD.
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.

Questions

About this strategy

Can I run Trend Vote Ensemble 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 20 market and timeframe combinations. The best run by trade count was EUR/USD, 2 minutes, with 1,260 trades.

How large was the drawdown?

The best run had a maximum drawdown of 27,443 USD at the tested position size, against a net result of 35,208 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