اطلب من اخواني المبرمجين اضافة تخطي في هذا الكود بحيث ان اذا تحقق شرط وجود صفقة GBPAUD يتخطى الحلقة الي بعدها ويكمل وليس الوقف ولارجوع تعبت اعدل فيه
كود:for(int i=0;i<OrdersTotal();i++){
OrderSelect(i, SELECT_BY_POS, MODE_TRADES);
if ("GBPAUD"==OrderSymbol())
return;}
{
if (GAS == "Sell" ){
if(StopLoss==0){SL=0;}else{SL=MarketInfo ("GBPAUD", MODE_BID)+StopLoss*Point;}
if(TakeProfit==0){TP=0;}else{TP=MarketInfo ("GBPAUD", MODE_BID)-TakeProfit*Point;}
int ticket = OrderSend("GBPAUD",OP_SELL,Lots,MarketInfo ("GBPAUD", MODE_BID),3,SL,TP,"Emad Karali",MagicNumber,0,Red);
PlaySound("Alert.wav");}
if (GAB == "Buy") {
if(StopLoss==0){SL=0;}else{SL=MarketInfo ("GBPAUD", MODE_ASK)-StopLoss*Point;}
if(TakeProfit==0){TP=0;}else{TP=MarketInfo ("GBPAUD", MODE_ASK)+TakeProfit*Point;}
int ticket = OrderSend("GBPAUD",OP_BUY,Lots,MarketInfo ("GBPAUD", MODE_ASK),3,SL,TP,"Emad Karali",MagicNumber,0,Blue);
PlaySound("Alert.wav");}
}