论坛

EA编译时没有错误,但运行时在专家栏中提示: cannot load indicator 'MACD' [4002],不知是什么原因。源代码如下,请高手给看一下:

//Macd double Macd(string symbol,ENUM_TIMEFRAMES period,int fast,int slow,int index) { double buf[]; ArraySetAsSeries(buf,true); int a=iMACD(symbol,period,0,fast,slow,STO_CLOSECLOSE); int copied=CopyBuffer(a,0,0,index+1,buf); return(buf[index]); }

在MT5中想要获取当前某个持仓品种的浮动盈亏,用哪个函数?

MT5用哪个函数可以读取当前某个持仓品种的浮动盈亏?

在MT5的EA中,怎样获取当前分钟?

直接用Minute()函数时,编译时提示:'Minute' - undeclared identifier