顺水外汇EA交易网MT4

标题: 为什么此指标复盘时不显示箭头呢? [打印本页]

作者: vic2222200388    时间: 2018-1-11 10:11
标题: 为什么此指标复盘时不显示箭头呢?
正常看盘时出现箭头时,换周期后有时也不显示,哪位大神帮解决,谢谢!!
/*
   Generated by EX4-TO-MQ4 decompiler FREEWARE V4.0.451.1 [-]
   Website: http://www.metaquotes.net
   E-mail : support@metaquotes.net
*/
#property copyright "Sidus"
#property link      "http://www.metaquotes.net/"
#property indicator_chart_window
#property indicator_buffers 4
#property indicator_color1 Blue
#property indicator_color2 Red
#property indicator_color3 Blue
#property indicator_color4 DodgerBlue
extern int FastEMA = 14;
extern int SlowEMA = 21;
extern int RSIPeriod = 17;
extern bool Alerts = FALSE;
double g_ibuf_92[];
double g_ibuf_96[];
double g_ibuf_100[];
double g_ibuf_104[];
int gi_108 = 0;
int gi_112 = 0;
double gd_116 = 0.0;
double gd_unused_124 = 0.0;
int init() {
   SetIndexStyle(0, DRAW_LINE);
   SetIndexBuffer(0, g_ibuf_92);
   SetIndexStyle(1, DRAW_LINE, STYLE_DASH, 3);
   SetIndexBuffer(1, g_ibuf_96);
   SetIndexStyle(2, DRAW_ARROW, STYLE_DASH, 5);
   SetIndexArrow(2, 233);
   SetIndexBuffer(2, g_ibuf_100);
   SetIndexEmptyValue(2, 0.0);
   SetIndexStyle(3, DRAW_ARROW, STYLE_DASH, 5);
   SetIndexArrow(3, 234);
   SetIndexBuffer(3, g_ibuf_104);
   SetIndexEmptyValue(3, 0.0);
   return (0);
}
int deinit() {
   return (0);
}
int start() {
   int li_4 = IndicatorCounted();
   double irsi_8 = 0;
   bool li_16 = FALSE;
   double price_20 = 0;
   if (li_4  0) li_4--;
   int li_0 = Bars - li_4;
   for (int li_28 = 0; li_28  0.0 && irsi_8 > 50.0) gi_108 = 1;
      else
         if (gd_116 < 0.0 && irsi_8 < 50.0) gi_108 = 2;
      if (gi_108 == 1 && gi_112 == 2) {
         g_ibuf_104[li_28 - 1] = High[li_28 - 1] - 5.0 * Point;
         li_16 = TRUE;
         price_20 = Ask;
      } else {
         if (gi_108 == 2 && gi_112 == 1) {
            g_ibuf_100[li_28 - 1] = Low[li_28 - 1] - 5.0 * Point;
            li_16 = TRUE;
            price_20 = Bid;
         }
      }
      gi_112 = gi_108;
      gd_unused_124 = gd_116;
   }
   if (Alerts && li_16) {
      PlaySound("alert.wav");
      if (gi_112 == 1) MessageBox("Entry point: buy at " + price_20 + "!!", "Entry Point", 0);
      else
         if (gi_112 == 2) MessageBox("Entry point: sell at " + price_20 + "!!", "Entry Point", 0);
      li_16 = FALSE;
   }
   RefreshRates();
   return (0);
}

作者: yuanxiaoming    时间: 2018-1-11 10:27
源码错误吧




欢迎光临 顺水外汇EA交易网MT4 (http://waterforex.com/) Powered by Discuz! X3.2