Pretty Good Oscillator

PGO
Indicator

MomentumSeparate panelFree on ChartLabs

The Pretty Good Oscillator is the close minus its simple average, divided by an exponential average of true range, both over 14 bars.

Mark Johnson's Pretty Good Oscillator, as given in Perry Kaufman, Trading Systems and Methods, 5th ed. (Wiley, 2013). Reviewed by the ChartLabs team, updated Nov 2026.

Example market1hIndicatorsAtlas AIPGOchartlabs.co/charts
Atlas reads it

PGO is -1.848.

PGO -1.848

Atlas reads it

PGO is -1.848.

PGO -1.848

Illustration on simulated data.

Pretty Good OscillatorWhat is the PGO indicator?

Length is 14. There is no source menu. The close is fixed. The average of closes is a simple mean of the bars so far, capped at 14. The true-range average is an exponential average with alpha 2/15, seeded with the first true range. On record 0 the previous close is taken as 0, so the true range is the high when the low is above 0.

Close 10, high 11, low 9 prints 0.0000, because the close equals the only close in the average, and the denominator is the high, 11. The next bar, close 12, high 13, low 11, prints 0.1007. At the panel's 3 decimals that rounds to 0.101.

The line is #999999, 1 px, in its own panel. A denominator of 0 leaves the bar empty. The oscillator is a price gap measured in average-range units.

First true range

Record 0 uses a previous close of 0. That choice fades as the exponential average moves on, and it is how the kernel matches its fixtures.

Not a percent of the close

0.1007 is (close − average) / smoothed true range. It is not 100 times a return.

PGO signalsFour patterns to know.

1Inconclusive

On zero

The close equals its simple average. The first example bar is 0.0000 for that reason.

2Bullish lean

Above zero

The close is above the average. The second bar is 0.1007, which the panel shows as 0.101.

3Bearish lean

Below zero

The close is under the average, so the numerator is negative.

4Inconclusive

A large reading

The gap from the average is wide next to the smoothed true range. The line does not name a cutoff.

PGO formulaHow it is calculated.

PGO=C−SMAEMA(TR)
STEP 1

Average the closes

Partial until 14 exist. The first close, 10, averages to 10, so the numerator is 0.

STEP 2

Smooth true range

Record 0's true range is the high, 11, because the previous close is taken as 0. That seeds the EMA.

STEP 3

Divide

The next bar's gap over the updated EMA is 0.1007, shown as 0.101 at 3 decimals.

PGO settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
Length141 to 5,000Both the simple average and the true-range EMA. The Signal lens changes this.
Line#999999FixedOne line, 1 px, 3 decimals. The close is fixed.
First bar0.000FixedThe close equals its own one-bar average. The panel shows 0.000.
Setting
Length
Default
14
Range
1 to 5,000
What it changes
Both the simple average and the true-range EMA. The Signal lens changes this.
Setting
Line
Default
#999999
Range
Fixed
What it changes
One line, 1 px, 3 decimals. The close is fixed.
Setting
First bar
Default
0.000
Range
Fixed
What it changes
The close equals its own one-bar average. The panel shows 0.000.
1420 bars in both averages
70,20866,82563,44360,06164,803.7

Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.

PGO strategiesUse it in 3 setups.

Read a positive print as a close above its average

Thesecond bar is0.1007or 0.101 on the panel

Traders often want that sign to agree with the price trend. The size is in true-range units, not in percent.

Zero is a close on its average

Thefirst bar is0.0000

The denominator is not zero there. The numerator is. A later bar can also print zero when the close matches the 14-bar mean.

Let the range scale the gap

Aone-point gap on a wide true range is a smaller reading than the same gap on a tight range

That is what dividing by the smoothed true range does.

Test a rule in the Strategy TesterFree with 1 year of history. Past results do not guarantee future results.

PGO mistakesCommon mistakes.

Reading 0.101 as 10 percent

0.1007 is the gap divided by the smoothed true range. The panel rounds it to 0.101. It is not a percent return.

Looking for a source menu

The close is fixed. Length is the only input.

Using yesterday's close on record 0

The kernel uses 0 as the previous close on the first bar, so the first true range is the high when the low is positive. Later bars use the real previous close.

PGO combinationsPair it with these.

PGO FAQQuestions traders ask.

What is the PGO setting?

Length 14. There is no source. The close is fixed.

What is the worked pair?

Close 10, high 11, low 9 prints 0.0000. Close 12, high 13, low 11 prints 0.1007, which shows as 0.101 at 3 decimals.

Why is the first true range the high?

The previous close is taken as 0 on record 0. With a positive low, true range equals the high.

What colour is the line?

#999999, 1 px, three decimals.

What if the range average is 0?

The bar is empty. A flat series with no range has nothing to divide by.

Does it repaint?

No. A closed bar stays. The live bar moves until it closes.

Who published it?

Mark Johnson's oscillator, as given in Perry Kaufman, Trading Systems and Methods, 5th edition (Wiley, 2013).

Is the average exponential?

The true range is. The close is a simple average, partial until 14 bars exist.

Related indicatorsMore momentum tools.

All momentum indicators

Try PGO on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
PGO