Try
if ( MathAbs(High[0]-Low[0])>=target*Point)
if ( MathAbs(High[0]-Low[0])>=target*Point)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
programe.
#property copyright "mpfx"
#property link "http://www.stideas.com"
extern int target = 30;
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
static int flag;
if (flag ==0)
if ( MathAbs(Close[0]-Open[0])>=target/1000 )
{
Alert(" long K reached " );
//PlaySound("Alert.wav ");
Print(" Target Reached ",Close[0]);
flag = 1 ;
}
if ( MathAbs( Close[0]-Open[0])<target/1000 )
{flag = 0;}
}