extern string Multiplication_info = "0=1,2,3,4.... 1=1,2,3,5,8.... 2=1,2,4,8,16.... 3=1,3,9,27....";
if (LastOrder()&&OrderProfit>=20*pt){Lots=Lots;}else{Lots=lot*Multiplication_Mode;}
int LastOrder(){ for(int i=OrdersHistoryTotal();i>=0;i--){ OrderSelect(i,SELECT_BY_POS,MODE_HISTORY); if(OrderSymbol()==Symbol()&&OrderMagicNumber()==MagicNumber){ return(OrderType()); } } return(2); }
if ((OP_BUY)StopLoss>=OrderOpenPrice+20*pt){Lots=Lots} if ((OP_SELL)StopLoss<=OrderOpenPrice-20*pt){Lots=Lots}
extern string Multiplication_info = "0=1,2,3,4.... 1=1,2,3,5,8.... 2=1,2,4,8,16.... 3=1,3,9,27....";
if (LastOrder()&&OrderProfit>=20*pt){Lots=Lots;}else{Lots=lot*Multiplication_Mode;}
int LastOrder(){ for(int i=OrdersHistoryTotal();i>=0;i--){ OrderSelect(i,SELECT_BY_POS,MODE_HISTORY); if(OrderSymbol()==Symbol()&&OrderMagicNumber()==MagicNumber){ return(OrderType()); } } return(2); }
if(OrdersTotal()<1){ if(sar1>High[0]&&ordestotal1_2(OP_BUYSTOP)==0){ open(OP_BUYSTOP,Lots,sar1,TakeProfit,StopLoss) ; } } if(OrdersTotal()<1){ if(sar1<Low[0]&&ordestotal1_2(OP_SELLSTOP)==0){ open(OP_SELLSTOP,Lots,sar1,TakeProfit,StopLoss) ; } }
if(OrdersTotal()<=1){ if(sar1>High[0]&&ordestotal1_2(OP_BUYSTOP)==0){ open(OP_BUYSTOP,Lots,sar1,TakeProfit,StopLoss) ; } } if(OrdersTotal()<=1){ if(sar1<Low[0]&&ordestotal1_2(OP_SELLSTOP)==0){ open(OP_SELLSTOP,Lots,sar1,TakeProfit,StopLoss) ; } }
if(OrdersTotal()<1){ if(sar1>High[0]&&ordestotal1_2(OP_BUYSTOP)==0){ open(OP_BUYSTOP,Lots,sar1,TakeProfit,StopLoss) ; } } if(OrdersTotal()<1){ if(sar1<Low[0]&&ordestotal1_2(OP_SELLSTOP)==0){ open(OP_SELLSTOP,Lots,sar1,TakeProfit,StopLoss) ; } }
if(OrdersTotal()<=1){ if(sar1>High[0]&&ordestotal1_2(OP_BUYSTOP)==0){ open(OP_BUYSTOP,Lots,sar1,TakeProfit,StopLoss) ; } } if(OrdersTotal()<=1){ if(sar1<Low[0]&&ordestotal1_2(OP_SELLSTOP)==0){ open(OP_SELLSTOP,Lots,sar1,TakeProfit,StopLoss) ; } }
2013.05.29 02:11:24 '6137419': modification of pending order #40694812 buy stop 0.20 GBPUSDm at 1.50911 sl: 0.00000 tp: 0.00000 -> price: 1.50619 sl: 0.00000 tp: 0.00000 failed [Trade timeout]
double pofet_H(){ double pr; for(int p=0;p<OrdersHistoryTotal();p++){ OrderSelect(p,SELECT_BY_POS,MODE_HISTORY); if(OrderMagicNumber()==MagicNumber&&OrderSymbol()==Symbol()){ pr=pr+OrderProfit(); } }return(pr); }
Comment(pofet_H());
المواضيع المتشابهه | ||||
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
الاخ الكريم سفارى الرجاء تعديل اكسبيرت سمير ارمان 2010 | سمير محمد ارمان | منتدى المؤشرات و الاكسبرتات | 20 | 14 - 05 - 2014 01:04 AM |
طلب من الاخ سمير ( اظن انه موجود ) | arabianmatrix | منتدى المؤشرات و الاكسبرتات | 1 | 26 - 11 - 2012 03:48 PM |
طلب كود من الاخ سمير | عبدالله الخليفي | منتدى المؤشرات و الاكسبرتات | 3 | 18 - 11 - 2012 10:42 PM |
مطلوب كود من الاخوة المبرمجين كرما | عبدالله الخليفي | منتدى المؤشرات و الاكسبرتات | 2 | 31 - 10 - 2012 03:42 PM |