OPEN-SOURCE SCRIPT

ADW - Momentum

Aktualisiert
ADW - Momentum is a trading indicator based on the Relative Momentum Index (RMI) and Exponential Moving Averages (EMAs). This indicator plots the RMI along with its EMAs and highlights regions where RMI crosses its slow EMA. Additionally, it provides alerts when the momentum flips bullish or bearish.

Key Features:
  • The RMI helps to identify momentum in the market.
  • Three EMAs (Fast, Standard, and Slow) were calculated on the RMI. These can be utilized to analyze the momentum trend over different periods.
  • Highlighted regions and colour coding to indicate when RMI crosses its Slow EMA, signalling potential momentum shifts.
  • Customizable parameters: Users can specify the lengths of the RMI and EMAs, boundaries for RMI, and colours for various components of the plot.
  • Alerts: The script can alert users when the momentum has flipped bullish or bearish.


The script is organized into several sections:
  • Inputs: The user can customize several parameters including the RMI averaging length, momentum lookback, RMI boundaries, and the EMA lengths. In addition, users can also specify the colours for the RMI line, Slow EMA line, and the fill colour.
  • RMI Calculation: The script calculates the RMI based on the user-provided length and momentum lookback. This is done by first calculating two EMAs - one for the positive differences between closing prices (emaInc), and one for the negative differences (emaDec). Then, the RMI is computed using these EMAs.
  • Plotting: The script plots the RMI line, Slow EMA line, and two horizontal lines indicating the RMI boundaries. In addition, it also fills the region between the RMI and Slow EMA lines.
  • Conditions: The script computes the conditions for bullish and bearish momentum flips. These are defined as when the RMI crosses above or below the Slow EMA respectively.
  • Alerts: Finally, the script sets up two alert conditions based on the bullish and bearish conditions. These alert the user when the momentum has flipped bullish or bearish, with a message that includes the current RMI value.
Versionshinweise
Added license
Exponential Moving Average (EMA)Momentum Indicator (MOM)Relative Momentum Indexrmi

Open-source Skript

Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun das Script auch andere Trader verstehen und prüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?


Wizard money evangelist 🪄✨

Haftungsausschluss