BIAS指标没有办法刷新,跪求谁能帮我解决下,谢谢 新评论 Xiao Wei Mou 2020.03.18 07:35 /---- indicator settings #property indicator_separate_window #property indicator_buffers 3 #property indicator_color1 Orange #property indicator_color2 Turquoise #property indicator_color3 CornflowerBlue //---- Level Lines #property indicator_level1 0 //---- indicator parameters extern int MA1=6; extern int MA2=12; extern int MA3=24; //---- indicator buffers double MA1Buffer[]; double MA2Buffer[]; double MA3Buffer[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- drawing settings SetIndexStyle(0,DRAW_LINE); SetIndexStyle(1,DRAW_LINE); SetIndexStyle(2,DRAW_LINE); SetIndexDrawBegin(0,MA1); SetIndexDrawBegin(1,MA2); SetIndexDrawBegin(2,MA3); IndicatorDigits(Digits+1); //---- indicator buffers mapping SetIndexBuffer(0,MA1Buffer); SetIndexBuffer(1,MA2Buffer); SetIndexBuffer(2,MA3Buffer); //---- name for DataWindow and indicator subwindow label IndicatorShortName("BIAS("+MA1+","+MA2+","+MA3+")"); SetIndexLabel(0,"BIAS"); SetIndexLabel(1,"BIAS"); SetIndexLabel(2,"BIAS"); //---- initialization done return(0); } //+------------------------------------------------------------------+ //| Moving Averages Convergence/Divergence | //+------------------------------------------------------------------+ int start() { int limit; int counted_bars=IndicatorCounted(); //---- last counted bar will be recounted if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; //---- bias counted in the 1-st buffer for(int i=0; i<limit; i++) { MA1Buffer[i]= 100*(Close[i]- iMA(NULL,0,MA1,0,MODE_SMA,PRICE_CLOSE,i))/iMA(NULL,0,MA1,0,MODE_SMA,PRICE_CLOSE,i); MA2Buffer[i]= 100*(Close[i]- iMA(NULL,0,MA2,0,MODE_SMA,PRICE_CLOSE,i))/iMA(NULL,0,MA2,0,MODE_SMA,PRICE_CLOSE,i); MA3Buffer[i]= 100*(Close[i]- iMA(NULL,0,MA3,0,MODE_SMA,PRICE_CLOSE,i))/iMA(NULL,0,MA3,0,MODE_SMA,PRICE_CLOSE,i); } //---- done return(0); } //+--------------------------- 跪求代码解读注解 本人刚接触mql4,实在不懂,求大神或好心人帮忙解读代码 求好人帮忙把这几行通达信代码改成MQl语言,很感谢 能不能用mt4编写出这样的曲线EMA(MA(C,N),M)? 新评论 原因: 取消 您错过了交易机会: 免费交易应用程序 8,000+信号可供复制 探索金融市场的经济新闻 注册 登录 拉丁字符(不带空格) 密码将被发送至该邮箱 发生错误 使用 Google 登录 您同意网站政策和使用条款 如果您没有帐号,请注册 可以使用cookies登录MQL5.com网站。 请在您的浏览器中启用必要的设置,否则您将无法登录。 忘记您的登录名/密码? 使用 Google 登录