客服热线:18391752892

{求助}提醒不断重复

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

您需要 登录 才可以下载或查看,没有帐号?注册
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 DeepPink
#property indicator_color2 DodgerBlue
double g_ibuf_76[];
double g_ibuf_80[];
extern bool Voicealert = FALSE;
int init() {
   ObjectCreate( June , OBJ_LABEL, 0, 0, 0);
   ObjectSet( June , OBJPROP_CORNER, 4);
   ObjectSet( June , OBJPROP_XDISTANCE, 0);
   ObjectSet( June , OBJPROP_YDISTANCE, 15);
   ObjectSet( June , OBJPROP_BACK, TRUE);
   ObjectSetText( June ,       , 14, Verdana , Lime);
   SetIndexStyle(0, DRAW_ARROW, EMPTY, 2);
   SetIndexArrow(0, 104);
   SetIndexBuffer(0, g_ibuf_76);
   SetIndexStyle(1, DRAW_ARROW, EMPTY, 2);
   SetIndexArrow(1, 104);
   SetIndexBuffer(1, g_ibuf_80);
   return (0);
}
int deinit() {
   return (0);
}
int start() {
   int li_0;
   double l_ima_4;
   double l_ima_12;
   double l_ima_20;
   double l_ima_28;
   double l_ima_36;
   double l_ima_44;
   double l_ima_52;
   double l_ima_60;
   double ld_68;
   double ld_76;
   int li_84 = IndicatorCounted();
   if (li_84 0) return (-1);
   if (li_84 0) li_84--;
   int li_88 = Bars - li_84;
   for (int li_92 = 0; li_92 = li_88; li_92++) {
     li_0 = li_92;
     ld_68 = 0;
     ld_76 = 0;
     for (li_0 = li_92; li_0 = li_92 + 9; li_0++) ld_76 += MathAbs(High[li_0] - Low[li_0]);
     ld_68 = ld_76 / 10.0;
     l_ima_4 = iMA(NULL, 0, 14, 0, MODE_LWMA, PRICE_MEDIAN, li_92);
     l_ima_12 = iMA(NULL, 0, 55, 0, MODE_LWMA, PRICE_MEDIAN, li_92);
     l_ima_20 = iMA(NULL, 0, 1, 0, MODE_LWMA, PRICE_CLOSE, li_92);
     l_ima_36 = iMA(NULL, 0, 3, 0, MODE_LWMA, PRICE_CLOSE, li_92 + 1);
     l_ima_52 = iMA(NULL, 0, 3, 0, MODE_LWMA, PRICE_CLOSE, li_92 - 1);
     l_ima_28 = iMA(NULL, 0, 5, 0, MODE_LWMA, PRICE_OPEN, li_92);
     l_ima_44 = iMA(NULL, 0, 5, 0, MODE_LWMA, PRICE_OPEN, li_92 + 1);
     l_ima_60 = iMA(NULL, 0, 5, 0, MODE_LWMA, PRICE_OPEN, li_92 - 1);
     if ((High[li_92] + Low[li_92]) / 2.0 l_ima_12 (High[li_92] + Low[li_92]) / 2.0 l_ima_4 l_ima_20 l_ima_28 l_ima_36 l_ima_44 l_ima_52 l_ima_60) {
       g_ibuf_76[li_92] = Low[li_92] - ld_68 / 2.0;
       if (Voicealert == TRUE) alert( Moving Average has crossed up
     } else {
       if ((High[li_92] + Low[li_92]) / 2.0 l_ima_12 (High[li_92] + Low[li_92]) / 2.0 l_ima_4 l_ima_20 l_ima_28 l_ima_36 l_ima_44 l_ima_52 l_ima_60) {
         g_ibuf_80[li_92] = High[li_92] + ld_68 / 2.0;
         if (Voicealert == TRUE) alert( Moving Average has crossed down
       }
     }
   }
   return (0);
}
提醒按钮开了就无限提醒,为什么这样啊

外汇交易有很大的风险性,本站所有资源均来自网络,请选择使用,如若出现亏损,本站不承担任何责任!


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


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