Alert Line

日期:2019-01-12
浏览:
383
//+------------------------------------------------------------------+
//| 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);
}
//+------------------------------------------------------------------+
复制代码
外汇交易有很大的风险性,本站所有资源均来自网络,请选择使用,如若出现亏损,本站不承担任何责任!
特别提示:本信息由相关企业自行提供,真实性未证实,仅供参考。请谨慎采用,风险自负。