Building Multi-Symbol, Multi-Timeframe Standard Indicators in MQL5
Summary
The article describes extending the DoEasy library so a custom indicator can display a standard indicator calculated for a different symbol and timeframe. Its example uses the Accelerator Oscillator, with buffer properties recording indicator identity, handle, type, and name so the library can associate buffers with their source indicator. The article also adds tracking for missing history bars and a corresponding timeseries event, which can alert a program after interruptions such as connection loss.
The demonstration applies AC data from GBPUSD on M5 to an EURUSD M1 chart and compares it with the standard indicator on the source chart. This illustrates cross-symbol and cross-period display, rather than a trading signal or performance test. The implementation is an early concept: the author says indicator data preparation is not yet optimized and will be improved in later installments. The described example targets MetaTrader 5; compatibility with MetaTrader 4 is untested.
Key ideas
- A custom indicator can display standard indicator values calculated from another symbol and timeframe.
- Buffer metadata can identify which standard indicator each buffer belongs to and provide access to its handle.
- Timeseries classes can detect skipped history bars and notify the program with an event.
- The article demonstrates the concept with the Accelerator Oscillator on a separate chart context.
- The data preparation code is preliminary, and the described implementation is for MetaTrader 5.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.