Technical Analysis

What is Harmonic Patterns?

Reviewed by Karthikeyan Anbarasan (Founder, TradeLyser) · Updated 19 Oct 2026 · Editorial policy

DefinitionHarmonic patterns are five-point price structures (X, A, B, C, D) whose swings must fit set Fibonacci ratios, used to mark a zone where a reversal may start. In an illustrative bullish Gartley on Nifty with X at 24,000 and A at 25,000, point D is projected at the 0.786 retracement of XA, 24,214, and a long trade risking 74 points costs ₹4,810 per lot of 65 if it fails.
Formula
Bullish Gartley D = A − 0.786 × (A − X); B = A − 0.618 × (A − X); BC = 0.382 to 0.886 of AB; CD = 1.272 to 1.618 of BC
Example
D = 25,000 − 0.786 × 1,000 = 24,214; B = 25,000 − 618 = 24,382 (illustrative Nifty swings)

How harmonic patterns are built

Every harmonic pattern uses four swings between five pivots. XA is the first leg. AB retraces part of XA, BC retraces part of AB, and CD is the final leg that ends at D, the point where the pattern says a reversal may begin. What separates a Gartley from a Bat, Butterfly or Crab is only the set of ratios each leg must meet, most of them taken from Fibonacci numbers such as 0.382, 0.618, 0.786, 1.272 and 1.618.

The area around D is called the potential reversal zone (PRZ). It is a zone rather than a price because several projections are drawn at once: a retracement of XA, an extension of BC and often an AB = CD measure. When they land close together, traders treat the cluster as the zone to watch. The pattern does not say price will turn there; it only marks where a trade with a tight, defined stop becomes possible.

PatternB retraces XAD measured on XACD as a multiple of BC
Gartley0.6180.786 retracement1.272 to 1.618
Bat0.382 to 0.500.886 retracement1.618 to 2.618
Butterfly0.7861.272 to 1.618 extension (beyond X)1.618 to 2.24
Crab0.382 to 0.6181.618 extension (beyond X)2.24 to 3.618

These are the commonly published ratios, and different authors allow slightly different ranges and tolerances. Pick one reference, write the ranges into your playbook and apply them the same way every time. In every pattern BC retraces 0.382 to 0.886 of AB.

Worked example: a bullish Gartley on Nifty

Illustrative Nifty daily swings. X is a low at 24,000 and A a high at 25,000, so XA is 1,000 points. B pulls back to 24,382, a 0.618 retracement. C rallies to 24,764, which is 382 points or 0.618 of the 618-point AB leg. The final leg CD then falls towards the zone below.

0.786 of XA
24,214
CD = 1.272 × BC
24,278
CD = 1.618 × BC (= AB)
24,146
PRZ
24,146 to 24,278

The 1.618 BC extension is 24,764 − 618 = 24,146, which also equals an AB = CD leg of 618 points. If price reaches 24,214 and turns, CD is 550 points, or 1.44 times BC, inside the Gartley range. Common first and second targets are 0.382 and 0.618 of the AD leg: AD is 786 points, so the targets are 24,514 and 24,700.

Stop choice (entry 24,214)Risk in pointsRisk per lot of 65Reward to 24,514Reward ÷ risk
Below the PRZ at 24,14074₹4,810₹19,5004.1
Below X at 23,980234₹15,210₹19,5001.3

The tight stop is the reason harmonic traders like the setup, but it is also easier to hit, because a CD leg can keep running past D towards a deeper zone, such as the 0.886 level of a Bat. The wider stop survives that, at a third of the reward-to-risk. Neither is right in general; your own tagged trades will show which one your setup can carry.

Using and logging harmonic setups

  1. Fix a pivot rule first, for example a swing high needs two lower highs on each side, so X, A, B and C are not chosen after the fact.
  2. Measure each leg and record the actual ratios, not just the pattern name.
  3. Wait for a reaction inside the PRZ (a reversal candle or a lower-timeframe break) before entering, or record that you entered blind at D.
  4. Set the stop beyond the zone and size the position from that distance.
  5. Tag the trade with the pattern name, the PRZ and the ratios, and review expectancy per pattern after 30 or more trades.
Common mistake
Auto-detection tools redraw patterns as new swings form, so a Gartley that appeared yesterday may be gone today. Screenshot the chart at entry and keep the ratios in the trade note; otherwise the review will only show the patterns that worked.

Harmonic pattern

Five pivots with fixed ratio rules on each leg. Gives a specific zone and a tight stop.
Risk: many patterns, few clean ones

Plain Fibonacci retracement

One swing, levels at 38.2%, 50% and 61.8%. Simpler and easier to test, with less precise zones.
Risk: every level gets touched sometimes
For Indian traders
Patterns are easier to measure on liquid instruments such as Nifty, Bank Nifty and large-cap NSE stocks, where swings are not distorted by thin trading. On daily charts, overnight gaps can jump straight through the PRZ, so a stop just beyond D may fill well past it. The examples use a Nifty lot of 65; check the current NSE circular, as lot sizes are revised periodically.

Reference guide

ContextValueReading
Swing points fixed by a written pivot rule before measuringTestableThe same chart gives the same pattern every time, so the journal results mean something
Ratios stretched until the pattern fitsHindsightA 0.70 retracement called a Gartley B is no longer a Gartley; log it as untagged
Entry at D with no stop beyond the zoneOpen-ended riskA CD leg can run well past D; the stop must be set before entry

Questions

What are the main harmonic patterns?

The Gartley, Bat, Butterfly and Crab are the most widely used, with the Shark and Cypher as later additions. They differ in where B retraces XA and where D is projected.

How is point D calculated in a Gartley?

D sits at the 0.786 retracement of XA. With X at 24,000 and A at 25,000, D = 25,000 − 0.786 × 1,000 = 24,214, confirmed by a CD leg of 1.272 to 1.618 times BC.

Do harmonic patterns work on Nifty and Bank Nifty?

They can be drawn on any liquid chart. Whether they help you depends on your own logged results with a fixed pivot rule, not on the pattern itself.

Where do you put the stop on a harmonic pattern?

Beyond the potential reversal zone, or beyond X for a wider stop. Size the position from that distance before entering.

What is the PRZ?

The potential reversal zone: the area where the D projections from XA, BC and AB = CD cluster. It is a zone to watch for a reaction, not a guaranteed turning point.

Related terms