Skip to content

Order Flow Analysis

What the order book, CVD, tape and volume profile show on the Trading Glass chart, what each detector in the Detectors menu marks, and how to test a marker.

This guide describes the chart at /chart. Trading Glass is in private beta and reads Binance data only: the chart opens after you sign in with an approved account.

Order book

Turn the order book on with Order book in the Overlays menu. It is drawn in a column on the right of the price chart, on the same price scale as the bars, so each level sits next to the price it belongs to.

  • Each bar is the size resting at that price: limit orders waiting to be filled. Bids are below the last price, asks above it. The spread between the best bid and best ask is printed where they meet.
  • The legend at the foot of the column says what a full-length bar means at the current zoom, such as Full bar 140 BTC per $20 row, and the scale mode. Fixed, the default, is a size per $1 of price (7 BTC on BTCUSDT), so a bar means the same on every timeframe; Auto makes the 95th percentile of the rows in view full length. A bar longer than that ends in an arrowhead, and its label keeps the true size.
  • The two largest rows on each side carry a tag with their size and how long they have rested as a wall, counted from when the chart first saw them, such as 827 · 5s.
  • The number at the left of a row, such as −39 or +20, is the size pulled from or added to that price over the last 10 seconds. Trades at that price are added back, so a fill does not count as a pull, and the count starts again when the best price moves.
  • The faint bar behind each row is cumulative depth, counted outward from the last price.
  • When you point at a price, the column shows its distance from the last price, such as ±0.50% from last. Bids and Asks total the resting size within that distance on each side, and the percentage says how much larger or smaller one side is than the other. Rows beyond that distance are dimmed.
  • The small i at the top of the column opens this key on the chart, with the instrument the book comes from.

The book is the live state of the Binance USD-M futures order book, kept in step with Binance update by update. It says Connecting… until it is in step, and Resyncing book…, dimmed, while it catches up after a dropped connection or a missed update. It starts from the book our server has recorded, so right after loading it reaches about 5% either side of price; Binance’s own snapshot covers only about 0.2%. Resting orders can be added or pulled before price reaches them, so read it as current intent, not as trades. Its scale, colors, opacity, Pulled and stacked window and Wall labels are in its settings: the sliders button on the Order book row of the Overlays menu, a right-click on that row (or Shift+F10 on it), or a double-click on the book.

The Liquidity heatmap, also in the Overlays menu and on by default, shows the book over time. Behind the candles and clusters, each minute and price row is shaded by the size that rested there on average during that minute: typical depth stays dim and large resting orders show as bright bands, so a wall that held through a move is easy to follow. Bids are below price and asks above it, as in the column; the shade only says how much rested. On 5-minute and longer charts each bar and price row is one cell by default, the average over the minutes recorded in the bar, so the heatmap lines up with the candles and clusters; Time detail in its settings switches to a column per minute. On 1-minute and shorter charts a cell is always a minute, the finest the book is recorded at.

  • The legend at the bottom left of the price chart is one row: the colour ramp with the sizes its marks stand for at the current zoom, such as 55 · 110 · 220+ BTC per $20 row. Brightness steps up evenly with each doubling from a quarter of full to full; anything larger is drawn at full brightness, and cells under a quarter of it are not drawn. Fixed, the default, sets full brightness as a size per $1 of price, so brightness compares across time, zoom and timeframes; Auto makes the 95th percentile of the cells in view full brightness. The i at its end opens the full key.
  • Point at a cell and the readout at the top left adds a Book row with the size the cell is drawn at, its price rows and its minute, such as Book: 186 BTC · 58,600–58,620 · 20:41 UTC. Where each pixel averages several minutes it names their span; on charts under a minute it says (1-min avg), since a minute’s average then covers several bars. With a cell per bar it names the bar, such as 20:40–20:45 UTC (avg), and where the recording holds only some of the bar’s minutes, as in the oldest 4-hour or daily bar of the two days loaded, how many: 12:00–16:00 UTC (avg over 153 of 240 min). On a hatched or dotted cell it says why there is no size, and on a blank one that it holds less than a quarter of full, such as Book: under 55 BTC. A double-click on a drawn cell opens the heatmap’s settings.
  • Hatched cells are price levels the book had not confirmed in the 15 minutes before, so their size is not known. A sparse dot pattern marks where no book was recorded: more than 2% from price, before recording began, or a minute missing from the recording. The legend shows a chip for each only while such cells are in view. Blank cells had little or nothing resting. Where there is no book at all, the legend says so in one line and the Liquidity heatmap row reads No book data.
  • The depth comes from the chart’s instrument, such as the Binance BTCUSDT perpetual, within 2% of price, and reaches back up to two days, from when recording began. In a replay the heatmap stops at the replay clock; during backtest playback it is hidden.

