--- title: cg description: This page details the Center of Gravity (COG) indicator that aids in predicting future price movements. Instructions regarding its usage and parameters are also outlined, particularly suitable for range-bound markets. keywords: - Center of Gravity indicator - COG - oscillators - price reversals - range-bound markets - price predictions - asset price change - trading - parameters - trending market - speculate --- import HeadTitle from '@site/src/components/General/HeadTitle.tsx'; The Center of Gravity indicator, in short, is used to anticipate future price movements and to trade on price reversals as soon as they happen. However, just like other oscillators, the COG indicator returns the best results in range-bound markets and should be avoided when the price is trending. Traders who use it will be able to closely speculate the upcoming price change of the asset. ### Usage ```python cg [-l N_LENGTH] ``` --- ## Parameters | Name | Description | Default | Optional | Choices | | ---- | ----------- | ------- | -------- | ------- | | n_length | length | 14 | True | None | ![cg](https://user-images.githubusercontent.com/46355364/154310202-cd0d703e-21ba-41a2-b58a-5b8547efa887.png) ---