Harmonic patternBullish cypherBearish cypher
Cypher Pattern: Rules, Ratios and How to Trade It
Cypher pattern rules (B at 0.382 to 0.618 of XA, D at 0.786 of XC), a worked example, stop and targets, and our test: on 2,108 bullish daily setups, no edge over random dates.
How we tested this pattern
- Sample
- 3,935 occurrences on 6 markets (crypto, forex, US stocks, ETFs, indices and commodities), 1978 to 2026.
- Detection
- Found by code, never picked by hand: every match of the rule on full price history, winners and losers alike.bullish cypher pattern: Five swing points X (low), A, B, C, D. B retraces 0.382 to 0.618 of XA. C goes beyond A, the move from X to C measuring 1.272 to 1.414 times XA. When C is confirmed, the reversal zone is a 0.747 to 0.825 retracement of XC (0.786 within 5%). Signal at the close of the first bar that trades into the zone without trading below X. Stop at X. The swing points before the reversal zone span at least 3 ATR, with at least 3 bars between consecutive points. The first swing point is a true extreme: over the duration of the first leg before it, price never went more than 10% of that leg beyond it.bearish cypher pattern: Five swing points X (high), A, B, C, D. B retraces 0.382 to 0.618 of XA. C goes beyond A, the move from X to C measuring 1.272 to 1.414 times XA. When C is confirmed, the reversal zone is a 0.747 to 0.825 retracement of XC (0.786 within 5%). Signal at the close of the first bar that trades into the zone without trading above X. Stop at X. The swing points before the reversal zone span at least 3 ATR, with at least 3 bars between consecutive points. The first swing point is a true extreme: over the duration of the first leg before it, price never went more than 10% of that leg beyond it.
- Benchmark
- Each occurrence is compared with the same assets on random bars: the move 10 bars later, and a 2:1 reward-to-risk trade.
- Checks
- Block bootstrap and a correction for the thousands of tests we run, plus a random-walk self-test that the bench passes: on random prices, no pattern should win.
- Updated
- Data updated November 5, 2026, code version c2a1683f. Read the methodology · bullish cypher pattern data (JSON) · bearish cypher pattern data (JSON)
At a glance: what textbooks say, what we measured
- Pattern
- Bullish cypher
- Occurrences tested
- 2,108 occurrences, all markets, daily
- Textbook: price should rise after it
- Too close to call · +0.23% vs the market, 10 bars
- Textbook: target reached most of the time
- 42.6% vs 43.3% on random dates
- Where it did best, US stocks left out
- Crypto, 1-hour: +0.02 R 2:1 trade vs random dates, not proven
- Verdict
- 10-bar move: No clear edge2:1 trade: No clear edge
- Pattern
- Bearish cypher
- Occurrences tested
- 1,827 occurrences, all markets, daily
- Textbook: price should fall after it
- Too close to call · +0.08% vs the market, 10 bars
- Textbook: target reached most of the time
- 31.7% vs 33.3% on random dates
- Where it did best
- US stocks, daily: +0.01 R 2:1 trade vs random dates, not proven
- Verdict
- 10-bar move: No clear edge2:1 trade: No clear edge
On this page
- What is the cypher harmonic pattern?
- Understanding the XABCD structure and key ratios
- How to identify a cypher pattern on your chart
- Bullish vs. bearish cypher patterns
- The psychology behind the pattern
- Real examples
- How to trade the cypher pattern
- Cypher vs. other harmonic patterns
- Is the cypher pattern reliable?
- Advanced strategies for trading harmonic patterns
- Advantages and limits of the cypher pattern
- Common mistakes to avoid when using harmonic patterns
- TradingView scripts and scanners for the cypher pattern
- Questions about the cypher pattern
- Summary
The cypher pattern is a five-point harmonic pattern, labeled with points X, A, B, C and D, in which point C goes beyond A and point D completes at the 0.786 retracement of the whole move from X to C. The setup buys or sells at D, depending on its direction, with the stop beyond X.
This guide gives the exact rules, a worked example with numbers, how to approach trading it, how it differs from its closest cousins, and an answer to the question that matters: does it work? We give our own test results, on every market, next to the choices the test required.
What is the cypher harmonic pattern?
The cypher pattern is a reversal pattern from the family of harmonic patterns: price structures in which each wave must follow specific Fibonacci proportions. Its signature is point C. In the Gartley, the Bat, the Butterfly and the Crab, C stays inside the first wave; here, C makes a new high above A in an advance, or a new low below A in a falling market. The last wave then gives back most of the move from X to C, and D is the price level where the pattern expects price to reverse.
The cypher harmonic structure is credited to Darren Oglesbee. It is not part of the original set defined by Scott Carney, who coined the term harmonic trading, but it uses the same XABCD frame, and free scripts in the TradingView public library detect it.
Understanding the XABCD structure and key ratios
The harmonic pattern has four waves between five turns, and each one has a specific role:
- X to A: the first wave (XA), a strong move up or down.
- A to B: the AB wave must retrace 0.382 to 0.618 of the first wave.
- B to C: the BC wave goes beyond A, so that the distance from X to C is 1.272 to 1.414 times the first wave. Looser versions accept 1.13.
- C to D: the last wave, which ends at the 0.786 retracement of XC. D stays inside the range between X and C.
- Swing low where the pattern starts; the stop sits here
- End of the XA leg
- Retraces 0.382 to 0.618 of XA
- Beyond A: XC measures 1.272 to 1.414 times XA
- D zone: signal0.747 to 0.825 retracement of XC (0.786 within 5%); entry at the close of the first bar that reaches it
- Swing high where the pattern starts; the stop sits here
- End of the XA leg
- Retraces 0.382 to 0.618 of XA
- Beyond A: XC measures 1.272 to 1.414 times XA
- D zone: signal0.747 to 0.825 retracement of XC (0.786 within 5%); entry at the close of the first bar that reaches it
| Point | Fibonacci ratio | Measured on |
|---|---|---|
| B | 0.382 to 0.618 | X to A |
| C | 1.272 to 1.414 (1.13 in looser versions) | X to A |
| D | 0.786 | X to C |
The ratio that matters most is the last one: D is measured on XC, not on XA as in the Gartley. Draw the Fibonacci retracement from X to C, not from X to A. The figure above shows the long setup; the one in the Bullish vs. bearish cypher patterns section shows the opposite direction.
How to identify a cypher pattern on your chart
Start by identifying the five swing highs and lows, then check each Fibonacci proportion in order. If one fails, it is not this pattern: it may be one of the other XABCD patterns, or no pattern at all. For a long setup:
- Mark a clear swing low (X) on the chart and the swing high that follows (A).
- Check that AB retraces 0.382 to 0.618 of that first wave.
- Check that C goes beyond A, to 1.272 to 1.414 of the first wave. Above 1.414, the setup is invalid.
- Draw a Fibonacci retracement from X to C: the 0.786 price level is D.
- Check that D is still above X: a complete pattern never goes below it.
The importance of the B point rule
Point B decides which of the types of harmonic pattern you are looking at. An AB move that gives back 0.382 to 0.618 of the first wave makes B a candidate; a B at 0.786 or deeper suggests other patterns, such as the Butterfly. Then C must go beyond A: if C stays below A, the Gartley or Bat measures apply instead.
Defining the reversal zone at D
With fewer conditions than the Gartley or the Crab, its reversal zone is mostly the 0.786 level of the move from X to C. In harmonic trading, the zone is read as stronger when it lines up with other levels: prior support and resistance levels, a round number, or an extension of BC. We have not tested these confluences. A tighter zone gives a narrower band to act in; our bench does not test whether tighter zones do better.
A worked example with numbers
Illustrative values, not a real chart. For a bullish cypher pattern, X is at 100 and A at 150, so the first wave is 50. B is allowed to retrace 0.382 to 0.618 of it; here it stops at 125, half the wave, inside the range. C rises to 163.6: the distance from X to C is 63.6, or 1.272 times the first wave. D at the 0.786 retracement is 163.6 minus 0.786 times 63.6, which is 113.6. D is above X, so the setup is complete and valid. The order waits at 113.6, and the setup is invalid below 100.
Bullish vs. bearish cypher patterns
There are two types. A bullish cypher pattern is built on rising swings: X is the low of the pattern, C its high, A and C make successive higher highs, and D is a higher low above X. You buy at D, expecting price to increase toward C.
A bearish cypher pattern is the mirror image on falling swings: X is the high, C the low, A and C make successive new lows, and D is a lower high below X. You sell at D. The Fibonacci ratios and the form are the same in both patterns, so you follow the same checklist.
The same example, mirrored: for a bearish cypher pattern, X is at 200 and A at 150, so the first wave is 50. B rebounds to 175, half of it. C falls to 136.4, so the distance from X to C is 63.6, or 1.272 times the first wave. D at the 0.786 retracement is 136.4 plus 50.0, which is 186.4. The sell order waits at 186.4, and the harmonic pattern is invalid above 200.
The psychology behind the pattern
The long version describes buyers who push price to a new high at C, above the first peak at A, followed by a loss of control. Supply takes over and price falls deeper than a normal pullback, but not through the support at X. Traders waiting at D bet that demand returns where most of the advance has been given back but the low of the move still holds. Whether this 0.786 retracement captures that better than any other pullback is a question for data, not for the story.
Real examples
Real occurrences from our test bench, each on its market's main timeframe. Crypto examples come from liquid assets only (the largest coins). Best and Worst are the best and worst 2:1 trade results, Textbook the cleanest shapes (chosen on geometry alone, never on the outcome), Most recent the latest detections among the assets the gallery draws from, Typical a random draw. Shaded area: the pattern. Dashed lines: entry, stop loss (SL) and 2:1 target (TP) of the tested trade. Dotted line: 10 bars after the signal. A result above +2 R or below −1 R means a bar opened past the target or the stop, and the trade was closed at that open. We left out 9 cards: 8 with a shape that does not read as the definition on this page, 1 with a single bar so large that the pattern or the trade levels could not be read. They still count in the statistics, and are not replaced: our bench picks a fixed number of cards per category.
How to trade the cypher pattern
- Entry
- Close of the first bar that reaches the near edge of the reversal zone
- Stop loss (SL)
- At X
- Target (TP)
- Twice the risk (2:1)
- Entry
- Close of the first bar that reaches the near edge of the reversal zone
- Stop loss (SL)
- At X
- Target (TP)
- Twice the risk (2:1)
A clean case from our bench: US stocksChosen on its shape alone, never on the outcome. Stock prices are adjusted for splits and dividends, so they can differ from the prices quoted at the time.
A clean case from our bench: US stocksChosen on its shape alone, never on the outcome. Stock prices are adjusted for splits and dividends, so they can differ from the prices quoted at the time.
Entry point strategy
The standard plan is a limit order at the 0.786 level of the move from X to C, where the structure is complete. A more careful trader waits to follow the reaction at D: a candle such as a hammer or an engulfing, or a break of a small trendline on a lower timeframe, once the candle has closed. Keep in mind what our bench found on candlestick patterns alone: on 12,005 closed trades on daily hammers, the 2:1 trade reached its target 35.4% of the time against 36.1% for the same trade on random dates, a gap rated No clear edge: its average result per trade does not pass our statistical test.
Setting your stop-loss for risk management
Determining take-profit levels
The classic targets are the 0.382 and 0.618 retracements of CD. One plan closes part of the position at the first one and moves the stop to the entry price (breakeven), locking in some profits. With those numbers, CD is 50: the first target price is about 132.7 (113.6 plus 19.1) and the second about 144.5 (113.6 plus 30.9). With a stop at 99, the risk is about 14.6, so the first target pays about 1.3 times the risk and the second about 2.1 times. Those are the entry and exit points written before the trade.
Our bench tests one standardized version of this trade, with the same entry and target rules for every harmonic pattern so that results can be compared, and this pattern's own stop: no limit order, but an entry at the close of the first bar that reaches the 0.786 zone, a stop at X and a target at twice the risk. The 0.618 retracement of CD is measured separately.
Cypher vs. other harmonic patterns
- GartleyBullish or bearishBullish, 10-bar move, daily No clear edgeBearish, 10-bar move, daily No clear edge
- BatBullish or bearishBullish, 10-bar move, daily No clear edgeBearish, 10-bar move, daily No clear edge
- CrabBullish or bearishBullish, 10-bar move, daily No clear edgeBearish, 10-bar move, daily No clear edge
| Pattern | Point B (of X to A) | Point C | Point D |
|---|---|---|---|
| Cypher | 0.382 to 0.618 | beyond A | 0.786 of XC |
| Gartley | 0.618 | inside the first wave | 0.786 of XA |
| Bat | 0.382 to 0.50 | inside the first wave | 0.886 of X to A |
| Crab | 0.382 to 0.618 | inside the first wave | 1.618 of X to A, beyond X |
The closest cousin is the Shark pattern, which Scott Carney described: there too, C goes beyond A, but D completes deeper, at 0.886 to 1.13 of the move to C, so it can end beyond X. Here D stays inside the range, which gives a natural stop at X. Our XABCD guide covers the common frame of these patterns.
Is the cypher pattern reliable?
Detecting it without judgment requires choices, and we set ours from chart reviews, never from results. Turning points are swings of 2, 4 or 8 times the average true range, and X must be a real turning point: over a stretch as long as XA before it, price never went more than 10% of XA beyond X. B must retrace 0.382 to 0.618 of XA, and the move from X to C must measure 1.272 to 1.414 times XA, the main range (not the 1.13 of looser versions). A ratio published as a single value is accepted within 5% of it, so the reversal zone is the 0.786 retracement of XC, from 0.747 to 0.825. The signal is the first bar that trades into the zone without trading below X. Each choice changes the result, and trying many versions until one looks good would produce a number that means nothing, which is why we publish one rule and keep to it.
Moved the expected way 10 bars later, compared with random bars.
Measured on 2,108 daily bullish cypher occurrences across 1,194 assets. Random bars on the same assets are the honest baseline.
No clear edgeMoved the expected way 10 bars later, compared with random bars.
Measured on 1,827 daily bearish cypher occurrences across 1,060 assets. Random bars on the same assets are the honest baseline.
No clear edgeBullish cypher against random bars on the same assets, by market, on daily candles. Bars of almost the same length mean no edge.
- All markets
- Crypto
- US stocks
- ETFs
- Indices
- All markets
- Crypto
- US stocks
- ETFs
- Indices
Bearish cypher against random bars on the same assets, by market, on daily candles. Bars of almost the same length mean no edge.
- All markets
- Crypto
- US stocks
- ETFs
- Indices
- All markets
- Crypto
- US stocks
- ETFs
- Indices
All statistics
Full results for the cypher pattern, market by market
Every occurrence our rule finds on full price history, compared with what the same assets did on random bars. A pattern only earns an edge if it beats random entries after correcting for the thousands of tests we run.
Our verdict
Not a reliable signal on its own here. Use it as context, not as a trigger.
Bullish cypher: 2,108 occurrences tested
Bullish pattern · All markets · Daily · 1,194 assets · 1978-02 to 2026-10
What this means. No measurable difference from the rest of its market over the next 10 bars.
Timeline
- Pattern length, first swing to signal
- 54 days · middle half 35 to 108 · on 2,108 occurrences
- Signal, after the last confirmed swing
- 9 days · middle half 4 to 19 · on 2,108 occurrences
- Time to the 2:1 target, when hit
- 20 days · middle half 9 to 42 · on 711 trades that hit it
- Time to the stop, when hit
- 9 days · middle half 3 to 22 · on 1,200 trades that hit it
- Time in the trade, all exits
- 14 days · middle half 5 to 39 · on 2,085 trades
Size and trade path
- Pattern height
- 24.8% · middle half 15.7% to 41.8% · on 2,108 occurrences
- Best open profit during the trade
- 1.08 R · middle half 0.36 R to 2.06 R · on 2,085 trades
- Stopped trades that were first up 1 R
- 21.9% · on 1,200 stopped trades
- Trades a stop moved to breakeven at +1 R would have closed flat instead of at a loss
Medians, each on the cases named on its line; "middle half" spans the 25th to 75th percentile; no value under 30 cases.
How we detect it. Five swing points X (low), A, B, C, D. B retraces 0.382 to 0.618 of XA. C goes beyond A, the move from X to C measuring 1.272 to 1.414 times XA. When C is confirmed, the reversal zone is a 0.747 to 0.825 retracement of XC (0.786 within 5%). Signal at the close of the first bar that trades into the zone without trading below X. Stop at X. The swing points before the reversal zone span at least 3 ATR, with at least 3 bars between consecutive points. The first swing point is a true extreme: over the duration of the first leg before it, price never went more than 10% of that leg beyond it.
All measurements (20 rows)
10-bar move: did price go the expected way?
| Market | Occurrences | Pattern | Random bars | Excess | 10-bar move verdict |
|---|---|---|---|---|---|
| Crypto · 1-hour | 3,644 | 50.4% | 48.3% | +0.04% | No clear edge |
| Forex · 1-hour | 512 | 51.0% | 50.6% | −0.003% | No clear edge |
| All markets · 1-hour | 4,156 | 50.4% | 48.6% | +0.04% | No clear edge |
| Crypto · 4-hour | 988 | 49.6% | 47.5% | −0.24% | No clear edge |
| Forex · 4-hour | 150 | 46.7% | 50.7% | −0.05% | No clear edge |
| All markets · 4-hour | 1,138 | 49.2% | 48.0% | −0.21% | No clear edge |
| Crypto · Daily | 135 | 57.0% | 44.9% | +0.93% | No clear edge |
| US stocks · Daily | 1,836 | 53.6% | 54.0% | +0.21% | No clear edge |
| ETFs · Daily | 58 | 50.0% | 56.1% | +0.09% | No clear edge |
| Indices · Daily | 37 | 54.1% | 57.5% | +0.44% | No clear edge |
| Forex · Daily | 25 | 60.0% | 50.1% | −0.02% | Not enough data |
| Commodities · Daily | 17 | 41.2% | 50.7% | −2.76% | Not enough data |
| All markets · Daily | 2,108 | 53.7% | 53.4% | +0.23% | No clear edge |
| Crypto · Weekly | 17 | 35.3% | 43.1% | +1.90% | Not enough data |
| US stocks · Weekly | 327 | 63.7% | 56.8% | +1.80% | No clear edge |
| ETFs · Weekly | 3 | 66.7% | 62.9% | −1.08% | Not enough data |
| Indices · Weekly | 8 | 100.0% | 61.5% | +4.71% | Not enough data |
| Forex · Weekly | 3 | 66.7% | 44.1% | −0.51% | Not enough data |
| Commodities · Weekly | 5 | 60.0% | 52.9% | −1.38% | Not enough data |
| All markets · Weekly | 363 | 63.1% | 56.1% | +1.78% | No clear edge |
2:1 trade: target hit and average result
| Market | Trades | Target hit | Same trade, random dates | Per trade | 2:1 trade verdict |
|---|---|---|---|---|---|
| Crypto · 1-hour | 3,642 | 27.2% | 28.1% | +0.03 R vs 0.00 R | No clear edge |
| Forex · 1-hour | 511 | 25.8% | 30.7% | −0.12 R vs +0.05 R | Weak, below chance |
| All markets · 1-hour | 4,153 | 27.0% | 28.5% | +0.01 R vs +0.01 R | No clear edge |
| Crypto · 4-hour | 985 | 25.2% | 29.7% | −0.05 R vs +0.04 R | No clear edge |
| Forex · 4-hour | 150 | 28.7% | 30.1% | +0.02 R vs +0.03 R | No clear edge |
| All markets · 4-hour | 1,135 | 25.6% | 29.8% | −0.04 R vs +0.04 R | No clear edge |
| Crypto · Daily | 132 | 30.3% | 32.7% | +0.06 R vs +0.12 R | No clear edge |
| US stocks · Daily | 1,816 | 34.7% | 34.3% | +0.14 R vs +0.14 R | No clear edge |
| ETFs · Daily | 58 | 32.8% | 35.3% | +0.01 R vs +0.14 R | No clear edge |
| Indices · Daily | 37 | 43.2% | 30.0% | +0.43 R vs +0.05 R | No clear edge |
| Forex · Daily | 25 | 12.0% | 31.7% | −0.54 R vs +0.09 R | Not enough data |
| Commodities · Daily | 17 | 17.6% | 22.1% | −0.28 R vs −0.33 R | Not enough data |
| All markets · Daily | 2,085 | 34.1% | 34.0% | +0.13 R vs +0.13 R | No clear edge |
| Crypto · Weekly | 16 | 37.5% | 49.0% | +0.17 R vs +0.47 R | Not enough data |
| US stocks · Weekly | 319 | 42.9% | 38.9% | +0.39 R vs +0.29 R | No clear edge |
| ETFs · Weekly | 3 | 66.7% | 66.7% | +1.00 R vs +1.00 R | Not enough data |
| Indices · Weekly | 8 | 50.0% | 31.3% | +0.65 R vs +0.46 R | Not enough data |
| Forex · Weekly | 3 | 0.0% | 0.0% | −1.00 R vs −1.00 R | Not enough data |
| Commodities · Weekly | 5 | 20.0% | 35.0% | −0.40 R vs +0.07 R | Not enough data |
| All markets · Weekly | 354 | 42.4% | 39.1% | +0.36 R vs +0.29 R | No clear edge |
Our verdict
Not a reliable signal on its own here. Use it as context, not as a trigger.
Bearish cypher: 1,827 occurrences tested
Bearish pattern · All markets · Daily · 1,060 assets · 1978-05 to 2026-10
What this means. No measurable difference from the rest of its market over the next 10 bars.
Timeline
- Pattern length, first swing to signal
- 51 days · middle half 33 to 95 · on 1,827 occurrences
- Signal, after the last confirmed swing
- 11 days · middle half 5 to 24 · on 1,827 occurrences
- Time to the 2:1 target, when hit
- 18 days · middle half 8 to 38 · on 475 trades that hit it
- Time to the stop, when hit
- 10 days · middle half 4 to 26 · on 1,230 trades that hit it
- Time in the trade, all exits
- 14 days · middle half 5 to 34 · on 1,815 trades
Size and trade path
- Pattern height
- 21.7% · middle half 14.5% to 33.7% · on 1,827 occurrences
- Best open profit during the trade
- 0.80 R · middle half 0.25 R to 2.01 R · on 1,815 trades
- Stopped trades that were first up 1 R
- 20.9% · on 1,230 stopped trades
- Trades a stop moved to breakeven at +1 R would have closed flat instead of at a loss
Medians, each on the cases named on its line; "middle half" spans the 25th to 75th percentile; no value under 30 cases.
How we detect it. Five swing points X (high), A, B, C, D. B retraces 0.382 to 0.618 of XA. C goes beyond A, the move from X to C measuring 1.272 to 1.414 times XA. When C is confirmed, the reversal zone is a 0.747 to 0.825 retracement of XC (0.786 within 5%). Signal at the close of the first bar that trades into the zone without trading above X. Stop at X. The swing points before the reversal zone span at least 3 ATR, with at least 3 bars between consecutive points. The first swing point is a true extreme: over the duration of the first leg before it, price never went more than 10% of that leg beyond it.
All measurements (20 rows)
10-bar move: did price go the expected way?
| Market | Occurrences | Pattern | Random bars | Excess | 10-bar move verdict |
|---|---|---|---|---|---|
| Crypto · 1-hour | 3,316 | 52.5% | 50.6% | +0.09% | No clear edge |
| Forex · 1-hour | 571 | 51.7% | 49.3% | +0.01% | No clear edge |
| All markets · 1-hour | 3,887 | 52.4% | 50.4% | +0.08% | No clear edge |
| Crypto · 4-hour | 734 | 54.4% | 51.9% | +0.86% | Promising |
| Forex · 4-hour | 138 | 51.5% | 49.2% | −0.01% | No clear edge |
| All markets · 4-hour | 872 | 54.0% | 51.5% | +0.72% | Promising |
| Crypto · Daily | 81 | 47.5% | 54.6% | −0.56% | No clear edge |
| US stocks · Daily | 1,599 | 44.9% | 45.4% | +0.11% | No clear edge |
| ETFs · Daily | 68 | 47.1% | 43.7% | +0.42% | No clear edge |
| Indices · Daily | 47 | 31.9% | 42.7% | −0.11% | No clear edge |
| Forex · Daily | 16 | 43.8% | 49.4% | +0.30% | Not enough data |
| Commodities · Daily | 16 | 37.5% | 47.4% | −0.11% | Not enough data |
| All markets · Daily | 1,827 | 44.7% | 45.8% | +0.08% | No clear edge |
| Crypto · Weekly | 1 | 0.0% | 45.3% | +8.85% | Not enough data |
| US stocks · Weekly | 214 | 37.1% | 42.7% | −1.06% | No clear edge |
| ETFs · Weekly | 3 | 0.0% | 42.1% | −2.23% | Not enough data |
| Indices · Weekly | 7 | 42.9% | 38.1% | −3.09% | Not enough data |
| Forex · Weekly | 4 | 50.0% | 46.3% | +0.59% | Not enough data |
| Commodities · Weekly | 4 | 75.0% | 47.7% | −2.84% | Not enough data |
| All markets · Weekly | 233 | 37.5% | 42.7% | −1.09% | No clear edge |
2:1 trade: target hit and average result
| Market | Trades | Target hit | Same trade, random dates | Per trade | 2:1 trade verdict |
|---|---|---|---|---|---|
| Crypto · 1-hour | 3,314 | 24.2% | 28.0% | −0.09 R vs −0.02 R | Weak, below chance |
| Forex · 1-hour | 569 | 30.9% | 29.5% | +0.06 R vs +0.02 R | No clear edge |
| All markets · 1-hour | 3,883 | 25.2% | 28.2% | −0.07 R vs −0.01 R | No clear edge |
| Crypto · 4-hour | 727 | 24.5% | 28.7% | −0.13 R vs −0.01 R | No clear edge |
| Forex · 4-hour | 137 | 28.5% | 32.7% | +0.01 R vs +0.07 R | No clear edge |
| All markets · 4-hour | 864 | 25.1% | 29.3% | −0.10 R vs 0.00 R | No clear edge |
| Crypto · Daily | 76 | 25.0% | 33.1% | −0.17 R vs +0.09 R | No clear edge |
| US stocks · Daily | 1,592 | 26.7% | 26.8% | −0.13 R vs −0.13 R | No clear edge |
| ETFs · Daily | 68 | 22.1% | 30.8% | −0.24 R vs +0.02 R | No clear edge |
| Indices · Daily | 47 | 14.9% | 23.9% | −0.45 R vs −0.19 R | No clear edge |
| Forex · Daily | 16 | 25.0% | 23.4% | −0.03 R vs −0.09 R | Not enough data |
| Commodities · Daily | 16 | 31.3% | 34.4% | −0.05 R vs +0.02 R | Not enough data |
| All markets · Daily | 1,815 | 26.2% | 27.2% | −0.14 R vs −0.12 R | No clear edge |
| Crypto · Weekly | 1 | 0.0% | 0.0% | −1.00 R vs −1.00 R | Not enough data |
| US stocks · Weekly | 210 | 17.6% | 21.0% | −0.45 R vs −0.32 R | No clear edge |
| ETFs · Weekly | 3 | 33.3% | 16.7% | 0.00 R vs −0.50 R | Not enough data |
| Indices · Weekly | 7 | 0.0% | 25.0% | −0.83 R vs −0.10 R | Not enough data |
| Forex · Weekly | 4 | 0.0% | 12.5% | −0.89 R vs −0.34 R | Not enough data |
| Commodities · Weekly | 4 | 75.0% | 18.8% | +1.25 R vs −0.44 R | Not enough data |
| All markets · Weekly | 229 | 17.9% | 20.7% | −0.44 R vs −0.32 R | No clear edge |
Data updated November 5, 2026 · code version c2a1683f · Read the methodology. We measure every pattern on crypto and forex (1-hour, 4-hour, daily and weekly charts) and US stocks, ETFs, indices and commodities (daily and weekly charts). A market or timeframe from that list missing from the tables above had no occurrence.
What you often read
“The bullish cypher is a reliable buy signal.”
What our data shows
On 2,108 daily occurrences, it moved in the expected direction 53.7% of the time, against 53.4% for random bars: no clear edge, since the average excess return is not statistically significant.
What you often read
“The bearish cypher is a reliable sell signal.”
What our data shows
On 1,827 daily occurrences, it moved in the expected direction 44.7% of the time, against 45.8% for random bars: no clear edge, since the average excess return is not statistically significant.
On 2,085 closed trades on bullish setups on daily charts, all markets together, the 2:1 trade reached its target 34.1% of the time, against 34.0% for the same trade on random dates. On 1,815 bearish trades, it was 26.2% against 27.2%. Neither gap is measurable. The 0.618 retracement of CD was reached before the stop, within 100 bars, in 39.6% of bullish daily setups and 30.3% of bearish ones.
A claim that this setup has the highest win rate of any harmonic pattern means little unless it says how the patterns were identified, on which data, and how the result compares with chance.
What the bench measured on the cypher
Every occurrence our rule finds on full price history, in crypto, forex, US stocks, ETFs, indices and commodities, compared with the same trade placed on random dates on the same assets.
Table quoted in the text (verdicts and every market: see All measurements)
| Setup tested | Occurrences (2:1 trades) | 2:1 target hit | Same trade, random dates | Expectancy before costs |
|---|---|---|---|---|
| Bullish, all markets, daily | 2,108 (2,085) | 34.1% | 34.0% | +0.13 R vs +0.13 R |
| Bearish, all markets, daily | 1,827 (1,815) | 26.2% | 27.2% | −0.14 R vs −0.12 R |
| Bullish, all markets, hourly | 4,156 (4,153) | 27.0% | 28.5% | +0.01 R vs +0.01 R |
| Bearish, all markets, 4-hour | 872 (864) | 25.1% | 29.3% | −0.10 R vs 0.00 R |
Read each row in pairs: the pattern against the same trade on random dates. On daily charts, all markets together, the cypher showed no clear edge in either direction. Two daily lines stand out in the All measurements table of the statistics section. Bullish setups on daily crypto charts are rated No clear edge on the 10-bar move (57.0% higher 10 bars later, against 44.9% for random bars), on only 135 setups, and their 2:1 trade did not do significantly better than random dates (30.3% against 32.7%, on 132 trades). Bearish setups on daily index charts are rated No clear edge on the 2:1 trade: the target was hit in 14.9% of 47 trades, against 23.9% on random dates. On hourly charts, bullish setups did about as well as random dates on the 2:1 trade, with an average result of +0.01 R against +0.01 R per trade (rated No clear edge). Bearish setups on 4-hour crypto charts reached the target 24.5% of the time against 28.7% on random dates (rated No clear edge): their average result per trade fell short of random dates, but not by a statistically significant margin; all markets together, 25.1% against 29.3% (rated No clear edge). On hourly charts, all markets together, the bearish 2:1 trade did slightly worse than the same trade on random dates: 25.2% of 3,883 trades reached the target, against 28.2%, for −0.07 R against −0.01 R per trade (rated No clear edge), a gap within the margin of error. On hourly crypto alone, 24.2% against 28.0%, the shortfall passes a simple test but not our correction for multiple testing (rated Weak, below chance). On weekly charts, the bearish trade fell short of random dates too: 17.9% against 20.7% on 229 trades, −0.44 R against −0.32 R (rated No clear edge), a gap within the margin of error. The direction tells another story. On 4-hour crypto charts, 54.4% of bearish setups were lower 10 bars later, against 51.9% of random bars, an average excess of +0.86% (95% interval +0.26% to +1.58%) that held in both halves of the history and passes a simple test, but not our correction for multiple testing: the 10-bar move is rated Promising, not a proven edge. The 2:1 trade, with its stop at X, did not capture it, so this is a fact about direction, not a profitable setup. The method is published in our methodology.
Advanced strategies for trading harmonic patterns
- Trend filter: look at the higher timeframe first, and take a long setup only when the higher timeframe is also in an uptrend, such as above a rising 200-day moving average. On daily charts, our bench splits the bullish cypher by the 200-day average: the trade hit its target in 36.1% of the 710 cases above it, against 33.3% of the 1,372 cases below it, for a similar average result per trade, +0.12 R above and +0.14 R below (a descriptive split, not corrected for multiple testing).
- Divergence at D: in a long setup, price makes a lower low at D than at B while the RSI indicator makes a higher low, which fits the idea of a fading decline. Momentum indicators are possible filters; we have not tested them.
- Confluence: harmonic traders favor a D that sits on prior support and resistance, based on several lines that meet; as said above, we have not tested these confluences.
Advantages and limits of the cypher pattern
- Advantage: the whole plan (entry price, stop at X, targets on CD) is known before price reaches D.
- Advantage: only three Fibonacci ratios to check, fewer than the Gartley or the Crab.
- Limit: the swing high and low that define X and C are chosen by eye, so two traders can draw different patterns.
- Limit: a limit order at D buys a falling price, or sells a rising one, before any sign of a turn.
- Limit: we know of no independent, published test showing that these ratios beat chance, and our own test found no proven edge on the 2:1 trade on any market or timeframe; the one promising result, the 10-bar move of bearish setups on 4-hour charts, driven by crypto, does not survive our correction for multiple testing and did not turn into a profitable trade.
Common mistakes to avoid when using harmonic patterns
- Forcing the measures: calling any structure with C above A a cypher pattern. If B or D is off, it is one of the other patterns, with another exit.
- Measuring D on the wrong wave: D is 0.786 of the move from X to C, not of the first wave.
- Ignoring the higher timeframe: a long setup against a weekly chart in a downtrend, or under major support and resistance, trades against the main trend in the classical reading; we have not measured that filter on the cypher.
- Moving the stop: once price passes X, the structure is invalid.
- Acting early: a setup is not complete until price reaches D.
- Remembering only the winners: keep a record of every setup you would have traded.
TradingView scripts and scanners for the cypher pattern
- XABCD drawing tool: TradingView includes one that shows the Fibonacci ratios as you click.
- Free script library: the TradingView public library has free scripts that find this formation automatically. A trader should read each script's description: proportions and tolerances differ, so two scripts can mark different patterns on the same chart. They are written in Pine Script, TradingView's script language, so you can read the exact tolerance each script uses. Before trusting any script, compare it with your own drawing on a few past patterns.
- Harmonic scanners: paid services use their own detection methods, scan many assets and send alerts when a pattern completes. Some open a free trial: use it to check the alerts against your own drawing. Test them on past patterns before paying.
Questions about the cypher pattern
What is the difference between the cypher pattern and the Shark pattern?
Both have a point C beyond A. In the Shark pattern, D completes at 0.886 to 1.13 of the move to C, so it can end beyond X; in the cypher pattern, D completes at 0.786 of XC and stays inside the range. The cypher pattern therefore has a natural stop at X, and the Shark does not always.
Which timeframe works best for the cypher pattern?
None showed a proven edge on the 2:1 trade on our bench. All markets together, bullish setups reached the 2:1 target 27.0% of the time on hourly charts (random dates: 28.5%), 25.6% on 4-hour charts (29.8%) and 34.1% on daily charts (34.0%); no gap in average result per trade is statistically significant. On direction, the 4-hour bearish setup is the exception, rated promising on the 10-bar move all markets together. Hourly charts gave the most bullish setups (4,156, against 2,108 on daily charts). Use the timeframe on which you can apply the Fibonacci ratios the same way every time.
Who created the cypher pattern?
It is credited to Darren Oglesbee. It is not one of the patterns Scott Carney defined, but it uses the same harmonic frame.
Is the cypher pattern bullish or bearish?
Both. A bullish cypher ends on a higher low; the bearish cypher pattern ends on a lower high.
What is the most important ratio?
D at 0.786 of XC. It is where you act, and it is measured on a different wave than in most harmonic setups.
Does it work in forex and crypto?
The rules are the same on all timeframes and assets, in trends and in ranges. On our bench, neither market produced a profitable edge on the 2:1 trade. Daily crypto bullish setups are rated No clear edge on the 10-bar move, on only 135 setups, with a 2:1 trade no better than random dates. On hourly forex charts, bullish setups reached the 2:1 target 25.8% of the time, against 30.7% on random dates, rated weak, below chance: the average result per trade, −0.12 R against +0.05 R, fell short of chance in a simple test but not after our correction for multiple testing. On 4-hour crypto charts, bearish setups were followed by a decline 10 bars later more often than random bars (54.4% against 51.9%), a gap rated promising, yet their 2:1 trade did worse than random dates (24.5% against 28.7%, −0.13 R against −0.01 R), a gap that is not statistically significant.
How often does it appear?
In its strict form it is rare, which is one reason to be wary of looser proportions that raise the count. Our bench, with the rule above, found one bullish setup for every 4,022 daily bars it scanned, all markets together.
Summary
- B at 0.382 to 0.618 of XA, C beyond A at 1.272 to 1.414 of X to A, D at 0.786 of the move from X to C.
- Act at D, stop beyond X, targets at the 0.382 and 0.618 retracements of CD.
- C beyond A separates it from the Gartley and the Bat; a deeper D, at 0.886 to 1.13 of the move to C, suggests the Shark.
- Tested on our bench with one published rule: no measurable difference from chance on daily charts, all markets together, in either direction. The closest call is the 10-bar move of bearish setups on 4-hour charts (Promising, not confirmed by our correction for multiple testing), which the 2:1 trade did not capture.
This guide is general information about technical analysis and financial markets, not financial or investment advice. Past behavior does not guarantee future results. Trading carries a risk of loss: never trade money you cannot afford to lose.
About the author and the data. Written by Amaury, founder of PatternsWizard, who is passionate about finance, quantitative trading and data analysis. He built the PatternsWizard test bench, which detects each setup with published rules on full market history: crypto, forex, US stocks, ETFs, indices and commodities. Trades and win rates are compared with random bars on the same assets, excess returns with the rest of the market, with error margins and a correction for multiple testing, and the whole pipeline is checked on random-walk prices, where nothing can be predicted. The cypher rule (swings of 2, 4 or 8 times the average true range, ratios within 5%) was set from chart reviews, never tuned on results. Statistics on this page were generated on November 5, 2026. The full methodology explains how it works.