Its opacity, the hatch, time detail, scale and full brightness per $1 are in its settings, from the sliders button on its row or a double-click on a drawn cell.

Cumulative volume delta (CVD)

CVD is the running total of buying minus selling by market orders, bar after bar. It draws in its own pane under the price chart. Turn it on or off with CVD in the Indicators menu.

  • A rising line means market buyers have been taking more than market sellers since the start of the loaded data; a falling line means the opposite.
  • CVD starts at zero at the first loaded bar, so its level depends on how many days you load. Read its direction and its swings, not the number itself.
  • Compare CVD swings with price swings. A new price high that CVD does not confirm, or a new CVD extreme that price does not follow, is what the detectors below look for.

The detrended and velocity versions of CVD are covered in Indicators & Overlays.

Tape

Turn the tape on with Tape in the Overlays menu. It lists the latest trades in a lane docked beside the order book, or beside the price axis when the book is off, newest on top. Each row reads ▲ for a market buy or ▼ for a market sell, how long ago it printed, its price and its size, the size in the buy or sell color over a bar that shows how large it is.

  • The header names the filter, for example TAPE > 1 BTC, and how many trades printed per second over the last 5 seconds.
  • Under the header, the speed strip shows the last minute one second per column, newest on the right: buy volume above the line, sell volume below, from every trade, not only those over the filter. Taller columns mean busier seconds. A dotted line marks seconds the tape did not hear, such as before the chart loaded or while the feed was down. Turn it off with Speed strip in the tape settings.
  • Trades at or below Hide prints up to are left out, so small prints do not crowd the list. When no trade the tape remembers (up to 5 minutes) passes the filter, the lane says so.
  • Group prints merges back-to-back trades of one side into one row, so a market order that sweeps several prices reads as one: the last price, the total size and ×N for the trades merged. Same ms (the default) merges trades of one millisecond, 100 ms those within a tenth of a second, and Off shows each one. The size filter counts the merged size.
  • The bar behind each size grows on a log scale from the hide size to Full bar at, so a 6 BTC trade reads clearly larger than a 1 BTC one. Trades at or above Highlight at get a row tinted in their side’s color and bold numbers.
  • Sizes are in the instrument’s base asset (BTC, ETH, XRP), and each instrument keeps its own. They start at 1, 25 and 10 BTC on Binance BTCUSDT perpetual, which shows about the largest 7% of trades. Every other instrument starts at sizes measured on its own recorded trades to show about the same share, for example 25, 1,000 and 250 ETH on Binance ETHUSDT perpetual and 0.2, 5 and 2 BTC on Binance BTCUSDT spot.
  • Point at the lane to read it: the rows hold still, the header counts the trades that arrive meanwhile (Paused · 12 new), and a card beside the lane gives the row’s exact time in UTC, its price, size and dollar value, with a short tick at the price axis marking its price. Move away or press Esc to let the rows run again.
  • A bar on the lane’s left edge, in the buy or sell color, brackets the rows of a burst: many trades on one side within a short window, 300 trades within 1 second by default. The tape counts bursts exactly as the Large prints detector does, with that detector’s burst settings, so both mark the same bursts. A short tick marks a burst whose trades are all under the filter. Mark bursts in the tape’s settings turns the bars off.

The tape’s settings hold the sizes, Columns (Compact leaves out how long ago each trade printed), Rows (fit the price pane, or a fixed 10 to 60) and the colors: the sliders button on its row in the Overlays menu, or double-click the tape.

Volume profile

Turn the profile on with Volume profile in the Overlays menu. It draws horizontal bars at the left edge of the price chart: the volume traded at each price across all the data the chart has loaded. The value area, the band of prices around the busiest price that holds 70% of the volume, is drawn in a separate color.

Because it covers the whole loaded range, the profile changes when you change how many days to load. To measure a specific stretch of bars instead, use the volume profile drawing tool. Colors, opacities and width are in its settings, the sliders button on its row in the Overlays menu.

Open interest

