Pattern direction

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.

· Founder of PatternsWizard
Updated Statistics updated 16 min read
TPSLEntryBullish reversal at DTPSLEntryBearish reversal at D

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)

Every pattern's results on one sheet

The only pattern cheat sheet with tested stats: 152 patterns, what the textbook says and what really happened on 6 markets. Free PDF, sent to your inbox.

One email with the PDF, then a note when a result changes. Unsubscribe anytime. Privacy.

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

See the statistics

On this page
  1. What is the cypher harmonic pattern?
  2. Understanding the XABCD structure and key ratios
  3. How to identify a cypher pattern on your chart
  4. Bullish vs. bearish cypher patterns
  5. The psychology behind the pattern
  6. Real examples
  7. How to trade the cypher pattern
  8. Cypher vs. other harmonic patterns
  9. Is the cypher pattern reliable?
  10. Advanced strategies for trading harmonic patterns
  11. Advantages and limits of the cypher pattern
  12. Common mistakes to avoid when using harmonic patterns
  13. TradingView scripts and scanners for the cypher pattern
  14. Questions about the cypher pattern
  15. 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.
XABCD
  1. Swing low where the pattern starts; the stop sits here
  2. End of the XA leg
  3. Retraces 0.382 to 0.618 of XA
  4. Beyond A: XC measures 1.272 to 1.414 times XA
  5. 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
Median shape of 794 daily occurrences drawn at random from all markets. Kept: setups with regular legs when enough exist, with the most common number of swing points and no two swing points on the same bar.
XABCD
  1. Swing high where the pattern starts; the stop sits here
  2. End of the XA leg
  3. Retraces 0.382 to 0.618 of XA
  4. Beyond A: XC measures 1.272 to 1.414 times XA
  5. 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
Median shape of 763 daily occurrences drawn at random from all markets. Kept: setups with regular legs when enough exist, with the most common number of swing points and no two swing points on the same bar.
PointFibonacci ratioMeasured on
B0.382 to 0.618X to A
C1.272 to 1.414 (1.13 in looser versions)X to A
D0.786X to C
0.382 to 0.618 XAC: 1.272 to 1.414 XA0.786 XCXABCDBullish
Bullish Cypher: textbook Fibonacci ratios

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:

  1. Mark a clear swing low (X) on the chart and the swing high that follows (A).
  2. Check that AB retraces 0.382 to 0.618 of that first wave.
  3. Check that C goes beyond A, to 1.272 to 1.414 of the first wave. Above 1.414, the setup is invalid.
  4. Draw a Fibonacci retracement from X to C: the 0.786 price level is D.
  5. 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.

0.382 to 0.618 XAC: 1.272 to 1.414 XA0.786 XCXABCDBearish
Bearish Cypher: textbook Fibonacci ratios

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.

