Trend indicators

Trend Intensity Index (TII): Formula, the 80 and 20 Rules, and an Example on Real Prices

M. H. Pee’s TII from its documented formula: how 30 bars of deviation from a 60-bar average become a 0 to 100 reading, what 80 and 20 mean in his method, and what the rules gave on daily Bitcoin from September 2025.

· Founder of PatternsWizard
Checked 8 min read
TII(60, 30) on Bitcoin, daily, August 30, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.
On this page
  1. How the Trend Intensity Index is calculated
  2. How to read TII
  3. The 80 and 20 rules
  4. The rules on a real chart
  5. Does it work?
  6. Frequently asked questions

The Trend Intensity Index (TII) measures how one-sided a trend is. It takes a 60-bar simple moving average of the close, looks at the last 30 closes, and asks what share of their total distance from the average lies above it. The result runs from 0 to 100: 100 means all 30 closes were above the average, 0 means all were below, and 50 is neutral. M. H. Pee introduced it in the June 2002 issue of Stocks and Commodities, with signals at 80 for longs and 20 for shorts. It is a trend filter with a fixed rule set, and the rule set is simple enough to check on real prices, which we do below.

Trend Intensity Index on daily Bitcoin

TII(60, 30) on Bitcoin, daily, February 21, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.
  • Price, daily candles (hollow up, filled down)
  • TII(60, 30) (solid line)
TII(60, 30) on Bitcoin, daily, February 21, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.

How the Trend Intensity Index is calculated

Linn Software, which documents the indicator from Pee’s article, gives the steps for the recommended settings, a major period of 60 and a minor period of 30. Compute the 60-bar simple moving average. For each of the last 30 bars, take the gap between the close and the average. Add the gaps above the average to get SDPOS and the gaps below it, as positive amounts, to get SDNEG. The index is the up share of the total.

How the Trend Intensity Index is built

How the Trend Intensity Index is built: closes drawn against their simple moving average. Over the last m bars, the gaps above the average are shaded green and summed into SDPOS, the gaps below are shaded red and summed into SDNEG; the index is 100 times SDPOS divided by SDPOS plus SDNEG.
SDPOS
sum of the distances of closes above the moving average
SDNEG
sum of the distances of closes below it
m
the window, usually half of the average length n
Schematic, not market data. A reading near 100 means nearly every recent close sat above the average; near 0, nearly every close sat below it.Pee's long threshold is reached when the green gaps add up to four times the red ones.

Linn’s page is not consistent on the last step: its description divides by (SDPOS − SDNEG), its formula section by (SDPOS + SDNEG). With SDNEG defined there as the sum of (MA − CL), a positive number, the plus sign is the correct form. If you code the indicator yourself, keep SDNEG either negative with a minus sign or positive with a plus sign; mixing the two gives readings above 100.

Because the index adds up distances and not just a count of bars, one large move above the average can outweigh several small closes below it. A reading of 80 does not mean that 24 of the 30 closes were above the average; it means 80% of the total deviation was. Some platform versions count the bars above and below the average instead of summing the distances; LuxAlgo, which notes the variant, says the readings differ modestly. Check which one your platform uses before comparing its signals with the ones below.

How to read TII

TII readingWhat it says
100All of the last 30 closes were above their average
Above 80A strong uptrend; Pee’s long signal when TII crosses above 80
Above 50More of the deviation is on the upside: an uptrend is likely in place
50Trend-neutral
Below 50More of the deviation is on the downside: a downtrend is likely in place
Below 20A strong downtrend; Pee’s short signal when TII crosses below 20
0All of the last 30 closes were below their average

The 80 and 20 rules

As Linn Software reports them, Pee’s rules are a stop and reverse system: enter long at the next open when TII crosses above 80, enter short at the next open when it crosses below 20, and hold until the opposite signal. Linn reports no stop and no other exit rule. The abstract of Pee’s article, which we read in an archive capture of January 31, 2020, gives the idea behind it: enter during a strong trend and “ride along until the TII shows signs of an imminent reversal.”

The rules on a real chart

The full chart below the introduction shows TII on daily Bitcoin closes from February 21 to October 28, 2026. A stop and reverse system is always in a position once it has started, so we ran Pee’s rules over the whole history of our series, from the first TII value on June 4, 2025, and not only over the window shown. TII was already at 100 on that first day, so any long taken earlier is outside our data; the first signal we can see is a short. Later signals on the side already held, the shorts of November 5, 2025 and February 8, 2026, change nothing.

