Momentum of average (dlvl)
Download scriptThis script functions as a specialized technical analysis tool designed to measure the momentum of price averages. Instead of looking at raw price action alone, it analyzes how "moving averages" behave, providing a smoothed and filtered view of market trends.
Core Logic Overview
The indicator operates by layering three distinct mathematical processes:
- Average Calculation: It first determines a moving average based on your chosen period and method (such as an Exponential Moving Average). This serves as the foundation for all subsequent calculations.
- Momentum Tracking: The script then applies a "Momentum" calculation to that moving average. By measuring the momentum of an average rather than the raw price, the tool filters out "market noise"—the small, insignificant fluctuations that often trigger false signals in standard indicators.
- Dynamic Level Detection: The most advanced part of the logic involves how the indicator visualizes trend changes. It uses a dynamic system to track whether the momentum is staying above or falling below specific "levels."
Visual Behavior and Color Logic
The script includes three different modes for how it communicates trend shifts to the user via color changes:
- Level Crossing (Default): The indicator tracks two dynamic boundaries (upper and lower levels). It changes color when the momentum value breaks out of these calculated zones. This is designed to identify significant shifts in trend strength rather than minor wobbles.
- Slope Change: In this mode, the indicator focuses on the direction of the line. If the line moves upward compared to the previous point, it adopts one color; if it moves downward, it switches to another.
- Fixed Threshold (100): This is a strictly defined mode where the indicator changes color only when the momentum value crosses a specific fixed number (100).
Summary for Traders
Essentially, this tool is built to tell you when a trend is gaining or losing significant strength. By calculating the momentum of an average, it provides a more stable and reliable "pulse" of the market. Depending on your preference, you can choose whether you want the indicator to react to simple slope changes, specific level breakouts, or a fixed numerical threshold.
ÿþ/ / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# p r o p e r t y c o p y r i g h t "