Trader XO Macro Trend Scanner
Jan 31, 2023

The Trader XO Macro Trend Scanner indicator provides a comprehensive trend-following framework by combining Exponential Moving Averages (EMA) and Stochastic RSI to identify market bias and momentum shifts.
Usage
The Usage section describes how the script can be used to navigate trending markets, specifically optimized for high-timeframe cryptocurrency analysis.
- Trend Identification: Users can monitor the relationship between the Fast EMA and Slow EMA. A bullish trend is indicated when the shorter EMA is above the longer EMA, coloring the candles green. Conversely, a bearish trend is indicated when the shorter EMA is below the longer EMA, coloring the candles red.
- Momentum Exhaustion: The Stochastic RSI component helps identify when a trend might be losing strength. For example, if the Stochastic RSI (K) crosses below the D line while in an overbought zone (above 80), it suggests weakening bullish momentum.
- Combined Strategy: A common application involves using the EMAs to establish the primary directional bias (long or short) and using the Stochastic RSI crossovers at extreme levels to time potential entries or anticipate trend reversals.
- Filtering: The indicator includes an optional long-term Moving Average filter (SMA, EMA, or WMA). When active, bullish Stochastic RSI signals are only highlighted if price is above the moving average, and bearish signals if price is below it.
Details
The script utilizes two Exponential Moving Averages (defaulting to 12 and 25 periods) based on the methodology of trader "Trader XO." It tracks the duration of crosses to ensure signal stability, triggering "Bull" or "Bear" labels only on the initial shift of momentum.
The Stochastic RSI implementation includes customizable upper, middle, and lower bands. The script features advanced visual logic that changes background colors based on specific RSI conditions, such as K-line crossovers within the oversold/overbought zones or crosses relative to the 50-level midpoint. This visual feedback is designed to provide immediate situational awareness without needing a separate oscillator pane.
Settings
General Settings
- OHLC Type: Sets the source price data used for EMA calculations.
- Fast EMA: The period for the shorter-term trend line.
- Slow EMA: The period for the longer-term trend line.
- Consolidated EMA: The period used when "Show Both EMAs" is disabled.
- Show Both EMAs: Toggle to display either two crossing EMAs or a single trend-colored EMA.
Stoch RSI
- K / D: Smoothing periods for the Stochastic RSI lines.
- RSI Length / Stochastic Length: Period settings for the underlying RSI and Stochastic calculations.
- Upper/Middle/Lower Band: Defines the boundary levels for overbought (80), neutral (50), and oversold (20) zones.
Crossover Alerts
- Crossover Alert Background Colour (Middle Level): Toggles background highlights for crossovers occurring near the 50 level.
- Crossover Alert Background Colour (OB/OS Level): Toggles background highlights for crossovers in overbought or oversold zones.
- Crossover Alert >input / <input: Enables background coloring when the K-line crosses back inside the extreme bands.
Moving Average
- MA Type: Choose between EMA, WMA, SMA, or None to act as a trend filter.
- MA Source: The price source for the filter MA.
- MA Length: The period for the long-term trend filter (default 200).
FAQ
How do I interpret the "Bull" and "Bear" labels? The labels appear when the Fast EMA crosses the Slow EMA. A "Bull" label indicates a shift to bullish momentum, while a "Bear" label indicates a shift to bearish momentum.
What do the different background colors represent? Background colors are linked to Stochastic RSI crossovers. Green/Red highlights usually indicate crossovers near the midline, while yellow or white highlights indicate crossovers at extreme overbought or oversold levels, depending on your settings.
How can I access this script? 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.