Skip to content
All library documents

Packaging a Higher-Timeframe TDI Indicator in MetaTrader 5

Article MQL5 code base

Summary

This document describes a MetaTrader 5 version of the TDI-2 indicator that can use a selected chart timeframe, with a higher-timeframe setting shown as an example. It also explains how the repeater variant is compiled with the original custom indicator included as an executable resource. Once packaged this way, the compiled repeater can run on another terminal without requiring the original indicator file to remain in that terminal’s indicator folder.

The practical focus is indicator configuration and deployment, not trading rules: the text does not define how TDI signals should be interpreted, when to enter or exit, or how performance was tested. Compilation requires the source indicator to be present in the specified MetaTrader indicators directory beforehand. The document offers no empirical evidence that the indicator produces profitable signals, and gives only a brief implementation overview, so users would need the source and platform-specific testing to confirm behavior.

Key ideas

  • The TDI-2 indicator includes an input for choosing the calculation timeframe.
  • The higher-timeframe repeater is compiled with the original custom indicator embedded as a resource.
  • After compilation, the repeater can run without the original indicator file in the destination terminal.
  • The source indicator must be available in the MetaTrader indicators directory during compilation.
  • The document explains deployment but gives no 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.