Trend indicators

Polarized Fractal Efficiency (PFE): Formula, Reading as a Trend Filter, and an S&P 500 Example

Hans Hannula’s PFE compares the straight-line distance price traveled over ten bars with the path it actually took, then signs and smooths the ratio; here is the formula, why its scale depends on price units, and what it showed on a year of an S&P 500 ETF.

· Founder of PatternsWizard
Checked 7 min read
PFE(10, 5) on S&P 500 ETF, dividend-adjusted prices, daily, August 5, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.
On this page
  1. How PFE is calculated
  2. How to read PFE
  3. PFE on a real chart
  4. Does it work?
  5. Frequently asked questions

Polarized Fractal Efficiency (PFE) measures how efficiently price has moved. Over the last ten bars, it compares the straight-line distance from the old close to the new one with the length of the path drawn by the closes in between. A market that moved in a straight line scores near 100%; one that zigzagged scores near zero. The result takes the sign of the move, up or down, which is the polarized part, and is smoothed with a 5-bar exponential average. Hans Hannula introduced it in Technical Analysis of Stocks and Commodities in January 1994.

Polarized Fractal Efficiency on a daily S&P 500 ETF

PFE(10, 5) on S&P 500 ETF, dividend-adjusted prices, daily, October 30, 2025 to October 28, 2026. Illustration of how the indicator reads, not a backtest.
  • Price, daily candles (hollow up, filled down)
  • PFE(10), EMA(5) smoothed (solid line)
PFE(10, 5) on S&P 500 ETF, dividend-adjusted prices, daily, October 30, 2025 to October 28, 2026. Illustration of how the indicator reads, not a backtest.

How PFE is calculated

Infront’s documentation gives Hannula’s geometric approach. The length of a move is not the price difference but the length of the line joining two points of the chart, with the time axis counted in bars. Over n bars, the direct length is the square root of the squared price change plus n squared. The path is the sum, over the n bars, of the square root of each one-bar price change squared plus one. The fractal efficiency is 100 times the direct length divided by the path. It takes a plus sign if the close is above the close n bars ago and a minus sign otherwise, and the signed value is smoothed by an exponential moving average of z bars. Infront’s defaults are n = 10 and z = 5.

What Polarized Fractal Efficiency compares

What Polarized Fractal Efficiency compares: two panels with the same first and last close. On the left the closes move up almost along the straight line between them, so the path is about as long as the line and PFE is near plus one hundred. On the right the closes zigzag up and down before reaching the same end, so the path is much longer than the line and PFE is low.
Schematic, not market data.PFE is the straight line divided by the path, signed by the direction of the move, then smoothed.

The fractal in the name refers to this comparison of a coarse line with the finer path inside it, in the spirit of fractal geometry. It has nothing to do with the five-bar Williams fractals, a separate tool that marks swing highs and lows.

The time term counts one unit per bar in price units, so PFE depends on the price level. On Bitcoin, where a day’s move is hundreds of dollars, the time term is negligible and PFE is close to the net move divided by the sum of the daily moves. On the ETF of our chart, whose median daily change over the window was 3.48 dollars, the time term still weighs. LuxAlgo points out this sensitivity to scale, and Infront’s version has a price scale setting for it. One consequence: with raw prices, a market that barely moves, in steps small against one price unit, reads close to ±100, because the time term dominates; a flat close gives the minus sign.

To see the size of the effect, we ran PFE(10, 5) on the same year of the ETF with every price multiplied or divided by 10 or 100, which changes nothing about the market itself:

Days with PFE(10, 5) beyond ±50, same ETF year, price rescaled

Days with PFE(10, 5) beyond ±50, same ETF year, price rescaled. Prices divided by 100: 73.2%, 183 of 250; Prices divided by 10: 70.4%, 176 of 250; Prices as quoted, in dollars: 13.6%, 34 of 250; Prices multiplied by 10: 12.0%, 30 of 250; Prices multiplied by 100: 12.4%, 31 of 250. Our computation; the inputs and the method are in the text.
Our computation; the inputs and the method are in the text.Dividend-adjusted S&P 500 ETF, daily, October 30, 2025 to October 28, 2026. Only the price unit changes from one bar to the next; the market is the same.