Examples
Crypto overallAcross 3,644 bullish cypher occurrences on 1-hour charts, price moved the expected way 10 bars later 50.4% of the time, against 48.3% for random bars. The average excess return does not pass our significance test.No clear edgeThe examples below are single cases.
PatternAfter600.5518.5+10 barsTPSLEntry2025-12
Best tradeBCH December 18, 20251-hour chart8.5% in the expected direction after 10 bars2:1 trade: target hit, +2.00 R
PatternAfter17.7515.28+10 barsTPSLEntry2023-06
Best tradeSOL June 23, 20231-hour chart5.3% in the expected direction after 10 bars2:1 trade: target hit, +2.00 R
PatternAfter27.8223.65+10 barsTPSLEntry2021-06
Worst tradeUNI June 7, 20211-hour chart10.4% against the expected direction after 10 bars2:1 trade: stopped out, −1.00 RAfter the pattern, price left the chart: low 20.47 on June 8, 2021.
PatternAfter66.1161.04+10 barsTPSLEntry2023-09
TextbookAAVE September 23, 20231-hour chartNo net move after 10 bars2:1 trade: stopped out, −1.00 R
PatternAfter12.9912.09+10 barsTPSLEntry2022-04
TextbookLINK April 28, 20221-hour chart1.2% in the expected direction after 10 bars2:1 trade: target hit, +2.00 R
PatternAfter7.356.90+10 barsTPSLEntry2026-10
Most recentUNI October 28, 20261-hour chart3.1% in the expected direction after 10 bars2:1 trade: target hit, +2.00 R
PatternAfter479.4440.9+10 barsTPSLEntry2022-01
TypicalBNB January 20, 20221-hour chart3.1% against the expected direction after 10 bars2:1 trade: stopped out, −1.00 RAfter the pattern, price left the chart: low 409.8 on January 21, 2022.
PatternAfter0.32480.3164+10 barsTPSLEntry2023-072023-07
TypicalADA July 22, 20231-hour chart0.6% in the expected direction after 10 bars2:1 trade: closed at −0.58 R, 100 bars after entry, past this chart
Examples
Crypto overallAcross 3,316 bearish cypher occurrences on 1-hour charts, price moved the expected way 10 bars later 52.5% of the time, against 50.6% for random bars. The average excess return does not pass our significance test.No clear edgeThe examples below are single cases.
PatternAfter2.001.67+10 barsTPSLEntry2023-03
Best tradeTypicalNEAR March 11, 20231-hour chart6.1% in the expected direction after 10 bars2:1 trade: target hit, +2.00 R
PatternAfter56.4541.46+10 barsTPSLEntry2022-06
Worst tradeLTC June 19, 20221-hour chart14.8% against the expected direction after 10 bars2:1 trade: stopped out, −1.00 R
PatternAfter2.191.99+10 barsTPSLEntry2026-05
TextbookATOM May 23, 20261-hour chart1.9% in the expected direction after 10 bars2:1 trade: target hit, +2.00 R
PatternAfter7.796.78+10 barsTPSLEntry2026-10
Most recentUNI October 19, 20261-hour chart0.3% in the expected direction after 10 bars2:1 trade: stopped out, −1.00 R
PatternAfter3.583.26+10 barsTPSLEntry2026-03
TypicalUNI March 29, 20261-hour chart4.1% against the expected direction after 10 bars2:1 trade: target hit, +2.00 R
PatternAfter0.11950.0970+10 barsTPSLEntry2020-08
TypicalXLM August 20, 20201-hour chart1.8% in the expected direction after 10 bars2:1 trade: target hit, +2.00 R

How to trade the cypher pattern

TPSLEntryBullish reversal at D
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)
The trade our bench tests, drawn on the typical shape. Median shape of 794 daily occurrences drawn at random from all markets. Kept: setups with regular legs when enough exist, with the most common number of swing points and no two swing points on the same bar.
TPSLEntryBearish reversal at D
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)
The trade our bench tests, drawn on the typical shape. Median shape of 763 daily occurrences drawn at random from all markets. Kept: setups with regular legs when enough exist, with the most common number of swing points and no two swing points on the same bar.

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.

PatternAfter14.488.73+10 barsTPSLEntry2003-02
TextbookTXN June 24, 2003Daily chart9.7% in the expected direction after 10 bars2:1 trade: target hit, +2.00 R

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.

PatternAfter16.8513.18+10 barsTPSLEntry2007-10
TextbookGLW January 30, 2008Daily chart0.9% against the expected direction after 10 bars2:1 trade: stopped out, −1.00 R, 45 bars after entry, past this chart

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

PatternPoint B (of X to A)Point CPoint D
Cypher0.382 to 0.618beyond A0.786 of XC
Gartley0.618inside the first wave0.786 of XA
Bat0.382 to 0.50inside the first wave0.886 of X to A
Crab0.382 to 0.618inside the first wave1.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.

53.7%vs 53.4% at random

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 edge
44.7%vs 45.8% at random

Moved 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 edge

Bullish cypher against random bars on the same assets, by market, on daily candles. Bars of almost the same length mean no edge.

Moved the expected way 10 bars laterBullish cypherRandom bars
  • All markets
    All markets, Bullish cypher: 53.7%
    All markets, Random bars: 53.4%
  • Crypto
    Crypto, Bullish cypher: 57.0%
    Crypto, Random bars: 44.9%
  • US stocks
    US stocks, Bullish cypher: 53.6%
    US stocks, Random bars: 54.0%
  • ETFs
    ETFs, Bullish cypher: 50.0%
    ETFs, Random bars: 56.1%
  • Indices
    Indices, Bullish cypher: 54.1%
    Indices, Random bars: 57.5%
