Disclaimer: This article is for educational and informational purposes only. It does not constitute financial or investment advice. Trading forex and CFDs carries significant risk of loss. Past performance of any strategy — including backtests — does not guarantee future results. Never trade with money you cannot afford to lose.
What Is This Strategy?
The Bipower Variation Jump Breakout is a volatility-based breakout strategy that borrows a technique from high-frequency financial econometrics called bipower variation — a jump-robust way of measuring a market's "ordinary" continuous volatility. Instead of reacting to every price wiggle, the strategy is built to detect a statistical jump: a single bar whose move is far larger than the quiet background regime could plausibly have produced by ordinary random drift. When such a jump appears and real order flow confirms it, the strategy enters in the direction of the jump to try to ride the continuation.
The core idea rests on a distinction most volatility measures ignore. Plain realized variance (the sum of squared returns) blends two very different things: the smooth, continuous "diffusion" wobble of price and the occasional violent jump caused by news, a stop cascade, or a liquidity vacuum. Bipower variation, introduced by econometricians Ole Barndorff-Nielsen and Neil Shephard, separates them by summing the products of adjacent absolute returns (|r_i| × |r_{i−1}|). Because one oversized bar only ever appears in a single factor of a single term, its influence is muted — leaving a volatility yardstick that is deliberately blind to jumps. That clean baseline is what makes a jump measurable.
This is best treated as a learning tool for traders who want to understand momentum, volatility normalization, and event-driven breakouts rather than a shortcut to results. It suits an intermediate student who is comfortable with concepts like log returns, z-scores, and the Average True Range (ATR), and who wants to study how academic volatility models can be translated into a mechanical trading rule. It is designed for liquid, intraday conditions where genuine informational jumps occur and tend to be followed by short bursts of directional follow-through.
How It Works
The strategy evaluates conditions once per newly-closed bar and holds at most one position at a time. Here is the logic in plain English:
- Build a jump-robust volatility baseline. Over the most recent
Lookbackreturns (ending at the bar before the candidate jump, so the jump never pollutes its own baseline), the strategy computes bipower variation by summing the products of adjacent absolute log returns. It scales this by π/2 to get an integrated variance estimate, averages it per bar, and takes the square root to produce a continuous sigma — the market's ordinary "breathing" volatility. - Score the newest bar. The latest closed bar's log return is divided by that continuous sigma to produce a signed z-score (
z). This measures how many "quiet-regime" standard deviations the last move represents. - Confirm with volume. The jump bar's tick volume must exceed
VolumeFactortimes the recent average tick volume over the same window — evidence of real order flow behind the move rather than a thin, illiquid print. - Long entry signal: the strategy signals a long when
zis greater than or equal to+JumpThreshold(a significant upward jump) and the volume confirmation passes. - Short entry signal: the strategy signals a short when
zis less than or equal to−JumpThreshold(a significant downward jump) and volume confirms. - Spread gate. If the current spread (in points) is wider than
MaxSpreadPoints, the strategy skips the trade to keep fills realistic. - Stop-loss logic. Risk is anchored to volatility using ATR. The stop is placed
AtrStopMult × ATRaway from entry — below entry for longs, above for shorts. - Take-profit logic. The target is placed
AtrTargetMult × ATRaway from entry — above for longs, below for shorts. With the default multipliers, the target distance is larger than the stop distance, giving a reward-to-risk ratio greater than 1. - Exit handling. Once a position is open, the ATR-based stop and target manage the exit; no new position is opened for that magic number until the current one closes.
The reasoning is that jumps, by construction, are the part of price movement that is not random diffusion — they are the informational events. Measuring them against a jump-immune volatility baseline isolates exactly those events while filtering ordinary noise, and markets historically tend to under-react to fresh information, drifting the same way for a short while afterward.

Strategy Parameters
| Parameter | Default | Min | Max | Description |
|---|---|---|---|---|
| Lookback | 20 | 10 | 60 | Window of returns used to build the jump-robust bipower volatility baseline. |
| JumpThreshold | 3.00 | 1.50 | 6.00 | How many continuous-sigmas the latest return must exceed to count as a jump. |
| VolumeFactor | 1.50 | 1.00 | 4.00 | The jump bar's tick volume must beat this multiple of its recent average volume. |
| AtrPeriod | 14 | 7 | 40 | ATR period used to size stop and target distances. |
| AtrStopMult | 2.00 | 0.50 | 5.00 | Stop-loss distance as a multiple of ATR. |
| AtrTargetMult | 3.00 | 0.50 | 8.00 | Take-profit distance as a multiple of ATR. |
| MaxSpreadPoints | 30 | 1 | 200 | Skip the trade if the current spread (in points) is wider than this. |
| Lots | 0.10 | 0.01 | 1.00 | Fixed position size in lots. |
| Magic | 8123 | 0 | 9,999,999 | Unique identifier so the EA only manages its own trades. |

