Indicators
Center of Gravity (CG) Indicator Explained
How Ehlers' Center of Gravity oscillator locates the balance point of recent prices with near-zero lag, in Setup.Cash.
Featured image placeholder
/og/setup-cash-og.svg
John Ehlers' Center of Gravity (CG) oscillator computes the weighted balance point of prices in the window — like finding where a ruler loaded with price-weights would balance. Ehlers derived it searching for an oscillator with zero smoothing lag; CG comes remarkably close.
How It Works
- Prices are position-weighted and summed to find the window's balance point.
- The balance point shifts toward whichever end of the window holds heavier prices.
- Turns coincide almost exactly with short-cycle price turns.
How to Trade It
CG is a cycle-timing tool: trade its turns (or its cross of a one-bar-delayed trigger) for swing entries inside ranges, filtered by a trend gate. Because it barely lags, it pairs well with slower confirmation like a Super Smoother baseline.
Building It in Setup.Cash
Add Center of Gravity (CG) in the strategy builder — the length input controls its sensitivity — and use its value in any entry, exit, or filter condition. You can also combine it with other tools in the Indicators Lab or via the AI indicator generator. See Ehlers' Even Better Sinewave for the phase-based evolution. For the full category overview, see the advanced momentum library guide.
Momentum signals are timing tools — combine them with a trend or regime filter and backtest the exact rules before going live.
Related Posts
View allIndicators
Even Better Sinewave Indicator Explained
How Ehlers' Even Better Sinewave extracts cycle phase for range timing, and how to automate EBSW in Setup.Cash.
1 min read · 201 words
Indicators
Absolute Price Oscillator (APO) Indicator Explained
How the APO tracks the raw gap between fast and slow EMAs, and when to prefer it over MACD in Setup.Cash.
2 min read · 202 words
Indicators
Awesome Oscillator Indicator Explained
How Bill Williams' Awesome Oscillator compares 5- and 34-period midpoint momentum, with saucer and twin-peaks signals, in Setup.Cash.
2 min read · 210 words
Indicators
Balance of Power Indicator Explained
How Balance of Power scores each bar's buyer-vs-seller control from open, close, high, and low, and how to automate BOP in Setup.Cash.
2 min read · 208 words
Start here
Build your trading bot workflow with structure
Use Setup.Cash to create, backtest, and paper trade rule-based strategies without relying on guesswork. Not financial advice. Trading involves risk.