OPEN-SOURCE SCRIPT
Momentum RSI For Loop | NAL

1. Overview
Momentum RSI For Loop | NAL is a momentum-regime indicator built around a Jurik-smoothed double RSI engine. It first smooths price using a Jurik-style moving average, then applies RSI twice to measure both momentum and momentum-of-momentum.
Instead of using a fixed RSI threshold, the indicator compares the current smoothed double RSI against many of its previous values. This creates a loop counter that shows whether current momentum is stronger or weaker than a broad section of recent history.
2. Calculation
The indicator starts by smoothing the selected source with a Jurik-style moving average. This creates a cleaner input before RSI is calculated, helping reduce noise while keeping the response relatively fast.
The first RSI measures the momentum of the smoothed source. The second RSI is then applied to the first RSI, creating a double RSI structure. This second layer measures whether the original RSI itself is strengthening or weakening.
After the double RSI is calculated, it is smoothed again using the same Jurik-style smoothing method. This produces the final momentum series used by the loop engine.
The loop mechanism then compares the current smoothed double RSI value against past values over the selected range. If the current value is greater than the value from i bars ago, the counter adds one point. If it is not greater, the counter subtracts one point.
A high positive counter means current momentum is stronger than many previous momentum readings. A deeply negative counter means current momentum is weaker than many previous readings.
The final signal is based on two thresholds. A bullish state triggers when the loop counter rises above the upper threshold. A bearish state triggers when the loop counter falls below the lower threshold.
3. Key Features
4. Use
Works well in getting out around tops and bottoms, during trending periods. Best used in confluence with other indicators, due to it's unique behaviour, and it being prone to false signals in regimes where other indicators are not.
The indicator is best used as a momentum-regime tool. It can help confirm trend continuation, detect momentum shifts, and visually separate bullish and bearish conditions through candle coloring and transition labels.
Momentum RSI For Loop | NAL is a momentum-regime indicator built around a Jurik-smoothed double RSI engine. It first smooths price using a Jurik-style moving average, then applies RSI twice to measure both momentum and momentum-of-momentum.
Instead of using a fixed RSI threshold, the indicator compares the current smoothed double RSI against many of its previous values. This creates a loop counter that shows whether current momentum is stronger or weaker than a broad section of recent history.
2. Calculation
The indicator starts by smoothing the selected source with a Jurik-style moving average. This creates a cleaner input before RSI is calculated, helping reduce noise while keeping the response relatively fast.
The first RSI measures the momentum of the smoothed source. The second RSI is then applied to the first RSI, creating a double RSI structure. This second layer measures whether the original RSI itself is strengthening or weakening.
After the double RSI is calculated, it is smoothed again using the same Jurik-style smoothing method. This produces the final momentum series used by the loop engine.
The loop mechanism then compares the current smoothed double RSI value against past values over the selected range. If the current value is greater than the value from i bars ago, the counter adds one point. If it is not greater, the counter subtracts one point.
A high positive counter means current momentum is stronger than many previous momentum readings. A deeply negative counter means current momentum is weaker than many previous readings.
The final signal is based on two thresholds. A bullish state triggers when the loop counter rises above the upper threshold. A bearish state triggers when the loop counter falls below the lower threshold.
3. Key Features
- Jurik-smoothed double RSI momentum engine.
- For-loop comparison against historical momentum values.
- Measures relative momentum strength instead of relying on static RSI levels.
- Upper and lower loop thresholds for bullish and bearish regime detection.
- Glow-style loop plot, threshold fills, candle coloring, and transition labels.
4. Use
Works well in getting out around tops and bottoms, during trending periods. Best used in confluence with other indicators, due to it's unique behaviour, and it being prone to false signals in regimes where other indicators are not.
The indicator is best used as a momentum-regime tool. It can help confirm trend continuation, detect momentum shifts, and visually separate bullish and bearish conditions through candle coloring and transition labels.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.