Join today
Strategies / Trend / Eight Bar Trend Follower

Eight Bar Trend Follower on EUR/USD

A long triggers when the close is more than 0.006 above the open of 8 bars ago, and a short when it is 0.006 below. Each trade has a 50 point stop and a 225 point target. An opposite signal reverses the trade.

TrendLong & shortIntradayEUR/USD2 min
5.19Profit factor
272,509Net profit USD
53.57%Win rate
280Trades
-4,000Max drawdown
973Avg trade

Best run of 9. EUR/USD, 2 min, spread 1, from run pf:2026-09-24-EURUSD-2m.tsv:4.

Entry rules, long

  1. Members only

Entry rules, short

  1. Members only

Exit rules

  1. Stop loss 50 points
  2. Members only
  3. An opposite signal reverses the trade

Test conditions

PeriodUp to 2026-09-25
InstrumentEUR/USD, 2 minutes
Spread1 points
Contracts1
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-09-25

Parameters

positionSize
Contracts per trade
1
lookbackPeriod
Compare the close with the open this many bars ago
8
minMove
Move must be larger than this, in price units
0.006
stopLossPoints
Protective stop in points
50
takeProfitPoints
Profit target in points
225

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
EUR/USDBest run2 min5.19 28053.57272,509 USD-4,000
EUR/USD3 min3.94 21646.76167,018 USD-8,323
EUR/USD5 min2.36 16735.9371,187 USD-9,179
USD/JPYDaily1.29 5,83227.145,959,250 JPY-584,950
EUR/USD10 minn/a 25426.7725,006 USD-16,228
GBP/USDDailyn/a 5,37521.4124,855 USD-14,293
SilverDailyn/a 2,50929.6119,609 USD-12,943
Dow JonesDailyn/a 6,19322.1711,582 EUR-6,851
GBP/USD5 minn/a 6826.47818 USD-713

Charts

Results by run

Profit factor by run

Above 1.0 made money, below 1.0 lost money.

0.02.55.07.5101.0 = break-evenEUR/USD · 2 min5.19EUR/USD · 3 min3.94EUR/USD · 5 min2.36USD/JPY · Daily1.29

Net profit against max drawdown

Net profitMax drawdown
0-1.0M-500K5.0M10.0MUSD/JPY · DailyEUR/USD · 2 minEUR/USD · 3 minEUR/USD · 5 minEUR/USD · 10 minGBP/USD · DailySilver · DailyDow Jones · DailyGBP/USD · 5 min

Longer history

Re-run on up to 1,000,000 bars

EUR/USD 2 minutes had 996,000 bars, and the long run made USD 240,278 compared with USD 272,509 on the standard run, which means the older data alone lost USD 32,231.

EUR/USD · 2 min

Bars available996,000
Net, standard 200,000-bar run272,509.00 USD
Net, long run240,278.00 USD
Net on the older data alone-32,231.00 USD

The code

ProBuilder, rewritten to house standard

Every file in the library uses the same header, the same section order and the same variable names. The numbers above were produced by the original version before the rewrite, and the rewrite has not yet been compiled in ProRealTime.

// ============================================================
// Eight Bar Trend Follower
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long & short
// Timeframe tested: 2 minutes
// ============================================================

// --- Settings ---
DEFPARAM CumulateOrders = false

// --- Parameters ---
positionSize = 1          // contracts per trade
lookbackPeriod = 8        // compare the close with the open this many bars ago
minMove = 0.006           // move must be larger than this, in price units
stopLossPoints = 50       // protective stop, points
takeProfitPoints = 225    // profit target, points

// --- Indicators ---
priceMove = close - open[lookbackPeriod]
bigMove = ABS(priceMove) > minMove

20 more lines: the entry and exit rules.

Read this first

Known weaknesses

  • The 0.006 move is in price units, sized for a pair near 1.0, so on other instruments the rule changes meaning completely.
  • The best run has 280 trades, and the older data in the 996,000 bar rerun came to USD -32,231.
  • Results fall off on slower EUR/USD charts, from a profit factor of 5.19 on 2 minutes to 2.36 on 5 minutes.
  • Stats come from the version before the code rewrite, and the rewritten code has not been compile-checked.

How to load it

  1. Copy the code with the copy button above 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.

Questions

About this strategy

Can the Eight Bar Trend Follower run in ProOrder?

Yes, it uses a simple price rule with fixed stop and target. Compile-check the rewritten code on demo first.

How did it do across markets?

EUR/USD 2 minutes made USD 272,509.0 and 3 minutes USD 167,018.0 at a profit factor of 3.94. GBP/USD 5 minutes made only USD 818.4.

What drawdown with 1 contract?

The best run had a max drawdown of USD 4,000.0 with 1 contract. EUR/USD 10 minutes had USD 16,228.0.

Why 2 minute bars?

On 2 minute bars the 8 bar window is short, so the 0.006 threshold only catches fast bursts. On 5 and 10 minute bars the results were weaker.

Related

Strategies like this one

Slow MACD Slope

Best run on the same market, EUR/USD.

6.80 PF · 7,305 trades

Percent B Bollinger Trend

A similar profit factor.

5.43 PF · 3,202 trades

Long-Term Moving Average Cross

Also a trend strategy.

12.31 PF · 61 trades

See how trend following fits into a wider portfolio. Join the ProRealAlgos waitlist.

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