国内新闻
Alert Line
2019-01-12 02:45  浏览:387

//+------------------------------------------------------------------+
//|                                    alertLine.mq4 |
//|                      Copyright ?2010, Vladimir Hlystov |
//|                           http://cmillion.narod.ru |
//+------------------------------------------------------------------+
#property copyright Copyright ?2010, Vladimir Hlystov
#property link      http://cmillion.narod.ru
#property indicator_chart_window
//+------------------------------------------------------------------+
int start()
{
   double Support,Rezistans;
   string txt;
   if (ObjectFind( Support )==-1) txt= No line Support n
   else
   {
     Support = ObjectGetValueByShift( Support , 0);
     if (Bid Support)
     {
       alert( Price below the support line
       txt=StringConcatenate(txt, Price below the support line n
     }
     else txt=StringConcatenate(txt, Distance to the line of support ,DoubleToStr((Bid-Support)/Point,0), n
   }
   if (ObjectFind( Rezistans )==-1) txt=StringConcatenate(txt, No line Rezistans n
   else
   {
     Rezistans = ObjectGetValueByShift( Rezistans , 0);
     if (Ask Rezistans)
     {
       alert( Price above the resistance line
       txt=StringConcatenate(txt, Price above the resistance line
     }
     else txt=StringConcatenate(txt, Distance to the line of support ,DoubleToStr((Rezistans-Ask)/Point,0));
   }
   Comment(txt);
   return(0);
}
//+------------------------------------------------------------------+
复制代码

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