Turn it on with Open interest in the Overlays menu. It draws a candle per bar along the bottom of the price chart: the open interest of the Binance futures contract, in the base asset, from the first to the last reading in the bar. The server records it every 3 seconds, so bars from before you opened the chart have it too. Stretches from before recording began come from Binance's 5-minute history and are drawn as flat steps that change only every 5 minutes. In a replay it stops at the replay clock.

Absorption and exhaustion markers

Turn the detector on with Absorption & exhaustion in the Detectors menu. It marks two kinds of event: absorption with a chevron and exhaustion with a hollow triangle, pointing up when bullish and down when bearish.

At each swing point found by the ZigZag, the detector compares the swing with earlier swings of the same kind, nearest first, in price and in CVD. It does not read the clusters themselves:

  • Exhaustion, a regular divergence: price makes the new extreme but CVD does not. Bearish when price makes a higher high and CVD a lower high; bullish when price makes a lower low and CVD a higher low.
  • Absorption, a hidden divergence: CVD makes the new extreme but price does not. Bearish when CVD makes a higher high and price a lower high; bullish when CVD makes a lower low and price a higher low.

The newest swing can still move until the bars after it confirm it, so a marker on it is drawn as a dashed outline at once and turns solid once its swing is confirmed, a few bars later; a dashed marker may move or vanish. Strategies read only solid markers, from the bar each became known.

The detector’s settings, opened with the sliders button beside it in the menu, sketch the rule and say how many markers it found on the loaded bars. Pivot depth sets how many earlier swings, from 1 to 5, each swing is compared with; a higher depth finds a few more markers. Which swings exist is set in the ZigZag’s settings, and its ATR multiplier changes the count far more: a lower one finds more swings.

Where the order book was recorded, an absorption marker’s card also checks the depth at its price: of the cluster row holding the swing and the rows either side, the one where most traded into the level, how much rested there on average during the bar, how much traded, and whether the level was still there in the bar’s last minute (Resting 69 BTC · traded 35 · held). The depth confirms it when the level held and at least half its resting size traded into it. Depth confirmed only, in the detector’s Depth settings, hides the rest; bars without recorded depth say No depth for this bar. Binance does not show RPI orders in its depth, but fills against them count in the traded size.

Walls, refills, sweeps, thin book and book imbalance

Five detectors read the recorded order book of Binance USD-M futures. Each is a row in the Detectors menu with its own settings, its marks list in Detector markers in view with a card, and in a replay only what was known by the clock shows. Binance publishes the size at each price, not single orders, so the cards say pulled or refilled, never who placed the orders.

  • Walls: a price where far more rests than around it, drawn as a line across the time it rested that ends filled, partly filled, pulled near price or cancelled away from it.
  • Refills: a price traded below half its size that the book shows back at half or more within 10 seconds, several times over. Drawn as a thin line at the price with a dot at each refill. By default it takes three refills of a level that rested at least 5 BTC, about 13 an hour on recorded BTC.
  • Sweeps: a burst of trades one way, within one second, through at least 150 prices ($15 on BTC) or through a level of 50 BTC or more, after which price trades back to where the burst began within 60 seconds. Drawn as two chevrons beyond the wick it swept, pointing the way it went; about 12 an hour on recorded BTC. Bursts price did not come back from can be shown outlined.
  • Thin book: minutes when bids and asks within 0.5% of price fall below the 5th percentile of the six hours before, for three minutes or more. Drawn as a strip along the bottom of the price chart rather than over price, where the liquidity heatmap already shades depth; about one stretch every two hours.
  • Book imbalance: stretches when resting bids within 0.25% of price outweigh the asks far more than usual (bid-heavy), or the asks outweigh the bids (ask-heavy). Each bar’s imbalance, smoothed over three bars, is compared with the 90th and 10th percentiles of the twelve hours before it, never with itself, and two bars in a row beyond one of them make a stretch. It is drawn in a lane along the top of the price chart, under the Regime lane: a band along the lane’s bottom edge while bids are heavier, along its top edge while asks are, with a tick where each stretch starts. On recorded BTC it marks about a sixth of the bars on 1-minute and 5-minute charts, two or three stretches an hour on 1 minute. The card gives the mean imbalance, the threshold crossed and how price moved meanwhile. It measures resting orders, which can be pulled before price gets there, so it says how the book leans, not who is trading.

Stacked imbalances

