Why use a percentage version of MACD? PPO and TRIX
Short answerMACD is measured in price units, so its readings grow and shrink with the price level and are hard to compare between assets or across years. The percentage price oscillator (PPO) divides the same gap between the 12-bar and 26-bar exponential moving averages by the 26-bar average: PPO = 100 × (EMA12 − EMA26) ÷ EMA26. It keeps MACD's shape and zero crossings but reads in percent: +3% means the fast average is 3% above the slow one whether the coin is priced at 60,000 or at 0.50. TRIX is the one-bar percent change of an EMA smoothed three times, which filters out noise at the cost of reacting later. Neither escapes the lag of averaging past prices, and a percentage scale does not say whether a reading is large for that market.
With PPO you can rank momentum across many markets or read a long history on one scale, as long as you judge each reading against that market's usual swings: in this lesson's example, a calm asset's PPO went beyond ±4% on 13 of 125 days and a volatile one's on 62.
Valmy noteValmy's v1 strategy language includes the simple moving average and no other indicator, so PPO and TRIX are taught here for reading charts (as of 26 November 2026).
Percentage price oscillator (PPO): MACD in percent#
The percentage price oscillator (PPO) measures how far a fast exponential moving average (EMA) sits above or below a slow one, as a percentage of the slow one: PPO = 100 × (EMA12 − EMA26) ÷ EMA26. Its input is the close. Its unit is percent, centered on zero and without fixed limits. The usual settings are 12, 26 and 9: a 12-bar EMA, a 26-bar EMA, and a signal line that is the 9-bar EMA of the PPO itself. The histogram is PPO minus its signal line. StockCharts and TradingView document it as the percentage form of MACD, and none of the references checked for this lesson names an inventor.
An exponential moving average gives the newest close a weight α = 2 ÷ (n + 1) and keeps the rest from the previous average: EMA today = EMA yesterday + α × (close − EMA yesterday). For 12 bars α = 0.1538, for 26 bars α = 0.0741 and for 9 bars α = 0.2. The moving average lesson explains EMAs in detail.
Because PPO = 100 × MACD ÷ EMA26, and EMA26 is positive, PPO is always on the same side of zero as MACD. Both cross zero on the same bars. What changes is the scale:
| Asset | EMA12 | EMA26 | MACD | PPO |
|---|---|---|---|---|
| Priced near 40,000 | 40,800 | 40,000 | +800 | +2.00% |
| Priced near 2.00 | 2.04 | 2.00 | +0.04 | +2.00% |
MACD says the first asset's momentum is 20,000 times larger. PPO says the two are the same: in both, the fast average is 2% above the slow one.
Calculating PPO step by step#
To calculate PPO, update each EMA with the new close, take the difference, and divide it by the slow EMA. The table continues a synthetic daily series from bar 35, where EMA12 = 59.285, EMA26 = 56.846 and the signal line = 4.563. Each later row uses only the row above it and the new close. Values are rounded to three decimals, and each step uses the rounded value shown.
| Bar | Close | EMA12 | EMA26 | MACD | PPO (%) | Signal (%) | Histogram |
|---|---|---|---|---|---|---|---|
| 35 | 60.54 | 59.285 | 56.846 | 4.563 | |||
| 36 | 60.86 | 59.527 | 57.143 | 2.384 | 4.172 | 4.485 | −0.313 |
| 37 | 61.22 | 59.787 | 57.445 | 2.342 | 4.077 | 4.403 | −0.326 |
| 38 | 62.19 | 60.157 | 57.796 | 2.361 | 4.085 | 4.339 | −0.254 |
| 39 | 62.05 | 60.448 | 58.111 | 2.337 | 4.022 | 4.276 | −0.254 |
| 40 | 62.84 | 60.816 | 58.461 | 2.355 | 4.028 | 4.226 | −0.198 |
Working through bar 36:
- EMA12 = 59.285 + 0.1538 × (60.86 − 59.285) = 59.527.
- EMA26 = 56.846 + 0.0741 × (60.86 − 56.846) = 57.143.
- MACD = 59.527 − 57.143 = 2.384, in price units.
- PPO = 100 × 2.384 ÷ 57.143 = 4.172%.
- Signal = 4.563 + 0.2 × (4.172 − 4.563) = 4.485%.
- Histogram = 4.172 − 4.485 = −0.313.
Price rose on four of these five bars, yet the PPO stayed below its signal line and the histogram stayed negative. The fast average was still 4% above the slow one, but the gap was no longer widening as fast as before. That is what the histogram measures: the change in momentum, not its level.
The averages need a starting value. This lesson seeds each EMA with the simple average of its first n inputs, as TA-Lib does, so the first PPO appears on bar 26 and the first signal value on bar 34. Platforms that seed differently give slightly different early values, and the difference fades as more bars arrive.
Reading PPO on a chart: a price that triples#
PPO's advantage shows on a long chart where price changes level. In Figure 1 a synthetic price climbs from 10.02 to 31.34 over 260 days, with regular pullbacks of the same percentage size. MACD's swings roughly double as price doubles. PPO's swings stay the same size, because each pullback is the same size in percent.
Walking through the labeled points:
- A, day 66. Price is 15.35 and rising fast. MACD peaks at 1.01 and PPO at 7.6%.
- B, day 221. Price is 30.26, about twice as high, and rising at a similar percentage pace. MACD peaks at 1.94, nearly double, while PPO peaks at 7.4%.
Someone comparing MACD readings across the chart would conclude that momentum at B was almost twice as strong. In percentage terms it was about the same. The PPO also kept its zero crossings identical to MACD's: all 10 fell on the same days. Its signal-line crossings were almost identical: 6 of 9 fell on the same day as MACD's, and the other 3 came one day earlier, because the signal line averages PPO values rather than MACD values.
The same scaling problem appears across assets. Figure 2 shows two synthetic assets, A trading between about 39,700 and 55,900 and B between 1.57 and 3.43.
On a shared MACD axis, B's line never leaves ±0.31 and looks flat. On a shared PPO axis, B swings from −9.8% to +11.4%, wider than A's −1.6% to +6.0%. Only PPO lets you rank the two.
When PPO misleads: comparable units, different meaning#
PPO makes readings comparable in units, but not in significance. A +4% PPO in a calm market is an unusual stretch; in a volatile one it is routine. In Figure 2, asset A moved 1.2% a day on average and asset B 3.3%. A's PPO was beyond ±4% on 13 of its 125 days; B's on 62 of 125. A trader who ranked the two by PPO alone, or used one fixed threshold such as "above +4% is strong" for both, would be ranking volatility as much as trend.
Other limits PPO shares with MACD:
- Lag. On a steady trend a 12-bar EMA trails price by 5.5 bars and a 26-bar EMA by 12.5 bars. PPO crosses zero only when those averages cross, after the turn in price. Dividing by EMA26 changes the scale, not the timing.
- Whipsaws in ranges. When price moves sideways, the two averages wind around each other and the signal line crosses back and forth.
- No volatility adjustment. If you need momentum relative to an asset's own volatility, the true strength index divides by the average size of recent moves.
PPO on stock and crypto charts#
The 12, 26 and 9 settings count bars, not days. On daily bars, 26 bars is about five weeks of US stock trading and 26 calendar days of a crypto pair that trades every day. On intraday stock charts, the EMAs run straight through the overnight break, so an opening gap enters the averages like any other move. For long stock histories, use data adjusted for splits: an unadjusted 2-for-1 split halves the price in one bar, which drags the fast EMA below the slow one in both MACD and PPO. PPO's percentage scale is most useful exactly where stock and crypto histories are longest, such as an asset that rose from 10 to 300 over a decade.
TRIX: a triple-smoothed rate of change#
TRIX measures the one-bar percent change of a closing price that has been smoothed by three exponential moving averages in a row: TRIX = 100 × (EMA3 today ÷ EMA3 yesterday − 1), where EMA3 is an EMA of an EMA of an EMA of the close. Its input is the close. Its unit is percent per bar, centered on zero; its values are small: in this lesson's TRIX(15) charts they stay within ±1%. Settings vary: StockCharts uses 15 bars with a 9-bar EMA as a signal line, TradingView's help page uses 18 in its example, and TA-Lib defaults to 30 bars and outputs no signal line. TRIX is credited to Jack Hutson, then an editor of Technical Analysis of Stocks & Commodities, in the early 1980s. The publisher's summary of his 1984 article describes smoothing the logarithm of the closes, a form that gives nearly the same values.
TRIX is the same measurement as a one-bar rate of change, applied to a heavily smoothed line instead of the raw close. The triple smoothing removes short swings, so TRIX turns gradually and crosses zero rarely. The price of that smoothness is lag.
Calculating TRIX step by step#
To calculate TRIX, smooth the closes with an EMA, smooth that result again, smooth it a third time, then take the one-bar percent change of the third line. Each EMA here is seeded with the simple average of its first n inputs, as TA-Lib does. To keep the arithmetic short, the example uses n = 3, so α = 2 ÷ (3 + 1) = 0.5. Charts in this lesson use n = 15, where the same steps need 43 bars before the first value.
| Bar | Close | EMA1 | EMA2 | EMA3 | TRIX |
|---|---|---|---|---|---|
| 1 | 20.0 | ||||
| 2 | 20.4 | ||||
| 3 | 20.2 | 20.200 | |||
| 4 | 20.8 | 20.500 | |||
| 5 | 21.2 | 20.850 | 20.517 | ||
| 6 | 21.0 | 20.925 | 20.721 | ||
| 7 | 21.6 | 21.263 | 20.992 | 20.743 | |
| 8 | 22.0 | 21.631 | 21.311 | 21.027 | +1.37% |
| 9 | 21.8 | 21.716 | 21.514 | 21.270 | +1.16% |
| 10 | 22.4 | 22.058 | 21.786 | 21.528 | +1.21% |
- EMA1 starts on bar 3 as the average of the first three closes: (20.0 + 20.4 + 20.2) ÷ 3 = 20.200. Bar 4: 20.200 + 0.5 × (20.8 − 20.200) = 20.500.
- EMA2 starts on bar 5 as the average of EMA1 on bars 3 to 5: (20.200 + 20.500 + 20.850) ÷ 3 = 20.517. It then updates the same way.
- EMA3 starts on bar 7 as the average of EMA2 on bars 5 to 7: (20.517 + 20.721 + 20.992) ÷ 3 = 20.743. Bar 8: 20.743 + 0.5 × (21.311 − 20.743) = 21.027.
- TRIX on bar 8 = 100 × (21.027 ÷ 20.743 − 1) = +1.37%.
On bar 9 the close fell 0.9%, from 22.0 to 21.8, but TRIX stayed at +1.16%. The dip barely reached the third smoothing. Values are computed at full precision and rounded for display, so recomputing from the rounded EMAs can differ in the last digit.
Reading TRIX on a chart#
On a chart, TRIX looks like a slow wave: it rises while the smoothed trend accelerates, peaks when the trend is still rising but more slowly, and crosses zero when the triple-smoothed line itself turns. Figure 3 puts the raw one-bar change of a synthetic close next to TRIX(15), so you can see what the smoothing removes. The chart starts after 45 bars of history, so the averages are already warmed up.
- A, day 28. TRIX peaks at +0.49%, while price is still rising. The peak marks the fastest point of the smoothed advance, not the top in price, which came ten days later at 122.03 on day 38.
- B, day 59. TRIX crosses below zero, 21 days after the price peak, with the close at 114.51, 6.2% below the top.
- C, days 86 and 87. In the sideways stretch, TRIX crosses above zero and back below on consecutive days. Even triple smoothing whipsaws when the trend is flat, because TRIX then hovers near zero.
The raw one-bar change of the close flipped sign 74 times in 160 days; TRIX crossed zero five times. That is the noise TRIX removes.
How much TRIX lags#
On a steady trend, an EMA of n bars trails price by (n − 1) ÷ 2 bars, so three EMAs of 15 bars in a row trail it by 3 × 14 ÷ 2 = 21 bars. For comparison, the 12-bar and 26-bar EMAs behind MACD and PPO trail by 5.5 and 12.5 bars. TRIX turns down when the triple-smoothed line stops rising, which on a steady trend happens around 21 bars after price itself turns. Point B in Figure 3, exactly 21 days after the price peak, matches the rule, although real turns are rarely that tidy.
Hutson's original form smoothed the logarithm of the closes and took a one-bar difference. For moves of a few percent, a difference of logarithms is almost the same as a percent change. On the Figure 3 data, the two forms never differed by more than 0.02 percentage points.
When TRIX misleads: a sharp reversal#
Because TRIX trails a steady trend by about 21 bars at n = 15, a sharp reversal can be nearly over before TRIX confirms it. In Figure 4, designed for this lesson, a synthetic price falls from 108.29 on day 16 to 69.20 on day 76, rebounds 24% in 20 days and then falls again.
The numbers, assuming a trader buys when an indicator closes above zero and sells when it closes back below. A signal on a closed daily bar can be filled no earlier than the next day's open; in this synthetic market, which trades around the clock, each day opens at the previous close:
| Indicator | Crosses above zero | Close vs the low | Buy (next open) | Crosses below zero | Sell (next open) | Result |
|---|---|---|---|---|---|---|
| PPO | Day 90 | +20.4% | 83.33 on day 91 | Day 105 | 76.16 on day 106 | −8.6% |
| TRIX(15) | Day 95 | +24.1% | 85.91 on day 96 | Day 109 | 73.51 on day 110 | −14.4% |
The low was 69.20 on day 76. By the time TRIX crossed zero, price had already recovered 24.1%, nearly the whole 24.2% rebound, and the rebound peaked at 85.98 on the very day the TRIX trade was bought. PPO reacted five days sooner and still lost, which shows that the problem is shared by every average-based momentum line; TRIX simply carries more of it. Fees and slippage would add to both losses.
The opposite case is just as real: when a trend lasts for months, TRIX's smoothness keeps a trader from reacting to every pullback. Which matters more depends on whether the market tends to trend or reverse, and a rule built on one stretch of history may not survive the next. Why did my backtest work when live trading didn't? explains that risk.
TRIX on stock and crypto charts#
TRIX(15) on daily bars spans about three weeks of stock trading or 15 calendar days of crypto per smoothing, and the three smoothings together reach back much further. On stock charts, overnight gaps enter the smoothed line gradually, so a large gap barely moves TRIX on the day it happens and keeps influencing it for weeks. Because TRIX's values are tiny percentages, compare them only on the same bar interval: TRIX on hourly bars measures the change per hour and runs far smaller than TRIX on daily bars.
MACD, PPO and TRIX compared#
All three measure the trend of an averaged price; they differ in units, smoothing and lag. A trader who already reads MACD can read PPO the same way and gain comparability across assets and years. TRIX answers a slightly different question, whether the heavily smoothed trend is rising or falling, and trades speed for fewer turns: on a steady trend its triple EMA trails price by about 21 bars, against 12.5 bars for MACD's slower average.
| MACD | PPO | TRIX | |
|---|---|---|---|
| What it measures | Gap between EMA12 and EMA26 | Same gap as a percent of EMA26 | One-bar percent change of a triple EMA |
| Input | Close | Close | Close |
| Unit | Price units | Percent | Percent per bar |
| Usual settings | 12, 26, signal 9 | 12, 26, signal 9 | 15, signal 9 (varies by platform) |
| Comparable across assets and years | No | Yes, in units | Yes, in units |
| Main lag on a steady trend | EMAs trail by 5.5 and 12.5 bars | Same as MACD | Triple EMA trails by 21 bars |
| Zero crossing means | Fast EMA crosses slow EMA | Same bars as MACD | Triple-smoothed line turns |
Check your understanding: PPO and TRIX#
Part 1, PPO. Coin X has EMA12 = 61,800 and EMA26 = 60,000. Coin Y has EMA12 = 0.5150 and EMA26 = 0.5000. X's PPO signal line is at 2.20%. X usually moves about 1% a day and Y about 4% a day.
- What are each coin's MACD and PPO?
- What is X's PPO histogram?
- Is the same PPO reading equally unusual for both coins?
Show the answers
Answer.
- X: MACD = 61,800 − 60,000 = 1,800; PPO = 100 × 1,800 ÷ 60,000 = 3.00%. Y: MACD = 0.5150 − 0.5000 = 0.0150; PPO = 100 × 0.0150 ÷ 0.5000 = 3.00%. The MACD values differ by a factor of 120,000, yet both fast averages are exactly 3% above their slow averages.
- Histogram = 3.00 − 2.20 = +0.80: X's PPO is above its signal line, so the gap between its averages is still widening.
- No. In percentage units the readings are equal, but a 3% gap is a much bigger stretch for a coin that moves 1% a day than for one that moves 4% a day. PPO makes the units comparable, not the significance, as with assets A and B in Figure 2.
Part 2, TRIX. A triple-smoothed EMA(15) reads 250.00, 250.50 and 250.75 on three consecutive days. On the third day the close falls 3%.
- What is TRIX on days 2 and 3?
- Why is TRIX still positive after a 3% drop?
- On a steady trend, about how many bars does the triple EMA(15) trail price?
Answer.
- Day 2: 100 × (250.50 ÷ 250.00 − 1) = +0.20%. Day 3: 100 × (250.75 ÷ 250.50 − 1) = +0.10%.
- One bar's drop reaches the triple-smoothed line only in small part, so the line kept rising, just more slowly. TRIX halving from +0.20% to +0.10% is how the drop shows up. A sustained decline would be needed to push it below zero.
- Each EMA(15) trails by (15 − 1) ÷ 2 = 7 bars, so three in a row trail by 21 bars. A TRIX zero crossing therefore tends to come weeks after the turn in price on daily bars, as at point B in Figure 3.
Related lessons#
- Before this lesson: What does MACD show, and why does it lag?
- Next: What do TSI and the Awesome Oscillator smooth out?
- See also: What does a moving average actually measure?, Which moving average reacts fastest, and what does speed cost?, How fast is price moving, and is it beating the market? and Why did my backtest work when live trading didn't?