All indicators

Moving average Bias Ratio

May 15, 2020

Static chart image
Volume BasedSignalsMoving Averages

The Moving average Bias Ratio indicator calculates the percentage deviation between short-term and long-term moving averages to identify trend direction and potential market reversals. It provides a visual representation of momentum by quantifying how far price action, represented by a faster average, has drifted from a slower baseline.

Usage

The Usage section describes how the script can be used to interpret market momentum. The indicator is primarily used as a trend filter: when the short-term moving average is above the long-term moving average, the Bias Ratio is positive, suggesting a bullish trend. Conversely, when the short-term average is below the long-term average, the Bias Ratio is negative, suggesting a bearish trend.

Users can leverage the indicator in the following ways:

  • Trend Confirmation: Use the zero-line cross as a signal for trend shifts. A cross above zero indicates bullish momentum, while a cross below zero indicates bearish momentum.
  • Overextended Markets: Large spikes in the Bias Ratio (either positive or negative) suggest that the distance between the two averages is extreme, which may precede a mean reversion or a slowdown in the current trend.
  • Visual Charting: The tool includes an option to color the price bars based on the current bias, allowing for quick visual trend identification without looking at the oscillator pane.

Details

The script calculates the Moving Average Bias Ratio using a standard percentage deviation formula. This mathematical approach normalizes the distance between two averages, making it easier to compare momentum across different assets or timeframes.

The calculation follows this logic: Avg. BIAS = (MA(short) - MA(long)) ÷ MA(long) × 100%

The script supports six different moving average types, allowing for various levels of sensitivity and lag:

  1. Simple Moving Average (SMA)
  2. Exponential Moving Average (EMA)
  3. Weighted Moving Average (WMA)
  4. Running Moving Average (RMA)
  5. Hull Moving Average (HMA)
  6. Volume Weighted Moving Average (VWMA)

Settings

  • Data Source: Determines the price input used for the calculations (e.g., Close, Open, High, Low).
  • Moving Average Type: Selects the specific MA algorithm (SMA, EMA, WMA, RMA, HMA, or VWMA) used for both the short and long periods.
  • MA Length (1): Sets the period for the short-term moving average.
  • MA Length (2): Sets the period for the long-term moving average.
  • Plot Candles: A toggle to enable or disable the coloring of price bars based on the current bias direction.
  • Date Range Filtering: A group of settings (Year, Month, Day) that allows users to restrict the indicator calculations and plots to a specific historical window.

FAQ

How do I interpret a zero-line cross in the Bias Ratio? A cross above the zero line indicates that the short-term trend has overtaken the long-term trend, signaling bullish momentum. A cross below zero indicates the short-term trend is falling below the long-term baseline, signaling bearish momentum.

Which moving average type should I choose? The choice depends on your strategy. SMAs provide a stable baseline, whereas EMAs or HMAs react more quickly to recent price changes. VWMA is useful for incorporating volume data into the trend calculation.

How do I access the Moving average Bias Ratio? 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.