Back to Guides
Guide

Twiggs Money Flow Formula, Range and Smoothing

The Twiggs Money Flow formula with a worked example, why it runs from -1 to +1, and why a plain EMA port draws a line that reacts nearly twice as fast.

Twiggs® Money Flow scores each bar by how high its close finished in the true range, positive up near the top and negative down near the bottom, multiplies that score by the bar's volume, and divides the smoothed total by smoothed volume. The result always lands between -1 and +1. Colin Twiggs publishes the whole calculation on his own page at Incredible Charts.

Ports disagree about the smoothing. WealthCharts publishes a version that uses a plain exponential average where the author uses Welles Wilder's, and at the common setting of 21 that version weights each new bar 1.91 times as heavily.

What is Twiggs Money Flow?

It is Chaikin Money Flow rebuilt by Colin Twiggs to fix two faults. The range it scores a bar against reaches back to the prior close, and the averaging is Wilder's recursion instead of a sum over a fixed count of bars.

The author names both faults himself. On gaps: "If price gaps up or down and then closes mid-way between the day's high and low, the indicator records no change. It does not account for gaps." On the rolling sum, which he calls a tendency to "bark twice": "unusually high or low data affects the indicator on the day it is added to the indicator period and on the day it is dropped from the calculation". He says that happens more here than with a moving average, and that traders "may witness a surge in the index that is totally unrelated to current price/volume behavior".

TC2000's help site describes the same two changes in its own words. The indicator "is based on true range instead of range in order to include gaps in the calculations and it uses Wilder's smoothing instead of simple moving averages or sums".

His own page describes him as "a former investment banker with almost 40 years of experience in financial markets. He co-founded Incredible Charts".

What is the Twiggs Money Flow formula?

First the true range bounds, in the author's words:

  • "True Range High (TRH) is the greater of today's High and yesterday's Close."
  • "True Range Low (TRL) is the lesser of today's Low and yesterday's Close."

Then the per-bar value, quoted exactly from the author's page:

AD = { (Close - TRL) - (TRH - Close) } / {TRH - TRL} * Volume

Then the smoothing, applied separately to AD and to volume, and finally the division: "Twiggs Money Flow = AD[21] / V[21] expressed as a percentage."

Which smoothing you use decides whether two platforms can agree. The author is explicit that it is Wilder's method and not the standard exponential average, and he gives the conversion in one sentence: "A 14-day Wilder moving average is equivalent to a 27-day exponential moving average using the standard formula."

TC2000's template does the same conversion and shows its working. It sets w=(2*Period)-1 and spells out both cases: Twiggs Money Flow 14 becomes XAVG(..., 27), and Twiggs Money Flow 21 becomes XAVG(..., 41).

LuxAlgo publishes the same recursion in symbols. Written out in plain notation the smoothing step is W_n(x)_t = W_n(x)_{t-1} + (x_t - W_n(x)_{t-1}) / n, which is Wilder's, and the page notes that it uses "alpha = 1/n (Wilder style, per the published definition)".

Is Twiggs Money Flow built into ChartLabs?

Yes. It sits in the chart's Indicators menu, in the Standard list under Volume, named Twiggs Money Flow, and it draws in its own pane below price. Ours follows the author's page: true range bounds, and Wilder's smoothing on both the flow and the volume. There is one setting, Length, at 21 by default, so a 21 here is the author's 21 rather than the faster plain exponential port.

How do you calculate Twiggs Money Flow? A worked example

Four whole-number bars with 3-period Wilder smoothing. The numbers are made up, so you can follow the arithmetic. Both averages are seeded with the first bar's own value and then updated one bar at a time, which is the convention that reproduces the figures below; seed them another way and the reading changes.

BarHighLowCloseVolumePrior closeTRHTRLMultiplierAD
11009899100099100980.00000
2103100102150099103990.5000750
310610410520001021061020.50001000
41051011021200105105101-0.5000-600

On bar 4, the 3-period Wilder average of AD is 133.3333 and of volume is 1362.9630, so Twiggs Money Flow is 133.3333 / 1362.9630 = +0.0978, or +9.78 per cent.

Bar 3 is the author's first complaint made concrete. It gaps up from 102 and closes at 105, exactly mid-way between its own high of 106 and its own low of 104. Chaikin's multiplier, which sees only 104 to 106, scores that bar 0.0000: no information at all. Against the true range, which runs from the prior close at 102 up to 106, the same bar scores +0.5000.

What range does Twiggs Money Flow move in?

From -1 to +1, or -100 to +100 per cent where a platform scales it.

The true range high is at least today's high and the true range low is at most today's low, so the close always sits inside the true range. That makes (Close - TRL) and (TRH - Close) both non-negative and together equal to the true range, so their difference divided by the true range lands between -1 and +1. Put the close at the true high and the multiplier computes to exactly +1.0; put it at the true low and it computes to -1.0; put it halfway and 0.0. Weighting by volume and smoothing the numerator and the divisor keeps those bounds, because both are positive weighted averages.

