All indicators

H-Infinity Volatility Filter

Sep 18, 2024

Static chart image
SignalsCandlestickVolatility

The H-Infinity Volatility Filter tool identifies underlying market trends by applying advanced H∞ control theory to reduce noise and manage uncertainty in volatile conditions. This script helps traders isolate significant price movements from random fluctuations, providing clearer signals for trend-following strategies.

Usage

The Usage section describes how the script can be used to navigate different market environments.

  • Trend Identification: The primary use of the filter is to determine the current market direction. A rising filtered line (colored green by default) indicates a bullish trend, while a falling line (colored red) suggests a bearish trend.
  • Volatility Management: In highly volatile markets, users can increase the "Worst-Case Noise" and "Disturbance" parameters to smooth out aggressive price swings, preventing premature exits or false entries.
  • Visual Confirmation: The tool optionally colors the chart's candles based on the detected trend, allowing for immediate visual confirmation of the market regime without needing to focus solely on the indicator line.
  • Alert Integration: Users can configure alerts for trend transitions (Bullish to Bearish or vice-versa) to respond to market shifts without constant manual monitoring.

Details

The H-Infinity Volatility Filter is based on H∞ (H-infinity) control theory, a mathematical framework developed in the 1980s by engineers like George Zames and John C. Doyle. Unlike standard filters that might assume a specific distribution of noise, H∞ control is designed to minimize the "worst-case" impact of external disturbances and model uncertainty.

In this implementation, the filter processes historical price data by considering a set number of previous states (defined by the "Order"). It estimates the current trend by adjusting its sensitivity based on user-defined noise and disturbance levels. This robust approach is particularly effective in financial markets where price data is often non-stationary and influenced by unpredictable external events.

Settings

H∞ Filter Settings

  • Source: The price data used for calculation (default is Close).
  • Worst-Case Noise: Adjusts the filter's tolerance for uncertainty in the price data. Higher values result in more smoothing.
  • Disturbance: Accounts for external disruptions in the price series. Increasing this parameter makes the filter less reactive to short-term spikes.
  • Order: The number of previous states the filter considers for its internal calculations.

Display Settings

  • Bullish Color: The color used for the line and candles during an uptrend.
  • Bearish Color: The color used for the line and candles during a downtrend.
  • Color Candles by Trend?: Toggles whether the chart's candles should be colored according to the detected trend.

FAQ

How do I use the H-Infinity Volatility Filter?

Apply the indicator to your chart and adjust the Noise and Disturbance parameters based on the asset's current volatility. Look for the line color changes to identify potential trend reversals.

Can I use this for short-term trading?

Yes, by lowering the Order and Disturbance settings, the filter becomes more reactive, making it suitable for short-term timeframes. Conversely, higher settings are better for long-term investing.

How can I access the H-Infinity Volatility Filter?

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.