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

    希望得到老师指导

    2011-11-06 · 4627 阅读
    版主老师:
      我设计的程序由三条曲线组成,以一定周期的最大值“High[ ]”最小值Low[ ]构成上下两条包络线,另外一条为“close”线。根据之间的上穿、下穿得出报警、但一个方向的报警太多,只想利用首次报警。对程序改了之后,报警信号全消失了,希望得到老师指导
      重复报警的程序
      #property indicator_separate_window
      #property indicator_buffers 5
      #property indicator_color1 White
      #property indicator_color2 Red
      #property indicator_color3 Green
      #property indicator_color4 Yellow
      #property indicator_color5 Yellow
      //---- input parameters
      extern int 是否音乐报警=1;
      
      //---- buffers
      
      double aa1 [ ];
      double aa2[ ];
      double aa3[ ];
      double Up[];
      double Down[];
      
      
      int init()
      {
      SetIndexStyle(0,DRAW_LINE);
      SetIndexStyle(1,DRAW_LINE);
      SetIndexStyle(2,DRAW_LINE);
      SetIndexStyle(3,DRAW_ARROW);
      SetIndexStyle(4,DRAW_ARROW);
      
      SetIndexBuffer(0, aa1);
      SetIndexBuffer(1, aa2);
      SetIndexBuffer(2, aa3);
      SetIndexBuffer(3,Down);
      SetIndexBuffer(4,Up);
      SetIndexArrow(3,234);
      SetIndexArrow(4,233);
      
      IndicatorShortName(\"新思路\");
      return(0);
      }
      int start()
      {
      int limit;
      int counted_bars=IndicatorCounted();
      
      //---- last counted bar will be recounted
      
      //---- initial zero
      if(counted_bars0) counted_bars--;
      limit=Bars-counted_bars;
      //---- macd counted in the 1-st additional buffer
      for(int i=0; i
    ""
    还没有人打赏,支持一下
    回复

    举报

     

    回答|共 11 个

    悟空小宝 LV5

    发表于 2012-11-25 16:59:05 | 显示全部楼层

    晕  不信啊  

    御赐黄马甲 LV5

    发表于 2012-11-25 18:27:51 | 显示全部楼层

    加油啊!!!!顶哦!!!!!  

    妹子 LV5

    发表于 2012-11-25 18:27:51 | 显示全部楼层

    帮顶  

    elliott LV4

    发表于 2012-11-25 18:27:51 | 显示全部楼层

    既然来了,就留个脚印  

    苍井空 LV5

    发表于 2012-11-25 18:27:51 | 显示全部楼层

    挺 疯狂的这个EA  

    西城威尔士 LV6

    发表于 2012-11-25 18:27:51 | 显示全部楼层

    加油啊!!!!顶哦!!!!!  

    慕容長季 LV7

    发表于 2014-11-14 14:49:36 | 显示全部楼层

    研究研究

    tgkrvebl LV3

    发表于 2014-12-18 13:27:27 | 显示全部楼层

    [s:132]

    明注册韩国 LV3

    发表于 2015-1-10 13:17:45 | 显示全部楼层

    感谢分享
    12下一页
    您需要登录后才可以回帖 登录 | 注册

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

    微信二维码

    有问题联系客服