Cypher pattern — Darren Oglesbee's harmonic formation (X-A-B-C-D)

Last verified: · Long-term evergreen content
Risk warning · YMYL This article is for educational purposes only and is not investment advice. Trading on the Forex market involves a high risk of capital loss — ESMA reports 74–89% of retail accounts lose money.

Most traders learn harmonic patterns through a single mental model: the market makes an impulse, then a correction that stays inside the starting point. The Cypher pattern breaks that intuition. Its second-to-last point deliberately pushes beyond the start of the move, and the entry is measured from a different leg than in the Gartley. That one difference is exactly why the Cypher has to be drawn and read differently from the rest of the harmonic family.

What sets the Cypher pattern apart

The Cypher is a five-point harmonic pattern labelled X, A, B, C and D, popularised by the American trader Darren Oglesbee. It belongs to the same family as the Gartley, Bat and Crab, all built on Fibonacci ratios, but it has its own recognisable proportions. It is a reversal pattern: the completion of point D marks the zone where price is expected to turn.

The key to understanding the Cypher lies in two unusual ratios. Point B retraces between forty and sixty percent of the X–A move, a wide but predictable range. Point C is far more interesting, because it breaks beyond point A and reaches between 127 and 141 percent of the entire X–A leg. Only the last segment comes back: point D lands on the 0.786 retracement of the X–C leg. To refresh the mechanics of measuring these levels, the piece on Fibonacci retracements is a good place to start, since without that tool the Cypher cannot be measured.

How the X-A-B-C-D structure is built

Let us trace a bullish pattern, the kind meant to give a buy signal. It begins with a move down from X to A, the first impulsive leg. Price then bounces to point B, retracing 38.2 to 61.8 percent of the X–A move. Next comes the part that separates the Cypher from the rest: the market falls again, but this time drops below point A and forms point C at 127 to 141 percent of the X–A length. Put simply, C sits outside the initial range rather than inside it.

The final leg runs from C up to point D, on the 0.786 retracement of the X–C leg. This spot is the heart of the pattern, because that is where you open the position. In the Cypher we measure D from the X–C leg, not from X–A as in many other harmonic patterns; this is the single most common source of error for people switching from the Gartley.

„Harmonic patterns use specific combinations of Fibonacci numbers to define precise turning points — it is their precision, not the shape alone, that creates the edge." — Scott M. Carney, Harmonic Trading, Volume One, Pearson, 2010

Why it differs from the Gartley and the Bat

The difference is easiest to see at point C. In the classic Gartley and the Bat, point C is only a correction within the A–B move and does not push beyond point A; the pattern completes inside the initial range, and point D is a retracement of the X–A leg. The Cypher inverts that logic: C deliberately breaks through A and becomes an extension rather than a pullback, so the silhouette is stretched and the entry zone lies elsewhere.

This has practical consequences. Because C reaches beyond A, the pattern tends to form after sharper moves, where the market first overshoots and only then turns back. That brings the Cypher closer to the Crab, which also lives off extreme extensions, than to the corrective Gartley. To see the whole family side by side, start with the overview of harmonic patterns, and the technical analysis section goes deeper.

How to trade the Cypher pattern step by step

Start by finding a clean X–A move on the timeframe you trade, preferably the daily or four-hour chart, where signals are less noisy. Then apply the Fibonacci tool and check two things in order: whether B falls within the 0.382–0.618 range of the X–A move, and whether C lands between 127 and 141 percent of it, genuinely beyond point A. If either condition fails, it is not a Cypher, and it is better to pass than to force the levels.

You plan the entry at the 0.786 retracement of the X–C leg, which is point D. The stop loss goes just beyond point X; if price crosses it, the pattern is invalidated. The first profit target is usually the 0.382 retracement of the C–D leg, the second its 0.618 retracement. Confirm the signal with an independent tool, for example divergence on an oscillator near point D, rather than acting on geometry alone. On placing the protective order, the piece on stop loss and take profit orders helps.

Take a hypothetical, purely illustrative example. Suppose that on EUR/USD point X sits at 1.1000 and point A at 1.0800, so the X–A leg measures 200 pips. Point B bounces to 1.0920, retracing about sixty percent of that move. Price then falls to point C at 1.0746, about 127 percent of the X–A leg measured down from X and therefore below point A. The 0.786 retracement of the C–X leg lands near 1.0945; that is point D, the place to enter the long. The stop loss goes just above point X, and the first target at the 0.382 retracement of the C–D leg, near 1.0869. This shows the method of calculation, not a recommendation for any particular trade.