LuxAlgo states the bound outright: the line "oscillates around zero and is bounded between -1 and +1". MarketVolume adds the consequence: a bounded line can be set against its own past, and with care against another instrument, which a cumulative volume line that runs off the scale cannot.

What does a Twiggs Money Flow reading above or below zero mean?

Above zero, the bars carrying the volume have been finishing in the top half of their true ranges, which the method reads as accumulation. Below zero is the reverse.

The author puts it as: "Twiggs Money Flow signals accumulation if above zero, while negative values signal distribution. The higher the reading (above or below zero), the stronger the signal."

MarketVolume names the limit that sits under both readings. This indicator and Chaikin's both "infer intent from where a close landed inside a range, and that inference is an approximation of who was more aggressive rather than a measurement of it. Every share traded had a buyer and a seller."

Why does the true range matter?

Because on a gap bar the two arithmetics can disagree about the sign, not just the size.

Take a prior close of 100.0 and a bar that gaps up to a high of 101.8, a low of 101.0 and a close of 101.2, finishing low in its own narrow range. Chaikin's multiplier, which sees only 101.0 to 101.8, computes to -0.5000: strong selling. Twiggs' multiplier, with TRH at 101.8 and TRL at 100.0, computes to +0.3333.

The author's reasoning is that the gap is part of where the session traded, so excluding it discards the day's most informative move. MarketVolume makes the same point with its own worked bar, scoring it -0.6 on Chaikin's range and 0.6 on the true range.

What length should you use for Twiggs Money Flow?

21, the author's own default, which he gives as 21 days. LuxAlgo lists the same, "n: smoothing length (default 21)". A 21 on one platform is not a 21 on another.

Why do two platforms show different Twiggs Money Flow lines at the same setting?

Because one uses Wilder's smoothing and the other uses a plain exponential average, and at a setting of 21 the plain version weights each new bar nearly twice as heavily.

SettingWeight on the newest barBars to reach 63% of a stepBars to reach 90%
Wilder, 210.04762047
EMA 41, the 2n-1 conversion0.04762047
EMA 21, a plain port0.09091024

Convert 21 to 41, run a standard EMA, and you reproduce Wilder's weight and its step response exactly. At a setting of 14 the same comparison gives 0.0714 against 0.1333, a factor of 1.87.

A real platform ships the plain version. WealthCharts publishes the calculation as TMF = EMA [ Volume * ( ( Close - LL ) / ( HH - LL ) * 2 - 1 ) ] / EMA [ Volume ] * 100, and defines its bounds the author's way, "LL = minimum [ current Low or previous Close ]" and "HH = maximum [ current High or previous Close ]". So the multiplier is the author's, rearranged. The smoothing is a plain EMA, with no 2n-1 conversion. Run the four-bar example through a plain 3-period EMA instead of Wilder's and the reading falls from +0.0978 to +0.0310, less than a third of it.

LuxAlgo describes ports built on a standard EMA as ones that "respond faster and print slightly different values". The table puts a number on "slightly": 1.91 times the weight on each new bar at a setting of 21.

What happens on a bar that does not move?

Its high, its low and the prior close are all the same price, the true range is zero, and the multiplier would divide by zero. The author's own code guards it.

His MetaStock listing reads ADV:=((C-TRL)-(TRH-C))/If(TR=0,999999,TR)*V;. On such a bar the numerator is zero too, so the result is 0 divided by 999999, which is 0.0. The bar contributes no flow, and its volume still counts in the divisor. A second guard on the next line returns zero if the smoothed volume is zero.

LuxAlgo handles the same case explicitly, setting AD to 0 on any bar whose true range high equals its true range low, which is the same answer.

On a thinly traded instrument or a holiday session, bars that do not move are common, and a platform that skips them rather than counting their volume draws a different line.

How is Twiggs Money Flow different from Chaikin Money Flow?

Chaikin's version scores the close against the bar's own high and low; Twiggs' stretches that range back to the prior close. Chaikin's averages with a sum over a fixed count of bars; Twiggs' uses Wilder's recursion, where every old bar keeps a shrinking share of the average. Put the two series side by side and a level that means something on one means nothing on the other.

Colin Twiggs publishes other studies under his name, Momentum, Trend Index and Volatility among them. They borrow the same smoothing but compute something else.

Does Twiggs Money Flow work on forex?

Only as well as the volume behind it, and on a currency pair that volume is not what the formula assumes.

LuxAlgo states the problem: "Spot forex has no centralized volume, so TMF there runs on tick counts", before moving on to crypto, where the figure changes from one exchange to the next. MetaQuotes writes the same split into its own help, where a volume indicator's input is defined by market: "For the Forex market 'volume' means number of ticks (price changes) that appeared in the time interval. For stock securities volume means the volume of executed trades (in contracts or money terms)."

