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.
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?