Displaying Multi-Buffer Indicators Across Symbols and Timeframes
Summary
This article extends an MQL5 library so standard indicators with multiple output lines can be calculated and displayed on a chart for a different symbol or timeframe. Its central design change is to identify each buffer by indicator type, instance identifier, and line type, allowing the library to associate plotted and calculated buffers with the correct indicator and series. It also adds a short indicator name and updates related library definitions and buffer classes.
The walkthrough covers library changes and an example setup that selects EURUSD and a four-hour period in the indicator settings, then displays those values on an hourly EURUSD chart. The material is a software and charting implementation guide rather than a signal or strategy analysis. It supplies no evidence about the predictive value of the transferred indicator values, and notes that the attached test files target MetaTrader 5 and have not been tested in MetaTrader 4.
Key ideas
- Multi-buffer indicators need a line identifier in addition to indicator type and instance identifier.
- The library uses those identifiers to associate each plotted or calculated buffer with the correct standard indicator output.
- The example displays standard indicator values from a selected timeframe on a chart using another timeframe.
- The article describes MQL5 library changes and a test setup, but does not evaluate whether the indicators predict market moves.
- The supplied functionality is intended for MetaTrader 5 and is not reported as tested in MetaTrader 4.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.