A tick count is the number of price updates one feed published in that bar. It tracks activity, but it is not shares or contracts traded, and two feeds watching the same market publish different counts.

So a Twiggs Money Flow reading on a currency pair is a statement about one feed. Before you start, write down what the volume on your chart is and where it comes from. Two readings built on different answers cannot be compared with each other.

Is there a Twiggs Money Flow for MT4 or MT5?

Not as a built-in, on either one. MetaTrader 4's own help lists 29 technical indicators and Twiggs Money Flow is not among them. MetaTrader 5's help says "38 indicators are available in the platform", across trend indicators, oscillators, volume indicators and Bill Williams' indicators, and its volume group holds four entries: Accumulation/Distribution, Money Flow Index, On Balance Volume and Volumes. The MQL4 and MQL5 references, which list the indicator functions a script can call, hold 37 and 39 entries respectively, the iCustom loader for custom indicators included, and neither has a Twiggs Money Flow. So on MetaTrader it is something you or someone else writes.

Twiggs® Money Flow is also a proprietary indicator, and the author's legal notice sets the terms: others may describe it elsewhere and reproduce the formula in other software, on condition that they link back to his page.

Can you put Twiggs Money Flow on a ChartLabs chart?

Yes, and the one thing left to settle on it is the volume feeding the line.

The chart's legend always shows the volume of the bar under your cursor, and a Volume indicator can be added from that same Volume heading into its own pane below price, off until you add it. On-Balance Volume, Volume Ratio and Price Volume Trend sit under that heading too.

There is no automatic backtest of an indicator in ChartLabs, so the line is drawn and nothing more; you test the rule yourself by stepping the chart.

How do you write a Twiggs Money Flow rule you can test?

The zero cross is the natural signal, and it needs more definition than it looks.

Decide and write down:

  • the signal: the zero cross, or a stated band either side of it
  • how many bars on the new side count as a change of state, rather than a single-bar flip
  • which bar you read the signal on
  • what cancels it
  • the length, and which smoothing your platform uses

LuxAlgo describes a common approach: treat the state as changed only once the line sits clear of zero "beyond a small band such as plus or minus 0.05". That is one site's account of practice, not a tested setting. A band has arithmetic behind it: a 21-period Wilder average takes 20 bars to travel 63 per cent of the way to a new level, so a line hovering near zero flips sign on very little information. The author publishes his own trading rules on the same page, also built around the zero line.

How do you backtest Twiggs Money Flow step by step?

Settle the data question first: write down what the volume on your chart is and where it comes from, because on a currency pair that is the thing most likely to make your test unrepeatable. Then fix the rule, the length and the smoothing in writing, pick one instrument, one timeframe and one date range before you look at them, and leave all of it alone for the whole run. Step forward one bar at a time so you only ever see what you would have seen then, take every signal the rule gives, and log each trade as you go. Put costs in: our guide on backtesting accuracy covers what spread and commission do to a result.

Four columns in the log belong to this indicator specifically: the Twiggs Money Flow value at entry, the length, whether your platform smooths Wilder's way or with a plain EMA, and where the volume came from. The usual fields go beside them, and a percentage return recorded without a trade count cannot be compared with anything.

ChartLabs is built for that loop. You replay real historical data bar by bar, place trades by hand with market, limit and stop orders carrying a stop loss and a target, and move a stop or target during the replay by dragging its line on the chart, which saves as soon as you let go. Every trade also saves a snapshot of the chart and your drawings as they stood at entry, so you can reopen it later and see what you saw. The broader method is in our beginner's guide to backtesting a strategy, and the currency-specific parts in the forex backtesting guide.

Where does Twiggs Money Flow fall apart?

Wilder smoothing at 21 is slow by design. One heavy selling day moves the line a little and leaves its direction intact. The author warns about the other side of the same property: after a large volume spike, "A gentle slope back towards zero is not a divergence but is caused by the exponential smoothing: the indicator will tend towards zero, over time, in the absence of other factors."

Where a close lands in a range hints at who was pushing harder, and counts nothing directly. A session whose close was set at an auction, an index rebalance or an expiry carries the same weight as a day of continuous trading, though that close was forced rather than chosen. And on a barely traded instrument the whole reading rests on a few prints. MarketVolume names both, and says no version of the indicator has an answer to either, smoothing included.

Test it on your own data

The formula is checkable, and so is every number computed from it. Whether it helps your trading is not, until you measure it. ChartLabs gives you data from Dukascopy, tick-level where it is available and cleaned to remove anomalies, plus bar-by-bar replay to do that by hand, with every trade logged and reviewable afterwards. One plan, $20 a month or $200 a year, everything included.

Start a free trial. It runs 7 days and takes no credit card.

Related Topics

twiggs-money-flowindicatorsvolumemoney-flowbacktesting