Price Oscillator

Price Osc
Indicator

MomentumSeparate panelFree on ChartLabs

The Price Oscillator is 100 times the gap between a fast and a slow average, divided by the slow average, with a signal line and a histogram.

Gerald Appel's MACD in percent form, as Steven B. Achelis, Technical Analysis from A to Z, 2nd ed. (2000), "Price Oscillator". Reviewed by the ChartLabs team, updated Nov 2026.

Example market1hIndicatorsAtlas AIPrice Oscchartlabs.co/charts
Atlas reads it

PPO is below Signal line (-1.79%).

PPO -1.79% · Signal line -1.43% · Histogram -0.37%

Atlas reads it

PPO is below Signal line (-1.79%).

PPO -1.79% · Signal line -1.43% · Histogram -0.37%

Illustration on simulated data.

Price OscillatorWhat is the Price Osc indicator?

Source is Close. Fast length is 12, slow length is 26, signal length is 9, each from 1 to 5,000. Both averages default to EMA, and each can be switched to SMA. The EMAs start from a simple average of the first window, the Pine way, so the PPO line begins on record 25 and the signal and histogram begin on record 33.

Forty closes, 10 for the first 26 bars and 12 after that: record 25 is 0.0000, record 26 is 1.5722, and record 33 is PPO 5.0824, signal 3.5354, histogram 1.5471. The panel is in percent with 2 decimals, so those read 0.00, 1.57, 5.08, 3.54 and 1.55. A slow average of 0 leaves the bar empty.

PPO is #2962FF and the signal is #FF6D00, both 1 px. The columns use #26A69A, #B2DFDB, #FFCDD2 and #FF5252. The first column has no earlier column, so it takes the paler green #B2DFDB. A dashed zero line is rgba(120, 123, 134, 0.5). This is not the separate PPO study, which seeds each average with the first close, draws #32CD32 and #FF0000, and has no histogram.

Percent, not points

MACD is the same gap in price units. Here the gap is divided by the slow average and multiplied by 100.

Warm-up

Nothing is drawn until the slow window fills. The signal waits another 8 bars after that.

Price Osc signalsFour patterns to know.

1Bullish lean

PPO above the signal

On record 33 the PPO is 5.0824 and the signal is 3.5354, so the histogram is 1.5471.

2Bearish lean

PPO under the signal

The histogram is negative. A column under zero uses #FFCDD2 or #FF5252.

3Inconclusive

Both lines near zero

The two averages are close. Record 25, still on the flat 10s, is 0.0000.

4Inconclusive

A jump off a flat stretch

The step from 10 to 12 lifts record 26 to 1.5722. One step is not a trend by itself.

Price Osc formulaHow it is calculated.

PPO=100×fast−slowslow
STEP 1

Average the close

EMA 12 and EMA 26, each seeded with the simple average of its first window. SMA is there if you switch the type.

STEP 2

Turn the gap into a percent

100 times (fast minus slow) divided by slow. Record 26 of the step series is 1.5722.

STEP 3

Smooth it

The signal is an EMA 9 of the PPO. Record 33 is 3.5354, and the column is 1.5471.

Price Osc settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
SourceCloseAny listed priceThe series the averages read.
Fast length121 to 5,000Bars in the fast average.
Slow length261 to 5,000Bars in the slow average. The PPO starts on record 25 at this default.
Signal length91 to 5,000Bars in the average of the PPO.
Oscillator MA typeEMAEMA or SMAHow the fast and slow averages are built.
Signal MA typeEMAEMA or SMAHow the signal is built.
PPO line#2962FFFixedThe oscillator, 1 px.
Signal line#FF6D00FixedThe signal, 1 px.
Histogram colours#26A69A, #B2DFDB, #FFCDD2, #FF5252FixedColumns around zero. The first one is #B2DFDB.
Zero linergba(120, 123, 134, 0.5)FixedDashed guide at zero.
Setting
Source
Default
Close
Range
Any listed price
What it changes
The series the averages read.
Setting
Fast length
Default
12
Range
1 to 5,000
What it changes
Bars in the fast average.
Setting
Slow length
Default
26
Range
1 to 5,000
What it changes
Bars in the slow average. The PPO starts on record 25 at this default.
Setting
Signal length
Default
9
Range
1 to 5,000
What it changes
Bars in the average of the PPO.
Setting
Oscillator MA type
Default
EMA
Range
EMA or SMA
What it changes
How the fast and slow averages are built.
Setting
Signal MA type
Default
EMA
Range
EMA or SMA
What it changes
How the signal is built.
Setting
PPO line
Default
#2962FF
Range
Fixed
What it changes
The oscillator, 1 px.
Setting
Signal line
Default
#FF6D00
Range
Fixed
What it changes
The signal, 1 px.
Setting
Histogram colours
Default
#26A69A, #B2DFDB, #FFCDD2, #FF5252
Range
Fixed
What it changes
Columns around zero. The first one is #B2DFDB.
Setting
Zero line
Default
rgba(120, 123, 134, 0.5)
Range
Fixed
What it changes
Dashed guide at zero.
124 bars in the fast average
070,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.

Price Osc strategiesUse it in 3 setups.

Read the histogram sign

Onrecord 33the column is1.5471

Traders often want the PPO above its signal before they treat a rise as in gear. The panel shows 1.55.

Wait out the warm-up

Untilrecord 25there is no PPO

The slow average is not full yet. An empty stretch at the left edge is that wait, not a reading of zero from a dead market.

A percent, next to MACD

Ifyou want the same gap in price pointsuseMACD

This line divides by the slow average. A $10 stock and a $1,000 stock can share a percent and not share a point gap.

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

Price Osc mistakesCommon mistakes.

Expecting the separate PPO study

That study seeds with the first close and uses #32CD32 and #FF0000. This one waits for the window, draws a histogram, and uses #2962FF and #FF6D00.

Reading a zero slow average as zero

If the slow average is 0 the bar is left empty. Dividing by zero is not a print of 0.0000.

Calling record 26 a finished signal

1.5722 is the PPO alone. The signal and the column are still empty until record 33.

Price Osc combinationsPair it with these.

Price Osc FAQQuestions traders ask.

What are the Price Oscillator settings?

Close, fast 12, slow 26, signal 9, both averages EMA. Each length runs from 1 to 5,000, and each average can be SMA.

What is the worked series?

Closes stay at 10 for 26 bars, then 12. Record 25 is 0.0000, record 26 is 1.5722, and record 33 is 5.0824, 3.5354 and 1.5471.

Why does the line start so late?

The slow EMA needs 26 closes. The signal needs 9 oscillator values after that, so the column starts on record 33.

What do the column colours mean?

#26A69A grows above zero, #B2DFDB shrinks above zero, #FFCDD2 rises below zero, #FF5252 falls below zero. The first column is #B2DFDB.

What is the zero line?

rgba(120, 123, 134, 0.5), dashed. The panel is percent, 2 decimals.

Is this the PPO indicator?

No. The PPO study seeds with the first close and has no histogram. This page is the Price Oscillator.

What if the slow average is 0?

The bar is empty. There is no percent to draw.

Does it repaint?

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

Who published it?

Gerald Appel, in percent form, as written up by Steven B. Achelis, Technical Analysis from A to Z, 2nd ed. (2000).

Related indicatorsMore momentum tools.

All momentum indicators

Try Price Osc on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
Price Osc