او الرجاء اصلاح الكود هذا
//+------------------------------------------------------------------+
//| High-Low.mq4 |
//| Copyright © 2008, FX Confidential |
//|
http://www.fxconfidential.com |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2008, FX Confidential"
#property link "http://www.fxconfidential.com"
int date;
double plusHaut;
double plusBas;
bool reperage=false;
double taks;
double takb;
double SL;
int magic = 12345678;
extern double lots = 0.1;
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
plusHaut = iHigh(NULL, PERIOD_D1, 1);
plusBas = iLow(NULL, PERIOD_D1, 1);
SL = (((plusHaut - plusBas)/2)+ plusBas);
taks = ((((plusHaut - plusBas))* (3/8))- plusBas);
takb = ((((plusHaut - plusBas))* (3/8))+ plusHaut);
OrderSend (Symbol(), OP_BUYSTOP, lots, plusHaut, 3, SL, takb, "Daily-EA",magic, 0, Blue);
OrderSend (Symbol(), OP_SELLSTOP, lots, plusBas, 3, SL, taks, "Daily-EA",magic, 0, Red);
}
return(0);
}
//+------------------------------------------------------------------+