Strategy Detail

Harmonic Patterns

Trade a named harmonic pattern. Each one is a five-point price structure defined by Fibonacci ratios; the strategy enters at the completion point, targets a retracement, and stops just beyond the structure.

Harmonic patterns are price structures defined by Fibonacci ratios between swing points. A handful of swing highs and lows, in the right proportions, mark a spot where price has historically turned. The classic names, Gartley, Bat, Butterfly, Crab, Cypher, all describe the same idea with different ratio rules: find where a move is likely exhausted, then trade the reversal.

This strategy trades one named pattern at a time. On every bar it looks for the pattern’s geometry in the recent swing points. When the final point completes a valid structure, it enters in the reversal direction with a fixed plan: a target at a Fibonacci retracement of the move, and a stop just beyond the completion point.

How it finds a pattern

Every harmonic pattern is built from swing pivots, the local highs and lows that anchor a structure. The strategy detects those pivots as they confirm, then checks whether the most recent five (four for AB=CD) hold the pattern’s ratio rules within a tolerance.

A pivot only counts once enough later bars confirm it is a genuine turn, so the strategy never acts on a swing that has not formed yet. Entry happens on the bar the final pivot confirms, which is the earliest point a trader could actually act. That makes the backtest honest: it never enters at a price it could only know in hindsight.

Strictness

Strictness is a single control that bundles two things: how significant a swing has to be before it counts as a pivot, and how close the ratios have to be to the textbook numbers. Tighter settings produce fewer, cleaner structures; looser settings produce more setups with more noise.

StrictnessSwing sizeRatio toleranceCharacter
Strict4 bars each side3%Fewest setups, closest to the textbook shape
Balanced3 bars each side5%The default middle ground
Loose2 bars each side9%Most setups, looser shapes, more noise

“Swing size” is how many bars on each side a high or low must exceed to count as a pivot. “Ratio tolerance” is how far each Fibonacci ratio may stray from its ideal value and still qualify. These are the exact values the engine uses, so a run is fully reproducible from the pattern, strictness, contract, and timeframe.

Timeframe

Harmonic structures are rare on daily bars. A strict Gartley turns up only about once a decade on a daily chart, far too seldom to judge. They are far more common intraday, so 15-minute is the default: cleaner swings and fewer but more significant structures. 5-minute produces many more setups at the cost of more noise. You can test any timeframe; the slower ones simply fire less often, which the trade count makes plain.

How it trades the completion

When a pattern completes, the strategy enters at the close of the confirming bar. It places a target at a 0.618 retracement of the structure’s anchor leg and a stop just beyond the completion point, both sent as a bracket so the trade exits on its own when either is reached. If neither is hit within a fixed window, the trade closes at the market.

The sample backtests below are real results, with commissions and slippage, not a count of how often the textbook shape “worked”. Some patterns reverse cleanly and some do not; the numbers tell you which.

Patterns

The nine patterns below share this same entry, target, and stop logic. They differ only in geometry: which Fibonacci ratios define a valid structure and how far the completion point sits from the origin. Each links to its full definition in the pattern catalog, with the ratio rules and the idea behind it, alongside sample backtests across NQ, ES, and gold.

FAQ

Do harmonic patterns work?

Harmonic patterns like the Gartley, Bat, Butterfly, Crab, and Cypher are described everywhere but rarely tested. This family scores each completed pattern by the trade its geometry implies: enter at the completion point, target a 0.618 retracement, and stop just beyond the structure, with commissions and slippage included. The win rate on each pattern page is a real backtest result rather than a count of how often the textbook shape “worked”, so open a pattern and run it to see what the data shows.

Are harmonic patterns reliable, and do they repaint?

The detection is built to avoid hindsight: a pivot only counts once enough later bars confirm it is a genuine turn, and entry happens on the bar the final pivot confirms, the earliest point a trader could actually act. That makes the backtest honest about what was knowable in real time. Reliability still varies by pattern, since some reverse cleanly and some do not, so the per-pattern numbers are the way to tell them apart.

What timeframe and strictness should I test harmonic patterns on?

Harmonic structures are rare on daily bars, where a strict Gartley turns up only about once a decade, so this strategy runs on 15-minute and 5-minute bars, with 15-minute as the default for cleaner swings. Strictness bundles how significant a swing must be and how close the ratios must match the textbook, with tighter settings giving fewer, cleaner structures and looser settings giving more setups with more noise. The catalog lets you compare patterns, and each page reports the backtested result for the settings used.

Test this strategy

Run it on your contracts, timeframes, and parameters.

Pattern catalog (9)

Each pattern shows its shape and a short definition, then its sample backtests run at identical defaults. The shape and description link to the full pattern page.

Patterns