A Simple Yet Effective Contrarian Indicator

Creating the Chande Momentum Oscillator in Python

Sofien Kaabar, CFA
9 min readDec 6, 2022

--

Momentum oscillators are numerous and their added-value ranges between very bad to acceptable. It is normal that we will not find something very predictive if we are just applying a lag over the price but we can find insights on the recent behavior of the market price. This article discusses one known oscillator called the Chande Momentum Oscillator.

If you are interested by trend following indicators and strategies then my book could interest you. It features advanced trend-following indicators and strategies with a GitHub page dedicated to the continuously updated code. Also, this book features the original colors after having optimized for printing costs. If you feel that this interests you, feel free to visit the below Amazon link, or if you prefer to buy the PDF version, you could contact me on LinkedIn.

Fetching Historical OHLC Data

Let us start by fetching historical OHLC data before seeing how to code the indicator in…

--

--