Turn it on with Stacked imbalances in the Detectors menu. It reads the footprint of each bar: at every price row, what traded at the bid (sold) and at the ask (bought). A row is a buying imbalance when it bought at least three times what sold one row below it, and a selling imbalance when it sold at least three times what bought one row above it; the comparison is diagonal, as buyers lift the ask while sellers hit the bid one row lower. Three such rows in a row, one way, make a zone.

A zone is drawn as a box over its rows, in the up colour when buyers stacked (support below price) and the down colour when sellers did (resistance above), with its heavier edge on the side it holds price at. It stays until a later bar trades beyond its far edge, below a bullish zone or above a bearish one, and small squares mark each time price left and came back into it while it held. The card gives its prices, its rows, the weakest ratio among them and the volume behind it. The settings sketch shows a footprint changing with the ratio, the rows in a row, a minimum volume per row and the row size; Runs on picks the timeframe. In a strategy the Stacked imbalance node passes when a zone forms, is retested or is traded through, from the closed bar it happened on.

Large prints and bursts

Turn it on with Large prints in the Detectors menu. It reads the trades themselves, not the bars, and marks two things:

  • Large print: a print at or above the 99.9th percentile of the prints in the 30 bars before its own. Its own bar never counts, so the large size comes from the bars before and a mark never changes later; it waits for prints from a quarter of those bars, and 100 prints at least. It is drawn as a solid pin at its price, pointing up for a buy and down for a sell, larger the further it passed the large size.
  • Burst: 300 trades or more on one side within 1 second. Trades on the other side in between do not break it, and windows that overlap join into one burst. It is drawn as an outlined pin at its average price.

In each bar of the timeframe it runs on, it marks each side’s largest print and its burst with the most volume, at their own time and price. A print is one side’s trades in one second at one price step, as the chart and the backtester receive them. The detector reads the trades this tab has received since it opened, or a replay’s, so bars from before then have no marks.

Point at a pin for its card: who traded and how much, such as Buyers lifted the ask: 42 BTC at 91,250 · 3.4× the large size, the notional and the size a print had to reach in that bar. A burst’s card gives its trades, its volume and average price, its range and the moment it became a burst. The settings sketch each field: the Percentile and how many bars a print is Compared with, a floor (And at least, off at 0), the burst’s Trades, Or volume and Within, and Show for prints, bursts or both. Runs on sets the bars it counts in; prints carry their own time, so any timeframe works. In a strategy the Large print node passes on a large print, a burst or either, on the side you pick.

Value area rule

Turn it on with Value area rule in the Detectors menu. It follows the rule traders call the 80% rule, one UTC day at a time:

  1. The session opens above the prior day’s value area high (VAH) or below its value area low (VAL). The value area is the band of prices around the busiest price that holds 70% of that day’s volume, as the volume profile works it out.
  2. Price trades back inside that value area.
  3. It is accepted once price trades inside in two brackets in a row. A bracket is a 30-minute period counted from 00:00 UTC; a bar longer than a bracket is a bracket of its own.
  4. The opposite edge is the target: VAH after an open below, VAL after an open above. It is a hit when a later bar of the same session trades it, and a miss when the session ends first.

The prior VAH and VAL are drawn as dashed lines across each session that opened outside them, faint until price is accepted. From the bar that accepted it, a dotted line runs at the target, led by a VA label with a triangle pointing the way to the target, to the bar that traded it, marked Hit, or to the session’s end, marked Miss. Acceptance is known at the close of the bar that made it and an outcome at the bar it happened on; strategies read them from those bars.

Point at the target line, or before acceptance at the edge the session opened beyond, for its card: where it opened, where it stands, such as Hit VAL 2h 10m after acceptance, the open, the prior VAH, VAL and POC, the target and the time of acceptance. The card and the settings also give the rate the loaded history shows, such as Loaded history: 7 of 11 hit (64%). The name is a tradition, not a forecast: the rate is what the loaded days did with these settings.

The settings sketch the rule on synthetic bars. Bracket is 15, 30 or 60 minutes; longer brackets accept later. Value area is the share of the prior day’s volume inside it, from 50% to 95%; a wider one puts VAH and VAL further out, so fewer sessions open outside and the target is further away. The rule needs the whole prior UTC day loaded, with its clusters. Runs on picks the timeframe. In a strategy the Value area rule node passes on an acceptance, a target hit or a miss, long after an open below VAL and short after an open above VAH, and gives the target, VAH and VAL.