2:1 trade hit its targetBullish cypher tradeSame trade, random dates
  • All markets
    All markets, Bullish cypher trade: 34.1%
    All markets, Same trade, random dates: 34.0%
  • Crypto
    Crypto, Bullish cypher trade: 30.3%
    Crypto, Same trade, random dates: 32.7%
  • US stocks
    US stocks, Bullish cypher trade: 34.7%
    US stocks, Same trade, random dates: 34.3%
  • ETFs
    ETFs, Bullish cypher trade: 32.8%
    ETFs, Same trade, random dates: 35.3%
  • Indices
    Indices, Bullish cypher trade: 43.2%
    Indices, Same trade, random dates: 30.0%

Bearish cypher against random bars on the same assets, by market, on daily candles. Bars of almost the same length mean no edge.

Moved the expected way 10 bars laterBearish cypherRandom bars
  • All markets
    All markets, Bearish cypher: 44.7%
    All markets, Random bars: 45.8%
  • Crypto
    Crypto, Bearish cypher: 47.5%
    Crypto, Random bars: 54.6%
  • US stocks
    US stocks, Bearish cypher: 44.9%
    US stocks, Random bars: 45.4%
  • ETFs
    ETFs, Bearish cypher: 47.1%
    ETFs, Random bars: 43.7%
  • Indices
    Indices, Bearish cypher: 31.9%
    Indices, Random bars: 42.7%
2:1 trade hit its targetBearish cypher tradeSame trade, random dates
  • All markets
    All markets, Bearish cypher trade: 26.2%
    All markets, Same trade, random dates: 27.2%
  • Crypto
    Crypto, Bearish cypher trade: 25.0%
    Crypto, Same trade, random dates: 33.1%
  • US stocks
    US stocks, Bearish cypher trade: 26.7%
    US stocks, Same trade, random dates: 26.8%
  • ETFs
    ETFs, Bearish cypher trade: 22.1%
    ETFs, Same trade, random dates: 30.8%
  • Indices
    Indices, Bearish cypher trade: 14.9%
    Indices, Same trade, random dates: 23.9%
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.

10-bar move No clear edge2:1 trade No clear edge

Bullish cypher: 2,108 occurrences tested

Bullish pattern · All markets · Daily · 1,194 assets · 1978-02 to 2026-10

Moved the expected way after 10 bars
53.7%
vs 53.4% on random bars
Excess return vs its market, 10 bars
+0.23%
95% interval −0.11% to +0.63%
its market−3%+3%
2:1 trade hit the target
34.1%
vs 34.0% for the same trade on random dates
Average result per trade
+0.13 R
vs +0.13 R on random dates

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?

Figures in gray: fewer than 30 occurrences, not interpreted. Excess return is signed so that positive favors the pattern. The test uses the bootstrap’s standard error and the interval its percentiles: near the 0.05 line, or on a few extreme moves, an interval can leave out zero while the test does not pass, and the test decides. Stock data misses most delisted companies, a survivorship bias we have not sized, which can flatter stock rows.
MarketOccurrencesPatternRandom barsExcess10-bar move verdict
Crypto · 1-hour3,64450.4%48.3%+0.04%No clear edge
Forex · 1-hour51251.0%50.6%−0.003%No clear edge
All markets · 1-hour4,15650.4%48.6%+0.04%No clear edge
Crypto · 4-hour98849.6%47.5%−0.24%No clear edge
Forex · 4-hour15046.7%50.7%−0.05%No clear edge
All markets · 4-hour1,13849.2%48.0%−0.21%No clear edge
Crypto · Daily13557.0%44.9%+0.93%No clear edge
US stocks · Daily1,83653.6%54.0%+0.21%No clear edge
ETFs · Daily5850.0%56.1%+0.09%No clear edge
Indices · Daily3754.1%57.5%+0.44%No clear edge
Forex · Daily2560.0%50.1%−0.02%Not enough data
Commodities · Daily1741.2%50.7%−2.76%Not enough data
All markets · Daily2,10853.7%53.4%+0.23%No clear edge
Crypto · Weekly1735.3%43.1%+1.90%Not enough data
US stocks · Weekly32763.7%56.8%+1.80%No clear edge
ETFs · Weekly366.7%62.9%−1.08%Not enough data
Indices · Weekly8100.0%61.5%+4.71%Not enough data
Forex · Weekly366.7%44.1%−0.51%Not enough data
Commodities · Weekly560.0%52.9%−1.38%Not enough data
All markets · Weekly36363.1%56.1%+1.78%No clear edge

