下载MetaTrader 5
要添加评论,请登录注册
您有Mac OS吗?了解如何在上面安装MetaTrader!
hongguang yin
356
hongguang yin 2008.02.06 10:22 

Hi,

I have compiled my matlab function into dll. In the EA, I put in the following code:

#import "MLfun01.dll"

double GetArrayItemValue(double ML_Signal[]);

bool SetArrayItemValue(double& ML_Signal[],int,int,double);
ML_Signal[8] = MLfun01(string CP, string dataCL,double arr[8],string OTM);
#import

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?

Thanks

/
要添加评论,请登录注册