Naked levels

Turn it on with Naked levels in the Detectors menu. It draws prices of finished sessions that price has not traded at since: the point of control (POC), value area high (VAH) and value area low (VAL) of each UTC day, week (from Monday) and calendar month, and, when you switch them on, each session’s open and close. POC, VAH and VAL come from the session’s cluster volume, with 70% of it inside the value area by default.

  • A naked level is a line at its price from the first bar after its session, running past the newest bar to a label that names it, such as dPOC for a day’s POC or wVAH for a week’s VAH. POC lines take the POC color, VAH and VAL the value area color, opens and closes the axis text color; a week’s line is thicker than a day’s, and a month’s thicker still.
  • The first bar whose range holds the price fills the level. A filled level stays on the chart, faint, and ends in a diamond at that bar; Filled levels in the settings hides them.
  • A level that price has not come back to within Maximum age of its session’s end, 30 days by default, is dropped.

Sessions come from the loaded bars, so a week or month that began before the first of them is left out, and the settings say when loading more days would add weekly or monthly levels. The settings also choose the levels and sessions, the maximum age and the value area, next to a sketch of what each does, and count the levels still naked and those filled. Runs on picks the timeframe; a double-click on a level opens the settings. In a strategy the Naked level node passes when price trades back to a naked level of the kind and session you pick, bullish when price came down to it and bearish when it came up, and gives the nearest naked levels above and below the close.

Cross-venue flow and venue divergence

Cross-venue flow in the Overlays menu adds two panes under the price: the CVD of every venue of the chart’s asset together (Binance and Bybit, spot and perpetual), with spot and perp beside it, and the open interest of both perpetuals added up. Each venue draws the four venues on their own instead, Bybit’s lines dashed. The other venues come from the data warehouse; a bar any of them is missing on adds only the venues it has, and the menu says when one could not be read.

Venue divergence in the Detectors menu marks where the venues disagree: over its lookback, one side’s aggressors bought on balance and the other’s sold, each by at least its minimum share of that side’s volume. It compares spot with perpetuals, or Binance with Bybit. An arrow under the bar where a disagreement starts means long, over it short, following the side you pick (spot, or Binance, by default), with a line along the bars it lasted. The settings show a sketch of each setting on four synthetic venues; Runs on picks the timeframe, 1m or longer.

In a strategy the Venue flow node gives each group’s net delta over a lookback and the total open interest, and the Venue divergence node passes while the venues disagree. Server backtests read the same warehouse data, so they find the same bars.

Ranges

Turn it on with Ranges in the Detectors menu. It finds stretches where price went sideways and draws each as a filled box. While a range is open, RH and RL mark its high and low; once it breaks, an arrow at the breaking bar points up or down and the box takes the broke-up or broke-down color. The Algorithm decides which bars belong to a range:

  • Body overlap, the default: each bar’s body lies at least half inside the box the bodies so far make (Overlap, 50%).
  • Volume profile: at least 70% of each bar’s volume trades inside the value area of the range’s volume (Acceptance), and the box is that value area (Value area, 70%), with a line at its point of control. It needs the chart’s clusters.

A range exists once enough bars belong to it (Min bars; each timeframe keeps its own, 15 on 1-minute bars by default). Up to Missed bars in a row (2) may fail when a bar that belongs follows them, and the box may be no taller than Max height times the ATR at its first bar (3). A bar that fails with no bar that belongs within the missed bars after it ends the range: it breaks up when that bar closes above the box and down when it closes below, and, when it closes inside, the way its body or volume left the box.

Point inside a box for its card: when it ran, whether it is open or which way it broke, its high, low and height, and its POC, VAH and VAL; the box also shows its volume profile while you point at it. The settings sketch the rule and say how many ranges the loaded bars hold. Runs on picks the timeframe. A range can be tested from its card, as the last section of this guide describes.

Regime

Turn it on with Regime in the Detectors menu. It sorts every bar into a regime and tints the price chart behind the candles, one band per run of bars in the same regime. A lane along the top of the price chart names each run with a shape and a word (▲ Up, ▼ Down, – Ranging or Quiet), so the regime never rests on color alone, and the readout at the top left adds the regime of the bar under the pointer, such as Regime: Up · ADX 31. It has two methods:

  • ADX, the default, reads trend strength from 0 to 100. A bar trends while the ADX is above the ADX threshold (25, with an ADX period of 14 bars): up while +DI is at or above −DI, down otherwise. Every other bar is ranging.
  • ATR reads volatility. A bar is quiet while its ATR is under 90% of the ATR’s average (Quiet below), with the ATR over 14 bars (ATR period) and its average over 50 (ATR average). Every other bar is up above the 200-bar SMA (SMA period) and down at or below it.

