8评论

4收藏

winner binary

avatar 360 | 1639 人阅读 | 8 人评论 | 2018-03-08

EURGBPH1.png

  1. /*
  2.    Generated by EX4-TO-MQ4 decompiler V4.0.224.1 []
  3.    Website: http://purebeam.biz
  4.    E-mail : purebeam@gmail.com
  5. */
  6. #property copyright "joker Inc.-joker"
  7. #property link      ""

  8. #property indicator_chart_window
  9. #property indicator_buffers 2
  10. #property indicator_color1 Blue
  11. #property indicator_color2 Red

  12. extern int NumBars = 500;
  13. double g_ibuf_80[];
  14. double g_ibuf_84[];
  15. double gd_88;

  16. int init() {
  17.    SetIndexStyle(0, DRAW_ARROW);
  18.    SetIndexBuffer(0, g_ibuf_80);
  19.    SetIndexArrow(0, 233);
  20.    SetIndexStyle(1, DRAW_ARROW);
  21.    SetIndexBuffer(1, g_ibuf_84);
  22.    SetIndexArrow(1, 234);
  23.    gd_88 = MarketInfo(Symbol(), MODE_SPREAD) * Point;
  24.    return (0);
  25. }

  26. int deinit() {
  27.    return (0);
  28. }

  29. int start() {
  30.    double lda_60[100];
  31. /*  if (AccountNumber() != 122660) {
  32.       Comment("FORBIDDEN!! :" + AccountNumber() + " You are using the software illegally!");
  33.       return (0);
  34.    }
  35.    Comment("Member:  Gregory S. Kennedy   APPROVED");
  36. */
  37.    int l_ind_counted_0 = IndicatorCounted();
  38.    int li_4 = 7;
  39.    double ld_8 = 7.0;
  40.    double ld_16 = 0.7;
  41.    int li_24 = 0;
  42.    int li_28 = 0;
  43.    bool li_32 = TRUE;
  44.    double ld_36 = 0;
  45.    double ld_44 = 0;
  46.    double ld_52 = 0;
  47.    int l_index_64 = 0;
  48.    double ld_68 = 0;
  49.    int l_index_76 = 0;
  50.    double ld_80 = 0;
  51.    double ld_unused_88 = 0;
  52.    double ld_96 = 0;
  53.    int li_104 = 0;
  54.    int li_108 = 0;
  55.    double l_iatr_112 = 0;
  56.    double ld_120 = 2;
  57.    double ld_unused_128 = 10;
  58.    double ld_136 = 0;
  59.    double ld_144 = 0;
  60.    double ld_unused_152 = 0;
  61.    double ld_unused_160 = 0;
  62.    double ld_unused_168 = 0;
  63.    double ld_unused_176 = 0;
  64.    double ld_unused_184 = 0;
  65.    double ld_unused_192 = 0;
  66.    double ld_unused_200 = 0;
  67.    double ld_unused_208 = 0;
  68.    double ld_unused_216 = 0;
  69.    double ld_unused_224 = 0;
  70.    double ld_unused_232 = 0;
  71.    double ld_unused_240 = 0;
  72.    double ld_unused_248 = 0;
  73.    double ld_unused_256 = 0;
  74.    double ld_unused_264 = 0;
  75.    double ld_unused_272 = 0;
  76.    double ld_unused_280 = 0;
  77.    double ld_unused_288 = 0;
  78.    double ld_unused_296 = 0;
  79.    double ld_unused_304 = 0;
  80.    double ld_unused_312 = 0;
  81.    double ld_unused_320 = 0;
  82.    double ld_unused_328 = 0;
  83.    if (Bars < NumBars) li_24 = Bars;
  84.    else li_24 = NumBars;
  85.    if (Close[li_24 - 2] > Close[li_24 - 1]) li_32 = TRUE;
  86.    else li_32 = FALSE;
  87.    ld_36 = Close[li_24 - 2];
  88.    for (li_28 = li_24 - 3; li_28 >= 0; li_28--) {
  89.       ld_52 = gd_88 + High[li_28] - Low[li_28];
  90.       if (MathAbs(gd_88 + High[li_28] - (Close[li_28 + 1])) > ld_52) ld_52 = MathAbs(gd_88 + High[li_28] - (Close[li_28 + 1]));
  91.       if (MathAbs(Low[li_28] - (Close[li_28 + 1])) > ld_52) ld_52 = MathAbs(Low[li_28] - (Close[li_28 + 1]));
  92.       if (li_28 == li_24 - 3) for (l_index_76 = 0; li_28 <= li_4 - 1; l_index_76++) lda_60[l_index_76] = ld_52;
  93.       lda_60[l_index_64] = ld_52;
  94.       ld_68 = 0;
  95.       ld_80 = li_4;
  96.       li_108 = l_index_64;
  97.       for (l_index_76 = 0; l_index_76 <= li_4 - 1; l_index_76++) {
  98.          ld_68 += lda_60[li_108] * ld_80;
  99.          ld_80 -= 1.0;
  100.          li_108--;
  101.          if (li_108 == -1) li_108 = li_4 - 1;
  102.       }
  103.       ld_68 = 2.0 * ld_68 / (ld_8 * (ld_8 + 1.0));
  104.       l_index_64++;
  105.       if (l_index_64 == li_4) l_index_64 = 0;
  106.       ld_44 = ld_16 * ld_68;
  107.       if (li_32 && Low[li_28] < ld_36 - ld_44) {
  108.          li_32 = FALSE;
  109.          ld_36 = gd_88 + High[li_28];
  110.       }
  111.       if (!li_32 && gd_88 + High[li_28] > ld_36 + ld_44) {
  112.          li_32 = TRUE;
  113.          ld_36 = Low[li_28];
  114.       }
  115.       if (li_32 && Low[li_28] > ld_36) ld_36 = Low[li_28];
  116.       if (!li_32 && gd_88 + High[li_28] < ld_36) ld_36 = gd_88 + High[li_28];
  117.       l_iatr_112 = iATR(NULL, 0, 10, li_28);
  118.       ld_136 = 0;
  119.       ld_144 = 0;
  120.       if (li_32) {
  121.          if (li_104 != 1) ld_96 = Low[li_28] - l_iatr_112 * ld_120 / 3.0;
  122.          if (li_104 == 1) ld_96 = -1.0;
  123.          if (ld_96 > 0.0) {
  124.             ld_136 = ld_96;
  125.             ld_144 = 0;
  126.          } else {
  127.             ld_136 = 0;
  128.             ld_144 = 0;
  129.          }
  130.          g_ibuf_80[li_28] = ld_136;
  131.          li_104 = 1;
  132.       } else {
  133.          if (li_104 != 2) ld_96 = gd_88 + High[li_28] + l_iatr_112 * ld_120 / 3.0;
  134.          if (li_104 == 2) ld_96 = -1.0;
  135.          if (ld_96 > 0.0) {
  136.             ld_136 = 0;
  137.             ld_144 = ld_96;
  138.          } else {
  139.             ld_136 = 0;
  140.             ld_144 = 0;
  141.          }
  142.          g_ibuf_84[li_28] = ld_144;
  143.          li_104 = 2;
  144.       }
  145.    }
  146.    return (0);
  147. }
复制代码


winner binary.mq4
""
还没有人打赏,支持一下

评论|共 8 个

鑫桂天通金

发表于 2018-9-22 20:43:50 | 显示全部楼层

不错不错,很好哦

痔疮犯了

发表于 2020-6-15 14:02:11 | 显示全部楼层

前排支持下分享

裕银投资

发表于 2020-6-24 11:08:27 | 显示全部楼层

过来看看的

nihao

发表于 2020-8-1 14:03:39 | 显示全部楼层

谢谢楼主分享

avesd

发表于 2020-8-6 17:02:02 | 显示全部楼层

谢谢楼主分享

外汇使者

发表于 2020-8-23 21:53:39 | 显示全部楼层

谢谢楼主分享

金钱帝国¥¥

发表于 2020-8-30 14:12:13 | 显示全部楼层

学习了,不错

红火流云

发表于 2021-7-25 22:51:53 | 显示全部楼层

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

EA之家评论守则