MQL5Book/Scripts/p2/Preprocessor.mqh
super.admin 1c8e83ce31 convert
2025-05-30 16:09:41 +02:00

26 lines
930 B
MQL5

//+------------------------------------------------------------------+
//| Preprocessor.mqh |
//| Copyright 2021, MetaQuotes Ltd. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
double array[] =
{
#include "preprocessor.txt"
};
//+------------------------------------------------------------------+
//| Replacement wrapper for OnStart function |
//+------------------------------------------------------------------+
void OnStart()
{
Print(__FUNCTION__, " wrapper started");
ArrayPrint(array);
// ... do some work
_OnStart();
// ... do some work
Print(__FUNCTION__, " wrapper done");
}
#define OnStart _OnStart
//+------------------------------------------------------------------+