I have compiled my matlab function into dll. In the EA, I put in the following code:
double GetArrayItemValue(double ML_Signal);
bool SetArrayItemValue(double& ML_Signal,int,int,double);
ML_Signal = MLfun01(string CP, string dataCL,double arr,string OTM);
the output of the Matlab function is a 1x8 vector, so the output in MT4 from the function should be a 1x8 array. the above code doesn't work. Can anybody tell me what is the correct code of importing the dll for the function?