Recommended Chart Settings
The Bipower Variation Jump Breakout was designed with a liquid FX major such as EURUSD or GBPUSD in mind, on an intraday timeframe such as M15. These conditions tend to produce the clean diffusion-versus-jump structure the strategy relies on: deep liquidity keeps the baseline stable, while genuine informational jumps still occur regularly enough to generate signals.
That said, nothing in the code is hardcoded to a specific instrument — it runs on whatever symbol and primary timeframe the chart or backtest selects. Behavior will vary considerably across different symbols, sessions, and market regimes. A pair with thinner liquidity or a timeframe with fewer meaningful jumps may generate very different signal frequency and quality, so any change from the recommended setup should be studied carefully on its own terms.
How to Install on MetaTrader 5
- Download the .ex5 file from the link below
- Copy it to your MT5
MQL5\Expertsfolder - Restart MetaTrader 5 or refresh the Navigator panel
- Drag the EA onto a chart matching the recommended symbol and timeframe
- Configure the input parameters and enable Algo Trading
What to Consider Before Using This EA
Every mechanical strategy has strengths and weaknesses, and understanding both is part of trading education.
Strengths of this approach. The jump-robust volatility baseline is genuinely clever: because bipower variation is designed to ignore jumps, a single large bar does not inflate the yardstick and mask the next jump — a common failure mode for simpler standard-deviation filters. The self-scaling z-score means the same JumpThreshold adapts automatically to quiet and busy regimes, and the volume-confirmation gate helps filter thin, illiquid prints. ATR-based stops and targets keep risk proportional to current volatility rather than fixed in pips.
Known limitations. Jump-continuation is a tendency, not a rule. Jumps can also mark exhaustion or reverse sharply — the very news that caused the jump can be faded by the market moments later. The strategy commits to the direction of the move, so false continuations become losing trades that rely on the ATR stop to contain them. The volume filter uses tick volume, which is a proxy for real traded volume in decentralized forex and can behave differently across brokers.
Where it may underperform. In choppy, directionless ranges the strategy may take jump signals that immediately mean-revert. During prolonged low-volatility drift, genuine jumps become rare and signals may be infrequent. Conversely, in violently gapping or news-saturated conditions, spreads can widen (sometimes triggering the spread gate) and slippage can distort the intended entry. As with any breakout logic, parameter choices that look ideal on one historical period may not carry forward — a reminder that this is a framework for study, not a finished product.
Risk Management Tips
Sound risk management matters more than any single indicator. Consider these general principles as you study this strategy:
- Position sizing. Size trades so that a losing trade represents only a small, predefined fraction of your account. A common educational guideline is to risk no more than 1–2% of account equity per trade. The default fixed
Lotsvalue does not adjust to account size, so review it against your own capital. - Always test on a demo account first. Run the EA on a demo or simulated environment across many different market conditions before considering any live capital. This helps you understand its signal frequency, drawdown behavior, and how it reacts to news events.
- Understand drawdown. Even a well-designed strategy will experience losing streaks. Study the depth and duration of drawdowns so you know what is normal for this approach and can avoid abandoning or over-leveraging it emotionally.
- Respect the stop. The ATR-based stop is the strategy's primary risk control. Disabling or widening it defeats the purpose of the volatility-anchored design.
- Diversify your learning. Treat this EA as one case study among many, not a single solution. Combining it with a broader understanding of market structure will make you a more informed trader.
Risk Warning
Trading foreign exchange, CFDs, and other leveraged financial instruments involves substantial risk of loss and is not suitable for all investors. The strategies and tools discussed on this page are provided for educational purposes only and do not constitute financial advice, investment recommendations, or solicitation to trade. Always consult a qualified financial adviser before making trading decisions. Past backtest performance is not indicative of future results.
Downloads
- Expert Advisor: BipowerVariationJumpBreakout.ex5 (29 downloads)
- Source Code: BipowerVariationJumpBreakout.mq5 (28 downloads)
- Documentation: BipowerVariationJumpBreakout.pdf (32 downloads)