2:1 trade: target hit and average result

R = initial risk of the trade. Entry at the close of the signal bar. Exit at the stop or the target, or at the open when a bar opens beyond either one; otherwise at the close after 100 bars. When one bar touches both the stop and the target, the loss is counted. No fees or slippage. n/a = not measured. Per trade: average result, against the same trade on random dates. Figures in gray: fewer than 30 closed trades, not interpreted.
MarketTradesTarget hitSame trade, random datesPer trade2:1 trade verdict
Crypto · 1-hour3,64227.2%28.1%+0.03 R vs 0.00 RNo clear edge
Forex · 1-hour51125.8%30.7%−0.12 R vs +0.05 RWeak, below chance
All markets · 1-hour4,15327.0%28.5%+0.01 R vs +0.01 RNo clear edge
Crypto · 4-hour98525.2%29.7%−0.05 R vs +0.04 RNo clear edge
Forex · 4-hour15028.7%30.1%+0.02 R vs +0.03 RNo clear edge
All markets · 4-hour1,13525.6%29.8%−0.04 R vs +0.04 RNo clear edge
Crypto · Daily13230.3%32.7%+0.06 R vs +0.12 RNo clear edge
US stocks · Daily1,81634.7%34.3%+0.14 R vs +0.14 RNo clear edge
ETFs · Daily5832.8%35.3%+0.01 R vs +0.14 RNo clear edge
Indices · Daily3743.2%30.0%+0.43 R vs +0.05 RNo clear edge
Forex · Daily2512.0%31.7%−0.54 R vs +0.09 RNot enough data
Commodities · Daily1717.6%22.1%−0.28 R vs −0.33 RNot enough data
All markets · Daily2,08534.1%34.0%+0.13 R vs +0.13 RNo clear edge
Crypto · Weekly1637.5%49.0%+0.17 R vs +0.47 RNot enough data
US stocks · Weekly31942.9%38.9%+0.39 R vs +0.29 RNo clear edge
ETFs · Weekly366.7%66.7%+1.00 R vs +1.00 RNot enough data
Indices · Weekly850.0%31.3%+0.65 R vs +0.46 RNot enough data
Forex · Weekly30.0%0.0%−1.00 R vs −1.00 RNot enough data
Commodities · Weekly520.0%35.0%−0.40 R vs +0.07 RNot enough data
All markets · Weekly35442.4%39.1%+0.36 R vs +0.29 RNo clear edge

Our verdict

Not a reliable signal on its own here. Use it as context, not as a trigger.

10-bar move No clear edge2:1 trade No clear edge

Bearish cypher: 1,827 occurrences tested

Bearish pattern · All markets · Daily · 1,060 assets · 1978-05 to 2026-10

Moved the expected way after 10 bars
44.7%
vs 45.8% on random bars
Excess return vs its market, 10 bars
+0.08%
95% interval −0.24% to +0.43%
Excess return is signed so that positive favors the pattern. On a bearish setup, it means the asset lagged its market.
its market−3%+3%
2:1 trade hit the target
26.2%
vs 27.2% for the same trade on random dates
Average result per trade
−0.14 R
vs −0.12 R on random dates

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?

