استاذنا .. انا عارف انى بستعجلك
بس معلش استحملنى .. دلوقتى انا عملت اكسبيرت
بناءا على تقاطع مؤشرات عندى .. بس المشكلة كل ما اجى اعمل باك تست يجيبلى ايرور
: custom indicator name must be a string
ده كود الاكسبيرت
[PHP]//+------------------------------------------------------------------+
//| Ahmed Adel.mq4 |
//| Ahmed Adel |
//| Lord_uni@yahoo.com |
//+------------------------------------------------------------------+
#property copyright "Ahmed Adel"
#property link "Lord_uni@yahoo.com"
//--- input parameters
extern int S;
extern int T;
extern int Lots;
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
int P=1;
if (Digits==5 || Digits==3 ) P=10;
if ( iCustom(0,0,14,"DMI",0,2)<iCustom(0,0,14,"DMI",1,2 ) && iCustom(0,0,14,"DMI",0,1)>iCustom(0,0,14,"DMI",1,1 )
&& iCustom(0,0,14,20,"DZ2",0,2)<iCustom(0,0,14,20,"DZ 2",1,2)
&& iCustom(0,0,14,20,"DZ2",0,1)>iCustom(0,0,14,20,"DZ 2",1,1)
<Ask && OrdersTotal()==0)
OrderSend(Symbol() , OP_BUY , Lots , Ask , 3*P , Ask-S*P*Point , Ask+T*P*Point , "" , 101 , 0 , Green);
if ( iCustom(0,0,14,"DMI",0,2)>iCustom(0,0,14,"DMI",1,2 ) && iCustom(0,0,14,"DMI",0,1)<iCustom(0,0,14,"DMI",1,1 )
&& iCustom(0,0,14,20,"DZ2",0,2)>iCustom(0,0,14,20,"DZ 2",2,2)
&& iCustom(0,0,14,20,"DZ2",0,1)<iCustom(0,0,14,20,"DZ 2",2,1)
> Bid && OrdersTotal()==0)
OrderSend(Symbol() , OP_SELL , Lots , Bid , 3*P , Bid+S*P*Point , Bid-T*P*Point , "" , 101 , 0 , Red);
//----
return(0);
}
//+------------------------------------------------------------------+
[/PHP]