Relative Momentum Index with Laguerre FilterThe Relative Momentum Index
The Relative Momentum Index (RMI) is an oscillator that is a variation of the Relative Strength Index (RSI), but incorporates momentum over a variable lookback period rather than just consecutive price changes, which can help identify reversals and filter out noise.
It measures the momentum of price changes over a specified period, rather than just the magnitude of price changes like the RSI does.
It counts up and down days from the current closing price relative to the closing price a certain number of days ago (e.g. 5 days ago), instead of just comparing consecutive daily closes like the RSI
It is calculated by taking the ratio of the average upward price changes to the average downward price changes over a given period, where each change is measured from the close X days ago (X is the “momentum” period)
Like the RSI, the RMI oscillates between 0 and 100, with readings above 70 considered overbought and below 30 oversold.
In trending markets, the RMI tends to remain in overbought or oversold territory for extended periods. In trading ranges, it oscillates more predictably between the overbought and oversold levels.
The RMI is generally considered better than the RSI at identifying potential reversal points, as it incorporates a momentum factor rather than just strength.
It can be used in a similar way to the RSI for trade signals, such as buying when it rises above 30 from below, or selling when it falls below 70 from above
The Laguerre filter
A Laguerre filter is a type of infinite impulse response (IIR) filter used for smoothing signals or data. The Laguerre filter provides a way to apply variable smoothing to a signal by adjusting its pole position, allowing you to control the balance between smoothness and lag based on your preferences. It is an alternative to simple moving averages that can better preserve the shape of the original signal.
렐러티브 모멘텀 인덱스
RMI Trend Sync - Strategy [presentTrading]█ Introduction and How It Is Different
The "RMI Trend Sync - Strategy " combines the strength of the Relative Momentum Index (RMI) with the dynamic nature of the Supertrend indicator. This strategy diverges from traditional methodologies by incorporating a dual analytical framework, leveraging both momentum and trend indicators to offer a more holistic market perspective. The integration of the RMI provides an enhanced understanding of market momentum, while the Super Trend indicator offers clear insights into the end of market trends, making this strategy particularly effective in diverse market conditions.
BTC 4h long/short performance
█ Strategy: How It Works - Detailed Explanation
- Understanding the Relative Momentum Index (RMI)
The Relative Momentum Index (RMI) is an adaptation of the traditional Relative Strength Index (RSI), designed to measure the momentum of price movements over a specified period. While RSI focuses on the speed and change of price movements, RMI incorporates the direction and magnitude of those movements, offering a more nuanced view of market momentum.
- Principle of RMI
Calculation Method: RMI is calculated by first determining the average gain and average loss over a given period (Length). It differs from RSI in that it uses the price change (close-to-close) rather than absolute gains or losses. The average gain is divided by the average loss, and this ratio is then normalized to fit within a 0-100 scale.
- Momentum Analysis in the Strategy
Thresholds for Decision Making: The strategy uses predetermined thresholds (pmom for positive momentum and nmom for negative momentum) to trigger trading decisions. When RMI crosses above the positive threshold and other conditions align (e.g., a bullish trend), it signals a potential long entry. Similarly, crossing below the negative threshold in a bearish trend may trigger a short entry.
- Super Trend and Trend Analysis
The Super Trend indicator is calculated based on a higher time frame, providing a broader view of the market trend. This indicator uses the Average True Range (ATR) to adapt to market volatility, making it an effective tool for identifying trend reversals.
The strategy employs a Volume Weighted Moving Average (VWMA) alongside the Super Trend, enhancing its capability to identify significant trend shifts.
ETH 4hr long/short performance
█ Trade Direction
The strategy offers flexibility in selecting the trading direction: long, short, or both. This versatility allows traders to adapt to their market outlook and risk tolerance, whether looking to capitalize on bullish trends, bearish trends, or a combination of both.
█ Usage
To effectively use the "RMI Trend Sync" strategy, traders should first set their preferred trading direction and adjust the RMI and Super Trend parameters according to their risk appetite and trading goals.
The strategy is designed to adapt to various market conditions, making it suitable for different asset classes and time frames.
█ Default Settings
RMI Settings: Length: 21, Positive Momentum Threshold: 70, Negative Momentum Threshold: 30
Super Trend Settings: Length: 10, Higher Time Frame: 480 minutes, Super Trend Factor: 3.5, MA Source: WMA
Visual Settings: Display Range MA: True, Bullish Color: #00bcd4, Bearish Color: #ff5252
Additional Settings: Band Length: 30, RWMA Length: 20
ADW - MomentumADW - 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.
Combo Backtest 123 Reversal & Relative Momentum Index This is combo strategies for get a cumulative signal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
The Relative Momentum Index (RMI) was developed by Roger Altman. Impressed
with the Relative Strength Index's sensitivity to the number of look-back
periods, yet frustrated with it's inconsistent oscillation between defined
overbought and oversold levels, Mr. Altman added a momentum component to the RSI.
As mentioned, the RMI is a variation of the RSI indicator. Instead of counting
up and down days from close to close as the RSI does, the RMI counts up and down
days from the close relative to the close x-days ago where x is not necessarily
1 as required by the RSI). So as the name of the indicator reflects, "momentum" is
substituted for "strength".
WARNING:
- For purpose educate only
- This script to change bars colors.
Relative Momentum Index (RMI) OscillatorThe Relative Momentum Index (RMI) is a sibling to the RSI. Where the RSI measures trend based on the average (RMA) of gains and draws over a length of time , the RMI measures based on the SUM of gains and draws . Myself and many others have found that the RMI oscillates better than the RSI does.
I paired the RMI with the oscillation method the Fisher Transformation uses to oscillate the value from -1.0 to 1.0 instead of the Stochastic way of 0 to 100. This way you can enable the Fisher transform, if desired. But I also just prefer the appearance of that.
Some options and features I have coded in-
RMI Length: This is the length of the Relative Momentum Index itself. Like the length of RSI, default 14
Oscillation Length: This is your oscillation length, like a Stochastic. If you put the length at 1 it will turn the indicator into the straight up RMI indicator. (If you select to use the Fisher Transform, the overbought/oversold lines will not show nicely)
Source Pre-Smoothing: The option of smoothing out the source, ie close, before you even run it through the RMI, oscillation, and/or transform
Oscillator Post-Smoothing: The option of smoothing the output of the script
Trailing MA: If desired, you can check the box to Use a Trailing Signal, and enter the length of lookback for a Simple Moving Average (SMA) of the RMI Osc value
Use Fill Colors on MA: If enabled, it will fill the area between the RMI Osc and the trailing MA. I chose to use colors that are similar to some educational ideas I have published, whereby nearing the bottom of the oscillation you get Green to signal Accumulation, and near the top you get Red to signal Distribution. Following red is Black, where you typically get late signal sellers that Capitulate and sell stops trigger. Blue is where traders tend to Chase price up.
The most primitive way of using this indicator would be sell when the value exceeds the overbought/top line and buy when it falls below the oversold/bottom line. You can find ways to use the fill colors, or MA crossovers, rising lows or rising highs, etc. for signals.
Here's a comparison of this indicator to the Stochastic RSI, using similar values-
Here's showing the indicator on intraday values at defaults with some pre- and post-smoothing-
Same thing, but with Fisher Transform enabled-
And an example of the fill bands in action-
Please feel free to use any part of this code as desired.
Relative Momentum IndexRelative Momentum Index indicator script. This indicator was originally developed by Roger Altman (Stocks & Commodities V. 11:2 (57-60)).
RMI with momentum period of 1 will be equal to an RSI when they have the same period and source price.