Join waitlist
Strategies / Pattern / Fair Value Gap Average Trend

Fair Value Gap Average Trend

The system finds recent fair value gaps larger than 0.25 times the 200-period ATR, then averages their edges across recent bars. It buys when close crosses above the average bearish gap level with both averages above EMA(200), and sells short on the mirror setup.

PatternLong & shortIntradayGold15 min
n/aProfit factor
1,046Net profit EUR
38.47%Win rate
1,786Trades
-608Max drawdown
0.59Avg trade

Best run of 7. Gold, 15 min, spread 0.6, from run sweeps:2026-10-12-GOLD-15m-opt.tsv:21.

Entry rules, long

  1. Close and both gap averages are above EMA(200).

Entry rules, short

  1. Close and both gap averages are below EMA(200).

Exit rules

  1. The target, 1.5 times that risk from entry, closes the trade.

Test conditions

PeriodUp to 2026-10-12
InstrumentGold, 15 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-12

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
GoldBest run15 minn/a 1,78638.471,046 EUR-608
Nikkei 225Dailyn/a 15246.7130,080 USD-12,514
Nasdaq 1004 hoursn/a 33239.764,688 EUR-3,415
S&P 500Dailyn/a 19047.373,055 EUR-828
GoldDailyn/a 16851.791,742 EUR-1,327
Gold4 hoursn/a 28546.671,415 EUR-933
Gold30 minn/a 1,72237.861,059 EUR-841

Charts

Results by run

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Fair Value Gap Average Trend
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Pattern
// Direction: Long & short
// Timeframe tested: 15 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE fvgup = 0
ONCE fvgdn = 0
ONCE upavg = 0
ONCE dnavg = 0
ONCE upok = 0
ONCE dnok = 0

myAtr = AverageTrueRange[200](close) * 0.25

59 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

ATREMA
Read this firstKnown weaknesses2 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The maximum drawdown of 608 EUR is large next to the net profit of 1,046 EUR.

Questions

About this strategy

Can I run Fair Value Gap Average Trend 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 7 market and timeframe combinations. The best run by trade count was Gold, 15 minutes, with 1,786 trades.

How large was the drawdown?

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

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Reversal Pattern With Chaikin Volatility

Uses the same indicator.

2.26 PF · 6,872 trades

CCI Breakout

Best run on the same market, Gold.

1.08 PF · 6,065 trades

Breakout Reversal

Also a pattern strategy.

n/a PF · 459 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