Skip to content

Indicator · TRADES · NODE

TFI

Net delta over all delta in a window of bars, from −100% (all sells) to +100% (all buys), smoothed.

Strategy Builder: Indicator

What it shows

TFI, trade flow imbalance, asks how one-sided the market orders of the last bars were. It adds up the delta of a window of bars, market buys minus market sells, and divides by the sum of their delta without the sign. The result runs from −100%, when every bar in the window was net selling, to +100%, when every bar was net buying, and is drawn in a pane under the price, smoothed.

Reading the line
ValueWhat it means
Near +100%Almost every bar in the window was net buying by market orders.
Near 0Buying and selling bars about cancel, whatever the volume.
Near −100%Almost every bar was net selling.

How it works

The first example uses the defaults, a window of 100 bars smoothed over 30 bars; the other two a window of 20 bars smoothed over 5 bars, so the line turns within the session.

  1. 1A share of the delta

    Net delta over all delta does not grow with volume: a quiet window and a busy one that lean the same way give the same value. Through the range sells lead slightly, and TFI sits a little under zero.

  2. 2Selling pulls it down

    The sweep and the selling after it are large net-selling bars, and the line turns down.

  3. 3A long window remembers

    Over 100 bars the selling stays in the window long after price turned, so the line is still negative well into the rally.

  4. 4A short window turns with the market

    Over 20 bars the selling leaves the window within the rally: the line crosses zero and climbs while buyers lead.

  5. 5Fading while price rises

    Price makes a new high, but fewer of the recent bars were net buying, so TFI keeps falling: the push is carried by a shrinking share of market buys.

How to use it

Turn on TFI in the Indicators menu, in its Flow group. It draws in the Imbalance pane, beside the book’s imbalance lines, as both read in percent. Its settings also set Runs on: the chart’s timeframe or a fixed one.

TFI settings
SettingDefaultWhat changes
Window100 barsBars of delta it compares. Shorter reacts sooner and swings more.
Smoothing30 barsBars averaged into the line. 1 leaves it raw.
  • The window counts bars, so the same setting covers a longer stretch of time on a longer timeframe.
  • Read it beside price: TFI falling while price rises says a smaller share of the bars is net buying.

What it does not tell you

  • It weighs each bar’s delta, not its volume against other bars, and says nothing about whether the aggressive side moved price. Absorbed buying and buying that lifts price read the same.
  • A long window lags by design: in the first example it is still negative a long way into the rally.
  • It reads market orders only; resting orders and the book are not in it.
  • Like any oscillator, extremes can last. It is something to test, not a signal.

Test it in the Strategy Builder

The Indicator node set to TFI reads it, with the node’s period as the window. Backtests smooth it over a fixed 30 bars, so set the chart to the same smoothing when you compare the two.

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

  • Indicator

Other layers in this family

  • CVDMarket buys minus market sells, added up bar after bar: who has been more aggressive, and how much.
  • OFISize joining and leaving the best bid and ask, added up: which side the top of the book leans to.

Questions

CVD adds up delta from the first loaded bar, so it grows with volume and its level depends on where it starts. TFI is a share of the delta in a window of recent bars, from −100% to +100%, so it compares across quiet and busy stretches.

Its window still holds the earlier selling. With the default window of 100 bars, it takes that long for old bars to leave it; a shorter window turns sooner.

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.