Discussion of article "Cross-Platform Expert Advisor: Introduction"

 

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

 
https://www.mql5.com/ru/code/16006
MT4Orders
MT4Orders
  • votes: 11
  • 2016.08.05
  • fxsaber
  • www.mql5.com
Параллельное использование ордерных систем MetaTrader 4 и MetaTrader 5.
Reason: