Join today
Strategies / Volatility / High Volatility Candles

High Volatility Candles: Following the Widest Bar in 10

A bar with a bigger range than any of the previous 10 bars triggers a trade in its direction, long if it closed up and short if it closed down. Every trade has a 30 point target and a 60 point stop.

VolatilityLong & shortIntradayGold10 min
n/aProfit factor
1,492Net profit EUR
68.70%Win rate
885Trades
-1,343Max drawdown
1.69Avg trade

Best run of 4. Gold, 10 min, spread 0.6, from run sweeps:2026-09-22-GOLD-10m-opt.tsv:3.

Entry rules, long

  1. Members only
  2. The bar closes up
  3. No open position

Entry rules, short

  1. Members only
  2. The bar closes down
  3. No open position

Exit rules

  1. Stop loss 60 points
  2. Members only

Test conditions

PeriodUp to 2026-09-22
InstrumentGold, 10 minutes
Spread0.6 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-22

Parameters

positionSize
Contracts per trade
1
lookbackPeriod
Previous bars the current range must beat
10
stopLossPoints
Protective stop in points
60
takeProfitPoints
Profit target in points
30

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
GoldBest run10 minn/a 88568.701,492 EUR-1,343
USD/JPY2 minn/a 67467.9560,390 JPY-57,200
SilverDailyn/a 75868.606,029 USD-3,000
Gold4 hoursn/a 66868.26911 EUR-662

Charts

Results by run

Net profit against max drawdown

Net profitMax drawdown
0-100K-50K50K100KUSD/JPY · 2 minSilver · DailyGold · 10 minGold · 4 hours

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.

// ============================================================
// High Volatility Candles
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Volatility
// Direction: Long & short
// Timeframe tested: 10 minutes
// ============================================================

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

// --- Parameters ---
positionSize = 1        // contracts per trade
lookbackPeriod = 10     // previous bars the current range must beat
stopLossPoints = 60     // protective stop, points
takeProfitPoints = 30   // profit target, points

// --- Indicators ---
// Largest range of the previous lookbackPeriod bars (the current bar is excluded).
biggestRange = 0
FOR i = 1 TO lookbackPeriod DO
  biggestRange = MAX(biggestRange, Range[i])
NEXT

17 more lines: the entry and exit rules.

Read this first

Known weaknesses

  • The target is half the stop, so the system needs a high win rate. The best run won 68.70% of trades and still averaged only 1.69 EUR per trade.
  • Drawdown is close to total profit: 1,343.20 EUR against 1,491.70 EUR on Gold 10 minutes, and 57,200 JPY against 60,390 JPY on USD/JPY 2 minutes.
  • Only 4 runs exist across Gold, Silver and USD/JPY.
  • Profit factor was not recorded because only sweep data exists.

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

Does it run in ProOrder?

Yes. The stop and target are fixed in points and the entry is automatic, so it can run unattended.

What markets were tested?

Gold 10 minutes made 1,491.70 EUR over 885 trades. Silver Daily made 6,028.50 USD, Gold 4 hours 911.40 EUR and USD/JPY 2 minutes 60,390 JPY.

How much risk at 1 contract?

Each loss is capped at 60 points. At 1 contract with a 0.6 point spread, Gold 10 minutes had a max drawdown of 1,343.20 EUR.

Why the 10 minute chart?

Wide bars on 10 minute Gold often carry into the next few bars, which is what a 30 point target tries to catch.

Related

Strategies like this one

Triple Band Market Model

Best run on the same market, Gold.

2.27 PF · 203 trades

Bollinger Squeeze

Also a volatility strategy.

14.30 PF · 86 trades

Volatility Breakout

Also a volatility strategy.

1.39 PF · 475 trades

Join the ProRealAlgos waitlist to talk scalping systems with other members.

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