Creating a Contrarian Indicator Using Moving Averages in Python.

Why Ride the Trend When We Can Fade It?

Sofien Kaabar, CFA
The Startup
Published in
7 min readNov 10, 2020

--

Moving averages help us confirm and ride the trend. They are the most known technical indicator and this is because of their simplicity and their proven track record of adding value to the analyses. We can use them to find support and resistance levels, stops and targets, and to understand the underlying trend. This versatility makes them an indispensable tool in our trading arsenal.

I have just published a new book after the success of New Technical Indicators in Python. It features a more complete description and addition of complex trading strategies with a Github page dedicated to the continuously updated code. If you feel that this interests you, feel free to visit the below link, or if you prefer to buy the PDF version, you could contact me on Linkedin.

However, as statistics and common sense tell us, when something goes up, it must go down and therefore comes the idea of using moving averages as contrarian indicators rather than continuation indicators. How is this possible? Well, following the below logic will help us understand the intuition:

When prices get away from their…

--

--