All indicators

Blue Line 13 day Smoothed Moving Average

Aug 27, 2019

Static chart image
Support and ResistanceSignalsMoving Averages

The Blue Line 13 day Smoothed Moving Average indicator provides a specialized trend-following line designed to filter market noise and identify long-term price direction through a unique smoothing calculation. It serves as a visual guide for determining the prevailing market bias and identifying potential support or resistance levels based on historical median price action.

Usage

The Blue Line 13 day Smoothed Moving Average is primarily used to identify trend direction and potential reversal points. When the price is trading above the blue line, the market is generally considered to be in an uptrend; conversely, when the price is trading below the line, a downtrend is indicated.

Traders often look for price interactions with the line to find entries or exits:

  • Trend Confirmation: The slope of the line indicates trend strength. A rising line suggests bullish momentum, while a falling line suggests bearish momentum.
  • Dynamic Support/Resistance: During trending phases, the price often retraces to the blue line before continuing its primary direction, allowing it to act as a dynamic level of interest.
  • Crossovers: A price crossover above the line may signal a shift toward bullish sentiment, while a crossunder may signal a shift toward bearish sentiment.

Details

The script calculates a smoothed value based on the median price (High + Low / 2) over a specific lookback period. Unlike a standard Simple Moving Average (SMA), which weights all prices in the window equally, this script utilizes a custom smoothing technique that references previous sums and averages.

The core logic involves:

  1. Calculating the median price for the current bar and the preceding eight bars.
  2. Determining a previous sum and average of these median prices.
  3. Applying an offset/lag factor (5 bars) to the calculation to ensure the line reacts to established trends rather than immediate volatility.

This specific construction helps reduce "whipsaws" (false signals) that are common with faster-moving averages, providing a more stable reference point for long-term trend analysis.

Settings

The current version of this indicator is optimized for its specific 13-period smoothing calculation and does not feature external input parameters to maintain the integrity of the original "Blue Line" formula.

  • Plot Color: Controls the color of the moving average line (default is blue).
  • Line Width: Adjusts the thickness of the plotted line for better visibility on different chart backgrounds.

FAQ

How do I use the Blue Line for trade signals? The indicator is most effective when used for trend confirmation; a price crossing and closing above the line suggests a bullish bias, while a close below suggests a bearish bias.

What timeframe works best for this indicator? While it is named the "13 day" average, it can be applied to any timeframe. On daily charts, it reflects a medium-term trend, while on intraday charts, it acts as a significant smoothing filter for high-frequency noise.

How can I access this indicator? 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.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.