📅 财经日历 📊 实时波动 📈 大盘云图 📶 行情走势 🆚 投机情绪 🚀 今日热点

    一个程序问题

    2011-10-03 · 8745 阅读
    您好,请教问题,下面的程序无法输出‘下穿均线’的箭头,而上穿可以。找不到原因,请指教,谢谢!
      //======================================================
      #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 个

    不要找他 LV5

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

    今天无聊来逛逛  

    lr兑换 LV5

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

    来几句吧  

    加Q2219910020 LV5

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

    HOHO~~~~~~  

    醉醒翁 LV5

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

    #无语  

    福尔摩斯 LV6

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

    小心大家盯上你哦  

    baoshan2007 LV0

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

    好帖,有才  

    搁浅 LV4

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

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

    金银 LV6

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

    老大,我好崇拜你哟  

    gjjking LV4

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

    支持一下吧  
    123下一页
    您需要登录后才可以回帖 登录 | 注册

    提醒: 禁止引战、谩骂、灌水内容

    微信二维码

    有问题联系客服