John Ehlers introduced the Center of Gravity oscillator in the early 2000s. Like a lot of his work, it borrows an idea from engineering and applies it to price. The concept is that if you treat each price in a window as a weight placed at a position along a ruler, the balance point of the ruler moves as prices change. When recent prices rise, the balance point shifts toward the recent end. When they fall, it shifts back.
The formula is a ratio: the sum of each price multiplied by its position (1 for the latest bar, 2 for the one before, and so on), divided by the plain sum of the prices, with a minus sign in front so that it rises when price rises. Ehlers typically used a window of about 10 bars and plotted the line with a copy of itself delayed by one bar as a trigger. Crossings of the two lines were the signals.
A couple of things stand out when you look at the actual numbers. On a forex pair the oscillator hovers very close to a constant, roughly minus half the window length, because the price level barely changes over 10 bars relative to the price itself. The movements around that constant are tiny, so most platforms rescale or centre the line before plotting. That doesn't change any signals, but it does mean you can't read the absolute values in any meaningful way.
The low-lag claim holds up reasonably well, because the calculation responds immediately to the most recent bars. The catch is the same as with every low-lag oscillator: low lag and smooth output don't come together. The CG line on M1 crosses its trigger very often, and many of those crosses are just the result of individual bars moving around.
It tends to work best on a chart that is genuinely oscillating, which Ehlers was clear about. In a strong trend the oscillator will produce counter-trend crossings that look like turning points and aren't.
Does anyone use the CG as a timing tool inside a separate trend filter? And what window length makes sense on M5, where 10 bars is less than an hour?
Ehlers' Center of Gravity oscillator: weighting recent bars to find turns with almost no lag
-
Shadow Trader
- Posts: 6144
- Joined: Wed Sep 09, 2026 5:19 pm