15评论

15收藏

波段指标 super_signals

 

avatar 老王吧 | 5348 人阅读 | 15 人评论 | 2017-12-27

USDJPYM30.png

  1. //+------------------------------------------------------------------+
  2. //|                                                super-signals.mq4 |
  3. //|                 Copyright @2006, Nick Bilak, beluck[AT]gmail.com |
  4. //+------------------------------------------------------------------+
  5. #property copyright "下载更多外汇EA,外汇指标,交易系统,就到【外汇EA之家】"
  6. #property link      "http://www.eazhijia.com"

  7. #property indicator_chart_window
  8. #property indicator_buffers 2
  9. #property indicator_color1 Red
  10. #property indicator_width1 2
  11. #property indicator_color2 Lime
  12. #property indicator_width2 2

  13. input int SignalGap = 4;

  14. int dist=24;
  15. double b1[];
  16. double b2[];

  17. void OnInit(void)
  18.   {
  19.    SetIndexStyle(0,DRAW_ARROW,STYLE_SOLID,1);
  20.    SetIndexStyle(1,DRAW_ARROW,STYLE_SOLID,1);
  21.    SetIndexArrow(1,233);
  22.    SetIndexArrow(0,234);
  23.    SetIndexBuffer(0,b1);
  24.    SetIndexBuffer(1,b2);
  25. }

  26. int OnCalculate(const int rates_total,
  27.                 const int prev_calculated,
  28.                 const datetime &time[],
  29.                 const double &open[],
  30.                 const double &high[],
  31.                 const double &low[],
  32.                 const double &close[],
  33.                 const long &tick_volume[],
  34.                 const long &volume[],
  35.                 const int &spread[])
  36.   {
  37.    int i,limit,hhb,llb;
  38.    if(rates_total<=SignalGap)
  39.       return(0);

  40.    limit=rates_total-prev_calculated;
  41.    if(prev_calculated>0)
  42.       limit++;
  43.    for (i=limit;i>=0;i--)   {
  44.       hhb = Highest(NULL,0,MODE_HIGH,dist,i-dist/2);
  45.       llb = Lowest(NULL,0,MODE_LOW,dist,i-dist/2);

  46.       if (i==hhb)
  47.          b1[i]=High[hhb]+SignalGap*Point;
  48.       if (i==llb)
  49.          b2[i]=Low[llb]-SignalGap*Point;
  50.    }
  51.    return(rates_total);
  52. }

复制代码


super-signals.mq4
""
还没有人打赏,支持一下

评论|共 15 个

lyf313

发表于 2017-12-29 22:31:39 | 显示全部楼层

这个指标 好用不  

poiqazli

发表于 2018-10-5 12:45:28 | 显示全部楼层

好像没发现未来

ltlttl

发表于 2018-11-8 23:24:55 | 显示全部楼层

有未来不好用

臭不要脸的

发表于 2020-1-13 13:05:51 | 显示全部楼层

:lol不错

小企

发表于 2020-4-7 18:17:18 | 显示全部楼层

不错,支持下楼主

小无声笛

发表于 2020-6-28 10:57:26 | 显示全部楼层

不错不错,很好哦

野生动物

发表于 2020-7-1 10:31:59 | 显示全部楼层

不错不错,楼主您辛苦了。。。

38845243

发表于 2020-7-26 11:18:27 | 显示全部楼层

谢谢楼主分享

何止一句在乎

发表于 2020-8-15 20:47:33 | 显示全部楼层

谢谢楼主分享

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

EA之家评论守则