Dumb Indicator 17 - Retracement and market directions
Mar 25, 2019

The Dumb Indicator 17 - Retracement and market directions tool identifies potential overbought and oversold market conditions by calculating multi-timeframe retracement levels and dynamically recoloring bars based on price position relative to these extremes.
Usage
The indicator can be used to identify trend exhaustion and potential reversal points. When the average price (HL2) reaches the upper bands, the bar colors shift toward cooler/green tones indicating bullish extension or overbought zones. Conversely, when price drops toward the lower bands, the bars shift toward warmer/red tones, signaling bearish extension or oversold conditions.
Examples of usage include:
- Trend Identification: Use the color-coded bars to determine the current momentum of the market relative to higher timeframe volatility.
- Reversal Signals: Look for "Danger High" or "Danger Low" labels which appear when price breaches the most extreme calculated bands, suggesting a high probability of a retracement.
- Support and Resistance: The plotted lines act as dynamic levels that price may react to based on the selected resolution.
Details
The script functions by fetching high and low price data from a higher timeframe (Resolution Time) using request.security. It calculates the absolute difference between these sources to establish a range. This range is then multiplied by fixed Fibonacci-style constants to project seven distinct levels:
- Extreme Danger High/Low: The furthest boundaries of the calculation.
- Danger High/Low: Secondary extreme zones.
- Upper/Middle/Lower: Core retracement levels.
To smooth the output and reduce noise, a Symmetrically Weighted Moving Average (SWMA) is applied to the calculated levels. The bar coloring logic specifically compares the current hl2 against these levels to provide a visual gradient of market direction and extension.
Settings
- Source 0: The primary price source for the calculation (typically the high).
- Source 1: The secondary price source for the calculation (typically the low).
- Resolution Time: The timeframe used to calculate the bands (e.g., Daily, Weekly, Monthly).
- Lag: Determines the historical bar offset for the security request.
- Offset: Shifts the visual plot forward or backward on the chart.
FAQ
How do I interpret the bar colors?
The colors represent the position of the current price relative to the calculated retracement bands. Greens and Cyans indicate price is in the upper half of the range, while Yellows and Reds indicate price is in the lower half.
What do the labels on the chart mean?
The labels "Danger High Reached" and "Danger Low Reached" trigger when the price action makes contact with the most extreme outer bands, signaling potential exhaustion.
How can I access Dumb Indicator 17 - Retracement and market directions?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.