24评论

0收藏

一个程序问题

avatar smhlucky | 8247 人阅读 | 24 人评论 | 2011-10-03

您好,请教问题,下面的程序无法输出‘下穿均线’的箭头,而上穿可以。找不到原因,请指教,谢谢!
  //======================================================
  #property  indicator_chart_window
  #property  indicator_buffers 2         
  #property  indicator_color1 Red
  #property  indicator_color2 Purple
  extern int  均线=5;
  double md[];
  double mk[];
  double temp0,temp1;
  int init()
    {
      IndicatorBuffers(2);
      SetIndexBuffer(0,md);
      SetIndexBuffer(1,mk);
      SetIndexStyle(0,DRAW_ARROW);
      SetIndexStyle(1,DRAW_ARROW);
      SetIndexArrow(0,204);
      SetIndexArrow(1,233);
      IndicatorDigits(Digits);
     return(0);
    }
  int start()
    {
     int limit;
     int counted_bars=IndicatorCounted();
     if(counted_bars>0) counted_bars--;
     limit=Bars-counted_bars;
     for(int i=0; itemp0  && Close[i+1]
""
还没有人打赏,支持一下

评论|共 24 个

不要找他

发表于 2012-11-22 01:12:18 | 显示全部楼层

今天无聊来逛逛  

lr兑换

发表于 2012-11-22 01:12:18 | 显示全部楼层

来几句吧  

加Q2219910020

发表于 2012-11-22 01:36:01 | 显示全部楼层

HOHO~~~~~~  

醉醒翁

发表于 2012-11-22 01:36:01 | 显示全部楼层

#无语  

福尔摩斯

发表于 2012-11-22 01:36:01 | 显示全部楼层

小心大家盯上你哦  

baoshan2007

发表于 2012-11-22 01:36:01 | 显示全部楼层

好帖,有才  

搁浅

发表于 2012-11-22 01:36:01 | 显示全部楼层

呵呵 哪天得看看 `~~~~  

金银

发表于 2012-11-22 01:36:01 | 显示全部楼层

老大,我好崇拜你哟  

gjjking

发表于 2012-11-22 01:36:01 | 显示全部楼层

支持一下吧  

123下一页
您需要登录后才可以回帖 登录 | 注册 微信登录

EA之家评论守则