Figures in gray: fewer than 30 occurrences, not interpreted. Excess return is signed so that positive favors the pattern. The test uses the bootstrap’s standard error and the interval its percentiles: near the 0.05 line, or on a few extreme moves, an interval can leave out zero while the test does not pass, and the test decides. Stock data misses most delisted companies, a survivorship bias we have not sized, which can flatter stock rows.
MarketOccurrencesPatternRandom barsExcess10-bar move verdict
Crypto · 1-hour3,31652.5%50.6%+0.09%No clear edge
Forex · 1-hour57151.7%49.3%+0.01%No clear edge
All markets · 1-hour3,88752.4%50.4%+0.08%No clear edge
Crypto · 4-hour73454.4%51.9%+0.86%Promising
Forex · 4-hour13851.5%49.2%−0.01%No clear edge
All markets · 4-hour87254.0%51.5%+0.72%Promising
Crypto · Daily8147.5%54.6%−0.56%No clear edge
US stocks · Daily1,59944.9%45.4%+0.11%No clear edge
ETFs · Daily6847.1%43.7%+0.42%No clear edge
Indices · Daily4731.9%42.7%−0.11%No clear edge
Forex · Daily1643.8%49.4%+0.30%Not enough data
Commodities · Daily1637.5%47.4%−0.11%Not enough data
All markets · Daily1,82744.7%45.8%+0.08%No clear edge
Crypto · Weekly10.0%45.3%+8.85%Not enough data
US stocks · Weekly21437.1%42.7%−1.06%No clear edge
ETFs · Weekly30.0%42.1%−2.23%Not enough data
Indices · Weekly742.9%38.1%−3.09%Not enough data
Forex · Weekly450.0%46.3%+0.59%Not enough data
Commodities · Weekly475.0%47.7%−2.84%Not enough data
All markets · Weekly23337.5%42.7%−1.09%No clear edge

2:1 trade: target hit and average result

R = initial risk of the trade. Entry at the close of the signal bar. Exit at the stop or the target, or at the open when a bar opens beyond either one; otherwise at the close after 100 bars. When one bar touches both the stop and the target, the loss is counted. No fees or slippage. n/a = not measured. Per trade: average result, against the same trade on random dates. Figures in gray: fewer than 30 closed trades, not interpreted.
MarketTradesTarget hitSame trade, random datesPer trade2:1 trade verdict
Crypto · 1-hour3,31424.2%28.0%−0.09 R vs −0.02 RWeak, below chance
Forex · 1-hour56930.9%29.5%+0.06 R vs +0.02 RNo clear edge
All markets · 1-hour3,88325.2%28.2%−0.07 R vs −0.01 RNo clear edge
Crypto · 4-hour72724.5%28.7%−0.13 R vs −0.01 RNo clear edge
Forex · 4-hour13728.5%32.7%+0.01 R vs +0.07 RNo clear edge
All markets · 4-hour86425.1%29.3%−0.10 R vs 0.00 RNo clear edge
Crypto · Daily7625.0%33.1%−0.17 R vs +0.09 RNo clear edge
US stocks · Daily1,59226.7%26.8%−0.13 R vs −0.13 RNo clear edge
ETFs · Daily6822.1%30.8%−0.24 R vs +0.02 RNo clear edge
Indices · Daily4714.9%23.9%−0.45 R vs −0.19 RNo clear edge
Forex · Daily1625.0%23.4%−0.03 R vs −0.09 RNot enough data
Commodities · Daily1631.3%34.4%−0.05 R vs +0.02 RNot enough data
All markets · Daily1,81526.2%27.2%−0.14 R vs −0.12 RNo clear edge
Crypto · Weekly10.0%0.0%−1.00 R vs −1.00 RNot enough data
US stocks · Weekly21017.6%21.0%−0.45 R vs −0.32 RNo clear edge
ETFs · Weekly333.3%16.7%0.00 R vs −0.50 RNot enough data
Indices · Weekly70.0%25.0%−0.83 R vs −0.10 RNot enough data
Forex · Weekly40.0%12.5%−0.89 R vs −0.34 RNot enough data
Commodities · Weekly475.0%18.8%+1.25 R vs −0.44 RNot enough data
All markets · Weekly22917.9%20.7%−0.44 R vs −0.32 RNo 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 testedOccurrences (2:1 trades)2:1 target hitSame trade, random datesExpectancy before costs
Bullish, all markets, daily2,108 (2,085)34.1%34.0%+0.13 R vs +0.13 R
Bearish, all markets, daily1,827 (1,815)26.2%27.2%−0.14 R vs −0.12 R
Bullish, all markets, hourly4,156 (4,153)27.0%28.5%+0.01 R vs +0.01 R
Bearish, all markets, 4-hour872 (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.

, Founder of PatternsWizard

Passionate about finance, quantitative trading and data analysis. Amaury built the PatternsWizard test bench, which detects each pattern on full price history and measures what happened next against random entries.

Statistics on this page come from our open methodology: every occurrence our rule finds on full history, compared with chance. How we test patterns.

179 patterns testedRandom-walk self-test passed