عرض مشاركة واحدة
قديم 28-07-2015, 02:51 PM   المشاركة رقم: 2
الكاتب
yassin94
عضو جديد

البيانات
تاريخ التسجيل: Sep 2012
رقم العضوية: 11523
العمر: 30
المشاركات: 50
بمعدل : 0.01 يوميا

الإتصالات
الحالة:
yassin94 غير متواجد حالياً
وسائل الإتصال:

كاتب الموضوع : yassin94 المنتدى : منتدى المؤشرات و الاكسبيرتات
افتراضي رد: الرجاء المساعدة استراتيجية سهلة

او الرجاء اصلاح الكود هذا
//+------------------------------------------------------------------+
//| 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);
}
//+------------------------------------------------------------------+



عرض البوم صور yassin94  
رد مع اقتباس
  #2  
قديم 28-07-2015, 02:51 PM
yassin94 yassin94 غير متواجد حالياً
عضو جديد
افتراضي رد: الرجاء المساعدة استراتيجية سهلة

او الرجاء اصلاح الكود هذا
//+------------------------------------------------------------------+
//| 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);
}
//+------------------------------------------------------------------+




رد مع اقتباس