客服热线:18391752892

求助高手给这个指标加上邮件提醒

   日期:2019-01-12     浏览:288    
马上注册,结交更多好友,下载更多资源

您需要 登录 才可以下载或查看,没有帐号?注册 求助高手给这个指标加上邮件提醒:在任意所选择的周期内,出现买卖提醒的箭头并且K线收线后,自动发邮件提醒
提醒内容:
“多头信号+货币对+当前周期+K线收线点位+当前时间”
“空头信号+货币对+当前周期+K线收线点位+当前时间”

//+------------------------------------------------------------------+
//| This MQL is generated by Expert Advisor Builder             |
//|            http://sufx.core.t3-ism.net/ExpertAdvisorBuilder/ |
//|                                             |
//| In no event will author be liable for any damages whatsoever.   |
//|                Use at your own risk.               |
//|                                             |
//+------------------- DO NOT REMOVE THIS HEADER --------------------+
#define SIGNAL_NONE 0
#define SIGNAL_BUY   1
#define SIGNAL_SELL 2
#define SIGNAL_CLOSEBUY 3
#define SIGNAL_CLOSESELL 4
#property indicator_chart_window
#property indicator_buffers 4
#property indicator_color1 Blue
#property indicator_color2 Yellow
#property indicator_color3 Aqua
#property indicator_color4 Red
extern int FastEMA = 13;
extern int SlowEMA = 21;
extern int RSIPeriod = 9;
extern bool alerts = TRUE;
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);
   SetIndexBuffer(1, g_ibuf_96);
   SetIndexStyle(2, DRAW_ARROW);
   SetIndexArrow(2, 217);
   SetIndexBuffer(2, g_ibuf_100);
   SetIndexEmptyValue(2, 0.0);
   SetIndexStyle(3, DRAW_ARROW);
   SetIndexArrow(3, 218);
   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) return (-1);
   if (li_4 0) li_4--;
   int li_0 = Bars - li_4;
   for (int li_28 = 0; li_28 li_0; li_28++) {
     g_ibuf_92[li_28] = iMA(NULL, 0, FastEMA, 0, MODE_EMA, PRICE_CLOSE, li_28);
     g_ibuf_96[li_28] = iMA(NULL, 0, SlowEMA, 0, MODE_EMA, PRICE_CLOSE, li_28);
     irsi_8 = iRSI(NULL, 0, RSIPeriod, PRICE_CLOSE, li_28);
     gd_116 = g_ibuf_92[li_28] - g_ibuf_96[li_28];
     Comment( pipdiffCurrent = + gd_116 +
     if (gd_116 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;
   }
   return (0);
}

这个箭头指标感觉真的很不错啊,有没有高手能帮帮吗啊,感激不尽啊。
因为平时工作忙,没时间看盘,所以希望能加上邮件提醒功能,有好的机会时可以自动发邮件提醒
外汇交易有很大的风险性,本站所有资源均来自网络,请选择使用,如若出现亏损,本站不承担任何责任!


特别提示:本信息由相关企业自行提供,真实性未证实,仅供参考。请谨慎采用,风险自负。


0相关评论
相关行情
推荐行情
点击排行