Garch EA

 

Hi everyone!

I have created an EA with a Garch Model, written in C++, and passed by DLL to MT4. I continuously  have error 1114 but I cannot figure out why! I have all C++ Compilers and Redistributable Editions. Could someone test it and see what is wrong? Thank you very much.

Files:
garch.zip  9 kb
 
leourb_: I continuously  have error 1114
No such error in mql4. Runtime Errors - MQL4 Documentation
 
WHRoeder:
leourb_: I continuously  have error 1114
No such error in mql4. Runtime Errors - MQL4 Documentation

I got this error string in "Diary" tab (I use MT4 in italian hope it is the right translation of tab's name):

2015.09.14 15:01:44.524 2015.01.01 23:00  unresolved import function call

2015.09.14 15:01:44.524 2015.01.01 23:00  Cannot call 'Garch.dll::FillPriceVec', 'Garch.dll' is not loaded

2015.09.14 15:01:44.524 2015.01.01 23:00  Cannot load 'C:\Users\Leonardo\AppData\Roaming\MetaQuotes\Terminal\5*************************\MQL4\Libraries\Garch.dll' [1114]

P.S. I have already wrote and actually using DLLs, for this reason I cannot figure out what is wrong! 


 
Can't load DLL: Check options make sure DLL's allowed global options and EA's.
FillPriceVec(close_array,ArraySize(close_array));
Perhaps related to const T& can't use a temporary.
int test = ArraySize(close_array);
FillPriceVec(close_array,test);
 
WHRoeder:
Can't load DLL: Check options make sure DLL's allowed global options and EA's.
Perhaps related to const T& can't use a temporary.

None... Still got this error :(
Reason: