//+------------------------------------------------------------------+
//| |
//| Copyright © 2009, --Id-- |
//| http://www.metaquotes.net/ |
//+------------------------------------------------------------------+
#property copyright "--Id--"
extern string AlarmSound = "alert.wav";
extern double LevelValue = 20;
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
int start()
{
if (
(iCustom(NULL, Period(),"ULTRA_TREND",0,0) > LevelValue)
&& (iCustom(NULL, Period(),"ULTRA_TREND",0,1) < LevelValue)
)
PlaySound(AlarmSound);
if (
(iCustom(NULL, Period(),"ULTRA_TREND",1,0) > LevelValue)
&& (iCustom(NULL, Period(),"ULTRA_TREND",1,1) < LevelValue)
)
PlaySound(AlarmSound);
return(0);
}
Comments