AngelAlgo

Momentum Reversal [AngelAlgo]

The Momentum Reversal Indicator is a technical analysis tool used to identify potential reversals and trends in financial markets. It does this by comparing the momentum of a market to its trend. The momentum is calculated by measuring the change in price over a specified time interval set by the "Period" input. The trend is then determined as the simple moving average of the momentum, with the length of the moving average determined by the "Trend length" input. When the momentum deviates significantly from the trend, it is considered a potential reversal signal. The user can choose to receive signals based on either "Contrarian" or "Trend" signals type, and also has the option to smooth the signals using the Hull Moving Average. The indicator is plotted as a histogram with trading signals indicated by triangle shapes (up for buys, down for sells). The histogram is also accompanied by a smoothed line representation of the indicator and dynamic threshold levels.

The color of the histogram bars is green if the momentum is positive, red if it's negative. The histogram can be smoothed using the Hull Moving Average (HMA) if the "Smoothed signals" input is set to true.
The indicator also plots the threshold levels, which are dynamically calculated as the simple moving average (SMA) of the absolute value of the histogram. The threshold levels are plotted as circles on the chart.

The signals are plotted as arrows on the chart, either triangle-up for buy signals, or triangle-down for sell signals. If "Contrarian" signals are selected, a triangle-up will appear when the histogram crosses below the lower threshold, and a triangle-down will appear when it crosses above the upper threshold. If "Trend" signals are selected, a triangle-up will appear when the histogram crosses above the upper threshold, and a triangle-down will appear when it crosses below the lower threshold. Trend signals work for trending markets, Contrarian signals are good for ranging markets.

SETTINGS

Period: This input allows you to set the period for the momentum calculation. The default value is 14.

Trend length: This input allows you to set the length of the trend-following moving average. The default value is 50.

Signals type : This input allows you to choose the type of signals you want to receive. You can choose between "Contrarian" and "Trend" signals. The default value is "Contrarian".

Smoothed signals: This input allows you to choose between the raw or smoothed signals. If set to true, the signals will be based on the smoothed histogram line, otherwise, they will be based on the raw histogram. The default value is true.

Access our exclusive tools at: angelalgo.com

Join our community via discord.gg/FGUTfkmYbW

All content from AngelAlgo is for informational and educational purposes only. Please note that past performance does not guarantee future results.
Script open-source

Dans le véritable esprit de TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par le règlement. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?