اين نضع ال 26 ؟
انا لم اضع شئ
لقد قمت باضافة الكود كما هو واعتقد نجح بعض الشئ
باقى الاغلاقات .. لابد من تحسينها
Printable View
اخي احمد الشنكو هو الخط الوحيد المتغير في الاشموكو وهو يعتمد علي جسم الشمعة
لو تريد التاكد التام من خروجه لابد من انتضار اغلاق شمعه فوقه
وبالتالي يصبح الكود
كود PHP:Tenkan=iIchimoku(NULL,0,tenkansen,kijunsen,senkospan,MODE_TENKANSEN,shift);
Kijun=iIchimoku(NULL,0,tenkansen,kijunsen,senkospan,MODE_KIJUNSEN,shift);
Senkou=iIchimoku(NULL,0,tenkansen,kijunsen,senkospan,MODE_CHINKOUSPAN,0+kijunsen);
Senkoua=iIchimoku(NULL,0,tenkansen,kijunsen,senkospan,MODE_SENKOUSPANA,shift);
Senkouaplus=iIchimoku(NULL,0,tenkansen,kijunsen,senkospan,MODE_SENKOUSPANA,shift+27);
Senkoub=iIchimoku(NULL,0,tenkansen,kijunsen,senkospan,MODE_SENKOUSPANB,shift);
Senkoubplus=iIchimoku(NULL,0,tenkansen,kijunsen,senkospan,MODE_SENKOUSPANB,shift+27);
Ichimoku_B=iCustom(Symbol(),0,"Ichimoku Trend Magic Histogram with Alert",1,1);
Ichimoku_S=iCustom(Symbol(),0,"Ichimoku Trend Magic Histogram with Alert",0,1);
//-----------------buy&sell ----------------
if ((Close[0]>Tenkan)&&(Close[0]>Kijun)&&(Close[0]>Senkoub)&&(Close[0]>Senkoua)&&(Ichimoku_B==3)&&(Senkou>Senkoubplus&&Senkou>Senkouaplus)){ // ------------------------ 22
if(orderscnt()<MaxTrades){
if(stoploss==0){sl=0;}else{sl=Ask-stoploss*Point;}
if(takeprofit==0){tp=0;}else{tp=Ask+takeprofit*Point;}
OrderSend(Symbol(),OP_BUY,Lots,Ask,2,sl,tp,"My Own Expert",ID,0,Blue);
PlaySound("Alert.wav");
}
}
if ((Close[0]<Tenkan)&&(Close[0]<Kijun)&&(Close[0]<Senkoua)&&(Close[0]<Senkoub)&&(Ichimoku_S==3)&&(Senkou<Senkoubplus&&Senkou<Senkouaplus)){ // ------------------------ 23
if(orderscnt()<MaxTrades){
if(stoploss==0){sl=0;}else{sl=Bid+stoploss*Point;}
if(takeprofit==0){tp=0;}else{tp=Bid-takeprofit*Point;}
OrderSend(Symbol(),OP_SELL,Lots,Bid,2,sl,tp,"My Own Expert",ID,0,Red);
PlaySound("Alert.wav");
}
لا تضع شئ غير فقط اخر كود
انا ابحث عن مؤشر يمنع الاكسبيرت من البيع من القاع والشراء من القمم
ففكرت فى التشبعات البيعيه والشرائية مثل مؤشر rsi
ولكنى انتظر آرائكم
بالتوفيق اخي احمد
دقته تكون علي حسب الفريم الذي تشتغل عليه
+ لو وجدت كود يجمع المقارنه بين الفريمات
مثلا تاخذ مؤشر cci وكان التشبع علي فريمين او 3 فوق بعضهم تخرج من الصفقة
الى الان النتائج تأتى بخسارة بسيطة بسبب كبر الاستوب لوس وهو 50 نقطة فالاكسبيرت يربح وبصفقة واحدة يخسر الكثير
اجعله 15 نقطة فقط ربح
وستوب 15 نقطة
هذه هى الاكواد
بعد اضافة سحابة الاربع ساعات واليومى
لا يفتح الاكسبيرت اى صفقات
كود PHP://+------------------------------------------------------------------+
//| FUNCTION DEFINITIONS Start function |
//+------------------------------------------------------------------+
int start()
{
if (UseHourTrade){
if(!(Hour()>=FromHourTrade&&Hour()<=ToHourTrade)){
Comment("Non-Trading Hours!");
return(0);
}
}
double Tenkan,Kijun,Senkou,Senkoua,Senkoub,Ichimoku_B,Ichimoku_S,Senkouaplus,Senkoubplus,IchimoAA,IchimoBB,IchimoAAA,IchimoBBB;
Tenkan=iIchimoku(NULL,0,tenkansen,kijunsen,senkospan,MODE_TENKANSEN,shift);
Kijun=iIchimoku(NULL,0,tenkansen,kijunsen,senkospan,MODE_KIJUNSEN,shift);
Senkou=iIchimoku(NULL,0,tenkansen,kijunsen,senkospan,MODE_CHINKOUSPAN,0+kijunsen);
Senkoua=iIchimoku(NULL,0,tenkansen,kijunsen,senkospan,MODE_SENKOUSPANA,shift);
Senkouaplus=iIchimoku(NULL,0,tenkansen,kijunsen,senkospan,MODE_SENKOUSPANA,shift+27);
Senkoub=iIchimoku(NULL,0,tenkansen,kijunsen,senkospan,MODE_SENKOUSPANB,shift);
Senkoubplus=iIchimoku(NULL,0,tenkansen,kijunsen,senkospan,MODE_SENKOUSPANB,shift+27);
Ichimoku_B=iCustom(Symbol(),0,"Ichimoku Trend Magic Histogram with Alert",1,1);
Ichimoku_S=iCustom(Symbol(),0,"Ichimoku Trend Magic Histogram with Alert",0,1);
IchimoAA=iIchimoku(NULL,240,9,26,52,MODE_SENKOUSPANA,1);
IchimoBB=iIchimoku(NULL,240,9,26,52,MODE_SENKOUSPANB,1);
IchimoAAA=iIchimoku(NULL,1440,9,26,52,MODE_SENKOUSPANA,1);
IchimoBBB=iIchimoku(NULL,1440,9,26,52,MODE_SENKOUSPANB,1);
double sl,tp;
if(MM) Lots = subLotSize();
//-----------------buy&sell ----------------
if ((Low[0]>Tenkan)&&(Low[0]>Kijun)&&(Low[0]>Senkoub)&&(Low[0]>Senkoua)&&(Ichimoku_B==3)&&(Senkou>Senkoubplus&&Senkou>Senkouaplus)&&(Low[0]>IchimoAA)&&(Low[0]>IchimoBB)&&(Low[0]>IchimoAAA)&&(Low[0]>IchimoBBB)){ // ------------------------ 22
if(orderscnt()<MaxTrades){
if(stoploss==0){sl=0;}else{sl=Ask-stoploss*Point;}
if(takeprofit==0){tp=0;}else{tp=Ask+takeprofit*Point;}
OrderSend(Symbol(),OP_BUY,Lots,Ask,2,sl,tp,"My Own Expert",ID,0,Blue);
PlaySound("Alert.wav");
}
}
if ((High[0]<Tenkan)&&(High[0]<Kijun)&&(High[0]<Senkoua)&&(High[0]<Senkoub)&&(Ichimoku_S==3)&&(Senkou<Senkoubplus&&Senkou<Senkouaplus)&&(High[0]<IchimoAA)&&(High[0]<IchimoBB)&&(High[0]<IchimoAAA)&&(High[0]<IchimoBBB)){ // ------------------------ 23
if(orderscnt()<MaxTrades){
if(stoploss==0){sl=0;}else{sl=Bid+stoploss*Point;}
if(takeprofit==0){tp=0;}else{tp=Bid-takeprofit*Point;}
OrderSend(Symbol(),OP_SELL,Lots,Bid,2,sl,tp,"My Own Expert",ID,0,Red);
PlaySound("Alert.wav");
}
}
//+------------------------------------------------------------------+
//| FUNCTION DEFINITIONS TrailingStop |
//+------------------------------------------------------------------+