Ir al contenido
This page isn’t translated yet, so it’s shown in English.

Detector · TRADES · NODE

Venue divergence

Bars where spot and perpetual traders, or two exchanges, bought and sold in opposite directions.

Strategy Builder: Venue divergence

What it shows

The detector compares two sides of the asset’s trading: spot against perpetuals, every venue together, or Binance against Bybit, both markets. Over its lookback it adds each side’s net delta, aggressive buys minus aggressive sells, as a share of that side’s volume. When one side bought on balance and the other sold, each by at least the minimum share, the sides disagree.

What the chart draws
MarkWhat it means
Arrow under the barThe disagreement started there, marked long: the side it follows (spot by default) bought.
Arrow over the barMarked short: the side it follows sold.
Line along the barsHow long the two sides kept disagreeing the same way.

How it works

  1. 1Each side’s share

    At each bar it sums the last 20 bars of each side’s delta and volume. A side that bought far more than it sold has a large positive share; in the example spot leans to the buy side while the perpetuals sell, but not yet by enough on both.

  2. 2Opposite ways, both past the minimum

    When one side’s share is at least +10% and the other’s at most −10%, the bar is marked. It is known at that bar’s close, and the direction follows the side you pick.

  3. 3How long it lasted

    Bars in a row that disagree the same way make one episode, marked at its first bar, with a line along the rest.

  4. 4A shorter lookback

    A shorter lookback reacts to shorter stretches. In the example a 10-bar lookback marks spot selling into the last push while the perpetuals buy, which the default lookback averages away.

How to use it

Turn it on with Venue divergence in the Detectors menu, and Cross-venue flow in the Overlays menu to see the lines it compares. The settings show a sketch of each setting on four synthetic venues, and Runs on picks the timeframe, 1m or longer.

  • A divergence says the venues disagreed, not which of them was right; read it with price and the levels around it.
  • Raise the minimum share to keep only strong disagreements, or shorten the lookback to catch brief ones.
Venue divergence settings
SettingDefaultWhat changes
CompareSpot against perpSpot against perpetuals across both venues, or Binance against Bybit across both markets.
Direction followsSpotWhich side’s buying makes a mark long.
Lookback20 barsHow many bars each side’s delta is added over.
Minimum share10%How far each side must lean, as a share of its volume, in opposite directions.

What it does not tell you

  • The other venues come from the data warehouse, from when it began recording them. A bar any venue of either side is missing on is not compared.
  • Delta counts aggressive orders only. Which side leads, and why, is not something the data says.
  • Disagreement is common in quiet markets and can last a long time; it is not a forecast of which side wins.
  • The examples run the chart’s own code on a synthetic market and its synthetic venues, not on Binance or Bybit data.

Test it in the Strategy Builder

Venue divergence passes while the venues disagree, with each side’s share. Venue flow gives each group’s net delta and the open interest, for rules of your own. Server backtests read the same warehouse data, so they find the same bars.

Nodes to look for in the Strategy Builder’s palette:

  • Venue divergence

Other layers in this family

  • Large printsSingle prints far larger than recent ones, and bursts of hundreds of trades on one side within a second.
  • Stacked imbalancesFootprint rows where one side outtraded the other several prices in a row, and whether price held there.
  • Absorption & exhaustionSwings where price and cumulative delta disagree: absorption and exhaustion, bullish or bearish.

Questions

Many traders read spot buying as the steadier demand and perpetual flow as leverage. That is a convention, not a rule, so Direction follows lets you pick the other side.

It needs every venue of both sides on the bars it compares, from the data warehouse. Where the chart does not reach it, or a venue is missing, nothing is compared.

See it on a real market

Trading Glass is in private beta and reads Binance data. Every layer described here runs in the chart on that data.