Because loading DLL failed as test , want to project setting file to enable "AllowDLLImport"
message "2020.01.01 00:00:00 DLL loading is not allowed"
"global initialization failed", "global initialization critical
"tester stopped because expert initialization failed"
Need some body help do this~
I check this "https://www.metatrader5.com/en/terminal/help/start_advanced/start"
Original issue How to open script as onDeinit/OnInit
Do script file as OnDeinit/OnInit ?
void OnDeinit(const int reason)
SystemCall(Script_Export_History_Deals.mq5 (input start_time,input end_time) );// ???
Can I call script file as OnDeinit/OnInit ?
the code you show is not MQL so won't work...
The easiest thing to do is just incorporate the script into the EA...
Ya ,Right now I remove the script part , Let it as mqh let EA to include it.
But I think there should be more easy way to integrate different project more easy.
But get some problem DLL loading is not allowed as test ><
TERMINAL Setting: ALLOW DLL
Alert("This script can be started only on a retail hedging account (Forex).");
Alert("Error: The start date must be earlier than the end date");
//--- open the .csv file with the associated Windows program
Print("History is exported to ",TerminalInfoString(TERMINAL_DATA_PATH)+"\\MQL5\\Files\\"+InpFileName);
There is a pop up windows can choose enable DLL import as live run EA, but as test there is no pop up window choose DLL ?
Try the 2nd tab, not the 3rd.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.