Skip to content
All library documents

Using a Multi-Timeframe Kalman Filter to Color Price Bars

Article MQL5 code base

Summary

This document describes a MetaTrader indicator based on a Kalman filter, adapted to show information across multiple timeframes. In addition to standard platform timeframes, it provides three successive higher-timeframe views relative to the chart’s current interval. Its display changes to colored candles or bars according to the chart style, making the indicator’s trend assessment visible on the price chart.

The suggested use is to treat color changes as potential signals. The colors are determined by an internal velocity calculation, rather than simply by the slope of the displayed indicator. The document does not define the Kalman model’s parameters, specify entry or exit rules, or provide backtests or performance evidence. It therefore offers a visual indicator concept, but leaves signal validation and risk controls to the user.

Key ideas

  • The indicator extends a Kalman filter display across three higher timeframes.
  • It colors candles or bars to make its trend assessment easier to view.
  • Color is based on the indicator’s internal velocity calculation rather than its slope.
  • Color changes are suggested as signals, but the document provides no tested trading rules or performance evidence.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.