The Swing Indicator for Market Timing Explained.
Creating & Coding a Contrarian Trading Indicator in Python.
Momentum can be faded in many ways when we have enough elements to suggest that exhaustion may happen. This can be done through divergence analysis, oversold/overbought levels, and timing indicators. In this article, we will create an indicator that can be used both for discretionary and systematic trading, the Swing Indicator which takes into account highs and lows to determine empirical mean-reversion levels.
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 the PDF version, you could contact me on Linkedin.
Creating the Indicator
The Swing Indicator is based on finding patterns where the trend starts to weaken when approaching a certain…