Download MetaTrader 5
To add comments, please log in or register
Post web links to other trader's signals and make profit
MetaQuotes Software Corp.
Moderator
177369
MetaQuotes Software Corp. 2016.08.15 08:51 

New article Cross-Platform Expert Advisor: Introduction has been published:

This article details a method by which cross-platform expert advisors can be developed faster and easier. The proposed method consolidates the features shared by both versions into a single class, and splits the implementation on derived classes for incompatible features.

Note that the two source files shown earlier are identical. It is not possible to have a single source file that is cross-platform compatible. This is due to how the source files are being compiled:

  • Compiling an MQ4 source file results to the generation of an EX4 file
  • Compiling an MQ5 source file results to the generation of an EX5 file.

It may not be possible to have a single source file that works on both platforms. However, it is possible to have both source files to reference a single header file, as what is illustrated in the following figure:

Source and Header Files

Author: Enrico Lambino

/
To add comments, please log in or register