SignalEntry, next openExit, at the opposite signalResult before costs
Short, TII below 20 on September 13, 2025115,918.29 on September 14, 2025, before the chart window77,625 on April 26, 2026+33.03%
Long, TII above 80 on April 25, 202677,625 on April 2663,580 on June 13−18.09%
Short, TII below 20 on June 1263,580 on June 1364,532.11 on August 18−1.50%
Long, TII above 80 on August 1764,532.11 on August 18Still open on October 28, at a close of 81,343.50+26.05%, not closed

Result of each of Pee’s four signals on daily Bitcoin, before costs

Result of each of Pee’s four signals on daily Bitcoin, before costs. Short, Sep 14, 2025 to Apr 26, 2026: +33.03%; Long, Apr 26 to Jun 13, 2026: −18.09%; Short, Jun 13 to Aug 18, 2026: −1.50%; Long from Aug 18, 2026 (still open): +26.05%, open. Our computation; the inputs and the method are in the text.
Our computation; the inputs and the method are in the text.Entries and exits at the next open after each crossing of 80 or 20 by TII(60, 30); the open long is valued at the close of October 28, 2026. One market, four trades: an illustration of the rules, not a test.

The short came three weeks before the highest close in our series, 124,658.54 on October 6, 2025, so it first ran about 7.5% against the trader at the close before the decline paid it off. The two reversals that followed both lost: the long of April 26 came after Bitcoin had already risen about 23% from its February low, and the short of June 13 after a fall of about 23% from the May high. That is the lag of a reading built on 30 bars of a 60-bar average. On this one market, over about thirteen months, the closed result came from a single lasting downtrend, traded short, and the two reversals after it cost money; the long opened in August was up 26.05% but not closed. That is an illustration of how the rules behave, not evidence that they work or fail.

Does it work?

We have no long-run measurement of TII: our bench tests chart patterns detected by rule against random entries, not indicators (see our methodology). The trades above are one market over about thirteen months, worked through to illustrate the rules, not a test. A fair test would run the same rules on many markets and decades, with costs, and compare them with a plain moving average filter such as price above its moving average, which TII is built on.

For other ways to measure a trend, see the Aroon indicator, the Gann HiLo Activator and the MACD, or the full list of trend indicators.

Every pattern's results on one sheet

The only pattern cheat sheet with tested stats: 152 patterns, what the textbook says and what really happened on 6 markets. Free PDF, sent to your inbox.

The PDF by email, plus our newsletter: new tests and results that change. Unsubscribe anytime. Privacy.

Frequently asked questions

What is the Trend Intensity Index?

An indicator by M. H. Pee that measures the strength of a trend as the share of recent deviation from a moving average that lies above it. With the standard settings it uses a 60-bar average and the last 30 bars, and it ranges from 0 to 100.

What are the best settings for TII?

Pee recommends a major period of 60 and a minor period of 30. Shorter periods make the index react faster and cross 80 and 20 more often; whether that helps on your market can only be known by testing.

What does a TII of 80 mean?

That 80% of the total deviation of the last 30 closes from their average was on the upside. In Pee’s method, a cross above 80 is a signal to go long on the next bar’s open.

Is TII an overbought and oversold indicator?

No. A high TII shows a strong uptrend and a low TII a strong downtrend, and Pee trades with them. Using 80 as a sell level reverses the method.

How is TII different from a moving average?

TII is built on a simple moving average, but instead of comparing only today’s close with it, it sums how far 30 recent closes were above and below. That makes it a measure of how consistent the trend has been, not only of where price stands today.

Sources

  1. Linn Software, Trend Intensity Index (TII)
  2. M. H. Pee, Trend Intensity Index, Stocks and Commodities, June 2002: article abstract on traders.com (archive capture of January 31, 2020)
  3. LuxAlgo, Trend Intensity Index (TII)
, Founder of PatternsWizard

Passionate about finance, quantitative trading and data analysis. Amaury built the PatternsWizard test bench, which detects each pattern on full price history and measures what happened next against random entries.

PatternsWizard tests chart and candlestick patterns on full market history, against random entries. How we test patterns.

179 patterns testedRandom-walk self-test passed

All trend indicators articles