PGO
Indicator
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.
PGO is -1.848.
PGO -1.848
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.
On zero
The close equals its simple average. The first example bar is 0.0000 for that reason.
Above zero
The close is above the average. The second bar is 0.1007, which the panel shows as 0.101.
Below zero
The close is under the average, so the numerator is negative.
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.
Average the closes
Partial until 14 exist. The first close, 10, averages to 10, so the numerator is 0.
Smooth true range
Record 0's true range is the high, 11, because the previous close is taken as 0. That seeds the EMA.
Divide
The next bar's gap over the updated EMA is 0.1007, shown as 0.101 at 3 decimals.
PGO settingsEvery setting, explained.
| Setting | Default | Range | What it changes |
|---|---|---|---|
| Length | 14 | 1 to 5,000 | Both the simple average and the true-range EMA. The Signal lens changes this. |
| Line | #999999 | Fixed | One line, 1 px, 3 decimals. The close is fixed. |
| First bar | 0.000 | Fixed | The 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.
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
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
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
That is what dividing by the smoothed true range does.
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 + ATR
ATR is a smoothed true range in price. PGO divides a gap from the simple average by an exponential true range.
PGO + SMA
The SMA is the average in the numerator. PGO's mean is partial at the start and capped at 14, and it does not plot the average itself.
PGO + Relative Strength Index
RSI is a bounded 0 to 100 line of up and down closes. PGO is unbounded and uses the range as its unit.
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 indicatorsTry PGO on a live chart.
Free. No download.
Works in your browser and on iPhone too.