Bars before the indicators have enough history get no regime, and the lane says Not enough bars there; the settings say how many bars the method needs, how much of the loaded bars each regime covers and the regime now. The newest bar keeps the last regime until the indicators next run. Band opacity and colors are in the settings, and Runs on picks the timeframe. In a strategy the Regime node passes while the regime is the one you choose.

ZigZag swings

Turn it on with ZigZag in the Detectors menu. It draws a line joining the swing highs and lows. The absorption and exhaustion markers, market structure and chart patterns find their swings with the ZigZag’s settings, whether its line shows or not, so changing them changes what those detectors find; harmonic patterns keep swings of their own.

  • A new swing needs price to turn from the last one by ATR multiplier times the ATR, 1.5 by default. With ATR adaptive off, the turn is a fixed share of price instead (Deviation, 0.5%). A larger turn keeps only larger swings.
  • Depth is how many bars on each side a swing must be the highest high or lowest low of (3), and Min bars the fewest bars between one swing and the next (2).
  • The last swing is still forming: it follows price until price turns from it far enough to confirm it.

The settings sketch the swings with these values and say how many swings the loaded bars hold, how far apart they are and whether the last is still forming. Runs on picks the timeframe. In a strategy the ZigZag node gives the latest swing high and swing low.

Market structure

Turn it on with Market structure in the Detectors menu. It reads the swings the ZigZag finds and marks three kinds of signal. Each is a line at the level of the swing it broke or swept, from the swing to the bar that did it, with a label at that end: above a swing high, below a swing low, and with a triangle pointing the signal’s way.

  • BOS (break of structure), a solid line: a close beyond the last swing in the trend’s direction, so the trend goes on. After an MSS, the next close in the new direction is a BOS too, and it turns the trend.
  • MSS (market structure shift), a dashed line: the first close beyond the last swing against the trend. It warns that the trend may turn; a BOS with the old trend cancels the warning.
  • SFP (swing failure), a dotted line: a wick beyond the last swing that closes back inside and becomes the new swing, once price turns away from it as far as the ZigZag needs for a swing.

A signal only counts swings the ZigZag has already confirmed. Until the swings it rests on are settled, and while its bar is still trading, it is drawn faded with a label ending in a question mark, and it may move or vanish. Strategies read only confirmed signals, from the bar each became known.

The detector’s settings sketch the rule, say how many signals it found on the loaded bars and switch each type on or off. Its swings are the ZigZag’s: Edit beside Swings opens the ZigZag settings, where a lower ATR multiplier finds more swings and so more signals.

Chart patterns

Turn it on with Chart patterns in the Detectors menu. It finds sixteen classical patterns in the swings the ZigZag draws: double and triple tops and bottoms, head and shoulders and its inverse, rising and falling wedges, triangles (symmetrical, ascending, descending), rectangles, bullish and bearish flags and pennants, and cup and handle and its inverse. Each is drawn with its points, its line (the neckline, the channel, the edges or the rim) and a short label that points the way it breaks.

  • Forming: its last swing is still moving, so the pattern is dashed, its label ends in a question mark, and it may change or vanish.
  • Complete: price has turned from its last swing as far as the ZigZag needs, and its points no longer change. Triangles and rectangles can break either way, so they show a faint target both ways.
  • Breakout: a bar closed through its line. An arrow marks the bar, and a dotted line marks the target, measured the classical way: the pattern’s height (a flag’s or pennant’s pole) from the break.
  • Then it reaches the target, fails (price goes back past the swing that would prove it wrong, such as a double top’s second top), or expires when it waits too long. Finished patterns stay on the chart, fainter.

A reversal pattern needs a move into it at least 1.25 times its own height, so the swings of a range read as a rectangle rather than a double top. A close through the line of a pattern still forming completes and breaks it on that bar. Every event is dated to the closed bar it happened on and never changes afterwards, and strategies read them from that bar.

Point at a pattern to see its rule, its status, its target and the price that would fail it. A breakout also shows its bar’s delta (buyers or sellers in control) and its volume against the 20-bar average. With Breakout delta must agree on, a close through the line only counts when that delta points the same way.

