لازال عندي نفس المشكل
الصفقات تفتح فقط على زوج واحد
هل يمكن أن تكون المشكلة من كثرة الأزواج
أو لأني أستخدم إكسبرت آخر على نفس MT4
أرجو المساعدة 
كود:
//+------------------------------------------------------------------+
//| boujie.mq4 |
//| Copyright 2015, Hamza Corp. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2015, Hamza Corp."
#property link "https://www.mql5.com"
#property version "1.00"
#property strict
input string s1 = "--------------Trend--------------";
extern int TMperiod = 200;
extern int TMshift = 0;
extern int TMmethod = 0;
extern int TMapplied = 0;
input string s2 = "---------Money Management--------------";
input int TP = 100 ;
input int SL = 100 ;
input double lots = 0.1 ;
input int Magic = 11111 ;
double t ;
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
//---
double ticksize = MarketInfo (Symbol(),MODE_TICKSIZE);
if ( ticksize == 0.00001 || 0.001 )
t = ticksize * 10;
else
t = ticksize ;
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Expert deinitialization function |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
//---
}
//+------------------------------------------------------------------+
//| Expert tick function |
//+------------------------------------------------------------------+
void OnTick()
{
//---
if(Close[1]>High[2]){
if(orderscnt()==0)
bool Buy = OrderSend(NULL,OP_BUY,lots,Ask,3,Ask-(SL*t),Ask+(TP*t),NULL,Magic,0,Blue);
}
if(Close[1]<Low[2]){
if(orderscnt()==0)
bool n=OrderSend(Symbol(),OP_SELL,lots,Bid,3,Bid+(SL*t),Bid-(TP*t),NULL,Magic,0,Red);
}
}
//+------------------------------------------------------------------+
int orderscnt(){
int cnt=0;
for(int i =0;i<=OrdersTotal();i++){
if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)){
if(OrderSymbol()==Symbol()&&OrderMagicNumber()==Magic){
cnt++;
}
}
}
return(cnt);
}