OPEN-SOURCE SCRIPT
Advanced Momentum Engine [identityKa]

Overview
The Advanced Momentum Engine [identityKa] is a technical oscillator designed to consolidate trend direction and momentum exhaustion into a single visual pane. By mathematically integrating Moving Average Convergence Divergence (MACD) with the Relative Strength Index (RSI), this script aims to reduce chart clutter and provide a strict, rule-based approach to confluence analysis.
Instead of monitoring MACD crossovers and RSI extreme levels in separate windows, this indicator unifies them. The MACD dictates the base histogram color representing the trend, while the RSI dictates specific color overrides when momentum reaches mathematical extremes.
Core Calculations & Logic
The engine operates on two primary technical formulas:
MACD Component: It utilizes the standard MACD calculation (Fast EMA 12, Slow EMA 26, Signal 9 by default). The histogram plots the spread between the MACD line and the Signal line.
RSI Component: A standard RSI (default length 14) is calculated simultaneously in the background to measure the speed and change of price movements.
Dynamic Visualization Features
The histogram colors are not static; they adapt dynamically based on the relationship between these two components:
Trend Phases: When the RSI is in a neutral state (between 30 and 70), the histogram reflects standard MACD momentum. Increasing positive spreads plot as Strong Bullish (Bright Green), decreasing positive spreads as Weak Bullish (Dark Green). The inverse applies to Bearish states (Bright Red / Dark Red).
The Danger Zone Override: If the background RSI calculation breaches the user-defined Overbought (≥70) or Oversold (≤30) thresholds, the script triggers an override. The histogram and background explicitly turn Orange. This mathematical condition indicates that while the MACD trend may still be active, the RSI momentum is statistically exhausted.
HUD Dashboard & AI Suggestion
To simplify real-time data interpretation, the script includes an on-chart panel (HUD) that evaluates the current bar's state and outputs a logical suggestion:
LONG: Triggered when MACD > Signal AND RSI is strictly neutral (< 70).
SHORT: Triggered when MACD < Signal AND RSI is strictly neutral (> 30).
Dangerous: Triggered whenever RSI ≥ 70 OR RSI ≤ 30.
How to Use It
Traders can use this script to filter their entries and manage risk. A standard approach is to look for trend-following entries only when the dashboard indicates a "LONG" or "SHORT" state. Conversely, when the histogram and dashboard turn to the Orange "Danger Zone," it serves as a mechanical rule to avoid new trend-continuation entries and consider tightening stop-losses, as mean reversion is statistically more probable. All moving average lengths, RSI thresholds, and color themes are fully adjustable in the settings.
The Advanced Momentum Engine [identityKa] is a technical oscillator designed to consolidate trend direction and momentum exhaustion into a single visual pane. By mathematically integrating Moving Average Convergence Divergence (MACD) with the Relative Strength Index (RSI), this script aims to reduce chart clutter and provide a strict, rule-based approach to confluence analysis.
Instead of monitoring MACD crossovers and RSI extreme levels in separate windows, this indicator unifies them. The MACD dictates the base histogram color representing the trend, while the RSI dictates specific color overrides when momentum reaches mathematical extremes.
Core Calculations & Logic
The engine operates on two primary technical formulas:
MACD Component: It utilizes the standard MACD calculation (Fast EMA 12, Slow EMA 26, Signal 9 by default). The histogram plots the spread between the MACD line and the Signal line.
RSI Component: A standard RSI (default length 14) is calculated simultaneously in the background to measure the speed and change of price movements.
Dynamic Visualization Features
The histogram colors are not static; they adapt dynamically based on the relationship between these two components:
Trend Phases: When the RSI is in a neutral state (between 30 and 70), the histogram reflects standard MACD momentum. Increasing positive spreads plot as Strong Bullish (Bright Green), decreasing positive spreads as Weak Bullish (Dark Green). The inverse applies to Bearish states (Bright Red / Dark Red).
The Danger Zone Override: If the background RSI calculation breaches the user-defined Overbought (≥70) or Oversold (≤30) thresholds, the script triggers an override. The histogram and background explicitly turn Orange. This mathematical condition indicates that while the MACD trend may still be active, the RSI momentum is statistically exhausted.
HUD Dashboard & AI Suggestion
To simplify real-time data interpretation, the script includes an on-chart panel (HUD) that evaluates the current bar's state and outputs a logical suggestion:
LONG: Triggered when MACD > Signal AND RSI is strictly neutral (< 70).
SHORT: Triggered when MACD < Signal AND RSI is strictly neutral (> 30).
Dangerous: Triggered whenever RSI ≥ 70 OR RSI ≤ 30.
How to Use It
Traders can use this script to filter their entries and manage risk. A standard approach is to look for trend-following entries only when the dashboard indicates a "LONG" or "SHORT" state. Conversely, when the histogram and dashboard turn to the Orange "Danger Zone," it serves as a mechanical rule to avoid new trend-continuation entries and consider tightening stop-losses, as mean reversion is statistically more probable. All moving average lengths, RSI thresholds, and color themes are fully adjustable in the settings.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.