The most common mistakes

  1. Measuring point D from the X–A leg instead of X–C, a mechanical carry-over of the Gartley habit onto a different pattern.
  2. Accepting a point C that has not pushed beyond point A; in that case it is not a Cypher but a more loosely defined structure.
  3. Entering before point D completes, while price has not reached the 0.786 retracement, which turns the pattern into guesswork.
  4. Setting the stop loss too tight at point D, where a random candle wick takes it out before the pattern has a chance to work.
  5. Treating geometry alone as a certainty and skipping confirmation from a second tool and the context of support and resistance.

What to do tomorrow

  1. Open the daily chart of any major pair and scroll back through several months of history, looking for a move where the correction clearly broke beyond the starting point, because this is the Cypher's natural habitat and the best way to train your eye before you risk real capital.
  2. Apply the Fibonacci tool to the structures you find and measure the B and C ratios in turn, noting how many actually meet the 0.382–0.618 condition for B and 127–141 percent for C, so you see how rarely the pattern appears in clean form.
  3. Mark point D for each valid structure at the 0.786 retracement of the X–C leg and check on historical data whether price really turned in that zone, treating it as your own small backtest rather than trusting statistics blindly.
  4. Before you trade the Cypher live, decide in advance where the stop loss sits just beyond point X and what fraction of your capital you will risk, because it is position size and stop placement, not the pattern itself, that decide whether a run of losing entries wipes you out.
Jarosław Wasiński
About the author

Jarosław Wasiński

Editor-in-chief at MyBank.pl · Financial and market analyst

Independent analyst and practitioner with 20+ years in finance. Founder and editor-in-chief of MyBank.pl, running since 2004. Fundamental analysis of FX and macro markets since 2007.

Sources & bibliography

  1. HarmonicTrader.com (Scott M. Carney) Harmonic Patterns — overview of the harmonic trading pattern family · Strona Scotta Carneya, twórcy współczesnej taksonomii formacji harmonicznych, omawiająca rodzinę formacji opartych na pomiarach Fibonacciego, do której należy Cypher. harmonictrader.com ↗
  2. StockCharts ChartSchool Harmonic Patterns · Edukacyjne omówienie konstrukcji formacji harmonicznych, sekwencji X-A-B-C-D oraz roli zniesień i rozszerzeń Fibonacciego w wyznaczaniu punktów zwrotnych. chartschool.stockcharts.com ↗
  3. TradingView Harmonic Patterns — indicators and strategies · Zbiór narzędzi do automatycznego wykrywania formacji harmonicznych, wymieniających Cypher obok Gartleya, Bata i Craba, co potwierdza miejsce tej formacji w praktyce traderów. www.tradingview.com ↗

Frequently asked

What is the Cypher pattern?

The Cypher is a five-point harmonic pattern labelled X, A, B, C and D, popularised by the American trader Darren Oglesbee. It is a reversal pattern: the completion of point D marks the zone where price is expected to turn. Its defining feature is two unusual ratios. Point B retraces between 38.2 and 61.8 percent of the X-A move, while point C breaks beyond point A and reaches between 127 and 141 percent of the X-A leg. The entry is planned at the 0.786 retracement of the X-C leg, which is point D.

How does the Cypher differ from the Gartley?

The most important difference concerns point C and the way point D is measured. In the Gartley, point C is only a correction within the move, does not push beyond point A, and point D is measured as a retracement of the X-A leg. In the Cypher it is the reverse: point C deliberately breaks through point A and becomes an extension (127–141 percent of X-A), and point D is marked on the 0.786 retracement of the X-C leg, not X-A. Confusing the leg from which D is measured is the most common mistake for people switching from the Gartley to the Cypher.

Where do you set the entry, stop loss and targets in the Cypher?

The entry is planned at the 0.786 retracement of the X-C leg, which is point D, ideally with extra confirmation such as divergence on an oscillator. The stop loss goes just beyond point X: if price crosses it, the pattern is invalidated and there is no reason to stay in it. The first profit target is usually the 0.382 retracement of the C-D leg, and the second, further one sits around the 0.618 retracement of the same leg. Position size and stop placement are decided by your own risk plan, not by the geometry of the pattern alone.

Is the Cypher pattern reliable?

No pattern, the Cypher included, gives a certain signal, and the win-rate figures circulating online should be treated with caution, because they usually do not come from a transparent, repeatable methodology. The value of the pattern comes from its precision: strictly holding to the 0.382–0.618 ratios for point B and 127–141 percent for point C filters out random structures. The best way to judge whether the Cypher fits your style is your own backtest on historical data, combined with confirmation from a second tool and the context of support and resistance, rather than trading on geometry alone.

Go deeper · the complete guide