我正在尝试将EA从MT4转换为MT5。
MT4中的EA正在使用iCustom功能以获得来自indior的值。
Indior有8个缓冲区。在MT4中,它工作正常(即iCustom函数正确地从indior的8个缓冲区中检索值)。
相反,在MT5中,它从室内检索奇怪的值。
印度被置于MQL5 \ Indoors下。
下面是我的MQL5代码:(注意60是室内的输入参数)
for(i = 0; ilt; 60; i ){
EUR [i] = iCustom(NULL,PERIOD_M1,LR Strength,60,0,i);
USD [i] = iCustom(NULL,PERIOD_M1,LR Strength,60,1,i);
GBP [i] = iCustom(NULL,PERIOD_M1,LR Strength,60,2,i);
JPY [i] = iCustom(NULL,PERIOD_M1,LR Strength,60,3,i);
CHF [i] = iCustom(NULL,PERIOD_M1,LR Strength,60,4,i);
CAD [i] = iCustom(NULL,PERIOD_M1,LR Strength,60,5,i);
AUD [i] = iCustom(NULL,PERIOD_M1,LR Strength,60,6,i);
NZD [i] = iCustom(NULL,PERIOD_M1,LR Strength,60,7,i);
}
有人可以帮帮我吗?