The settings sketch each pattern as you point at its switch, and say how many patterns were found on the loaded bars. Level tolerance is how far tops or bottoms meant to be level may differ, as a share of the pattern’s height; Prior trend how far price must come into a reversal pattern; Pole size and Max pullback how sharp a flag’s or pennant’s pole is and how far it may pull back. Patterns are built from the ZigZag’s swings: a lower ATR multiplier in its settings finds smaller swings, and so more and smaller patterns.

Harmonic patterns

Turn it on with Harmonic patterns in the Detectors menu. It finds six patterns of five swings whose legs keep Fibonacci ratios: the Gartley, Bat, Butterfly, Crab and Cypher, lettered X, A, B, C, D, and the Shark, lettered O, X, A, B, C. Each is drawn with its four legs, the dashed diagonals of its two triangles, a letter at every point and its name next to the last point, led by a triangle pointing the way it should turn.

  • Gartley: B retraces 0.618 of XA, C 0.382 to 0.886 of AB, and D completes at 0.786 of XA, short of X. Bat: B retraces 0.382 to 0.5, and D completes deep, at 0.886. Cypher: B retraces 0.382 to 0.618, C runs past A to 1.272 to 1.414 of XA, and D completes at 0.786 of XC.
  • Butterfly: B retraces 0.786, and D extends past X to 1.27 to 1.618 of XA. Crab: B retraces 0.382 to 0.618, and D extends to 1.618. Shark: B extends 1.13 to 1.618 of XA, and C extends 1.618 to 2.24 of AB, at 0.886 to 1.13 of OX.

Each new swing is tried as the last point of every pattern that is switched on, and when two fit the same swings the closer fit wins. The band at the last point is the potential reversal zone: the prices that point may complete at with every ratio within the tolerance. While the last swing is still moving inside the zone, the pattern is dashed and its name ends in a question mark; it may change or vanish. It completes when price turns from the last point by the swing size, and from then its points never change. A dotted line then marks the target, 0.618 of the way back to A (a Cypher’s to C, a Shark’s 0.5 of the way back to B). It fails when price passes X first (Gartley, Bat, Cypher) or the far edge of the zone (Butterfly, Crab, Shark), and expires when neither happens within as many bars after its last point as the pattern is wide, 5 at least. Finished patterns stay on the chart, faded, with the outcome after the name, such as Gartley · target or Bat · failed. Every event is dated to the closed bar it happened on and never changes, and strategies read it from that bar.

Point at a pattern for its card: where it stands, its rule, each ratio it measured against the value it should have, its zone, target and invalidation, and its fit, 100% when every ratio is exact and 0% at the tolerance.

The settings open on Patterns: a sketch of the selected pattern on synthetic bars, how many patterns the loaded bars hold and how they ended, and a switch for each pattern. Rules holds Ratio tolerance, how far each ratio may stray as a share of its value (8% by default, so 0.618 accepts 0.569 to 0.667; higher finds more, rougher patterns), and Swing size, how far price must turn to make a point, in ATRs (2 by default; smaller finds more, smaller patterns). These swings are the detector’s own: the ZigZag’s settings do not change them. Display turns the reversal zones, targets and finished patterns on or off and sets colors, opacity, line width and label size. Runs on picks the timeframe. In a strategy the Harmonic pattern node passes when a pattern completes, reaches its target or fails, and gives its target, invalidation and zone. A harmonic pattern is a zone to watch, not a promise that price will turn there.

From a marker to a strategy

Point at a marker, a structure label, a chart pattern or a range box to see what it is, when it formed and at what price. The card fades out a moment after the pointer leaves; move onto it before it is gone to keep it, or click the marker to keep it open until you close it. The card opens on the side away from the bars. The list button on the left rail, Detector markers in view, shows every marker in the visible range; click a row to centre the chart on that marker and open its card.

The card and the list end in two links. Add to new creates a new strategy with that detector, set to the marker’s type and direction, covering the dates visible on the chart at the current timeframe, and opens it in the Strategy Builder below the chart. While a strategy is open, Add to current adds the detector to it instead, unconnected, so you can wire it into your own rules; Ctrl+Z or the toast’s Undo takes it out again. A range adds a Range node, or, as a new strategy, one that fires when a close crosses the range’s high or low. From there you can backtest it and play its trades back. Neither places any order.