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.

On this page
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

- Price, daily candles (hollow up, filled down)
- TII(60, 30) (solid line)
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

- 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
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 reading | What it says |
|---|---|
| 100 | All of the last 30 closes were above their average |
| Above 80 | A strong uptrend; Pee’s long signal when TII crosses above 80 |
| Above 50 | More of the deviation is on the upside: an uptrend is likely in place |
| 50 | Trend-neutral |
| Below 50 | More of the deviation is on the downside: a downtrend is likely in place |
| Below 20 | A strong downtrend; Pee’s short signal when TII crosses below 20 |
| 0 | All 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.
| Signal | Entry, next open | Exit, at the opposite signal | Result before costs |
|---|---|---|---|
| Short, TII below 20 on September 13, 2025 | 115,918.29 on September 14, 2025, before the chart window | 77,625 on April 26, 2026 | +33.03% |
| Long, TII above 80 on April 25, 2026 | 77,625 on April 26 | 63,580 on June 13 | −18.09% |
| Short, TII below 20 on June 12 | 63,580 on June 13 | 64,532.11 on August 18 | −1.50% |
| Long, TII above 80 on August 17 | 64,532.11 on August 18 | Still 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

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.
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.