Quoted in units a hundred times larger, the same ETF spent 73.2% of its days beyond ±50 instead of 13.6%. Bitcoin, whose daily moves are worth hundreds of price units, had the same share in all five units: 9.6% of its last 250 days. Compare PFE readings only on one market, in one price unit, on one platform.

How to read PFE

PFE readingWhat it says
Near +100Price rose in an almost straight line over the last n bars
Above +50An efficient rise: LuxAlgo treats readings beyond ±50 as trending
Around 0Price went back and forth
Below −50An efficient decline
Near −100Price fell in an almost straight line

Used as a trend filter, PFE separates efficient moves from choppy ones: a trend rule would only take signals while PFE is beyond a threshold in the same direction. LuxAlgo describes this use as a regime filter; we know of no published test of it. Infront documents a different, contrarian basic trading system with lines at +40 and −40: a buy when PFE crosses −40 upward, closed when it crosses back below −40, and a sell when PFE crosses +40 downward, closed when it crosses back above.

PFE on a real chart

The full chart below the introduction shows PFE(10, 5) on a dividend-adjusted S&P 500 ETF from October 30, 2025 to October 28, 2026. It was above +50 on 34 of the 250 days (13.6%), and never below −50: its low was −47.29 on March 30, 2026. The high was 87.95 on April 20, 2026. The other 216 days, 86.4%, were between −50 and +50, and PFE changed sign 25 times. The last 250 days of Bitcoin, from February 21 to October 28, 2026, spread differently:

Share of days in each PFE(10, 5) zone, last 250 daily bars

Share of days in each PFE(10, 5) zone, last 250 daily bars. Above +50: S&P 500 ETF 13.6%, 34 days, Bitcoin 5.2%, 13 days; Between 0 and +50: S&P 500 ETF 42.8%, 107 days, Bitcoin 50.0%, 125 days; Between −50 and 0: S&P 500 ETF 43.6%, 109 days, Bitcoin 40.4%, 101 days; Below −50: S&P 500 ETF 0.0%, no day, Bitcoin 4.4%, 11 days. Our computation; the inputs and the method are in the text.
  • S&P 500 ETF
  • Bitcoin
Our computation; the inputs and the method are in the text.S&P 500 ETF from October 30, 2025 and Bitcoin from February 21, 2026, both to October 28, 2026, raw prices. Most days sit between −50 and +50 on both markets.

By the ±50 reading, the ETF year had a few efficient rises and no efficient decline, although the ETF lost 8.6% from its close of 687.78 on February 25 to 628.78 on March 30, 2026: the fall came with rebounds, so its path was not efficient enough to pass −50.

Does it work?

We have no long-run measurement of PFE: our bench tests chart patterns detected by rule against random entries, not indicators (see our methodology). A year of two markets is an illustration, not a test.

For other measures of trend quality, see the Trend Intensity Index, the Choppiness Index, the Directional Movement Index and the Rainbow Oscillator, 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 Polarized Fractal Efficiency?

An indicator by Hans Hannula that measures how straight the recent price path has been, from −100 to +100, with the sign of the move. High absolute values mean an efficient trend; values near zero mean choppy prices.

What is the PFE formula?

PFE = EMA(z) of 100 × √((C − Cn)² + n²) / Σ √(ΔC² + 1), signed by the direction of the n-bar move. The usual settings are n = 10 and z = 5.

What PFE level means a trend?

LuxAlgo treats readings above +50 or below −50 as trending. That is a convention, not a tested threshold. Infront’s basic trading system uses lines at +40 and −40.

Why does PFE differ between platforms?

Because the time term is counted in price units and some platforms rescale prices first, and because the smoothing may differ. The same chart can show different readings on two platforms.

Sources

  1. Infront, Polarized Fractal Efficiency (indicator documentation)
  2. TradeStation EasyLanguage, PFE function
  3. LuxAlgo, Polarized Fractal Efficiency
, 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

Related guides

All trend indicators articles