Ошибка 134

 

пишет такое

test on EURUSD,H1
 2016.04.04 16:00:00  Tester: not enough money for buy 100.00 EURUSD at 1.13992 sl: 0.00000 tp: 0.00000 [2016.04.04 16:00]
 2016.04.04 16:00:00  Tester: PrevBalance: 10000.00, PrevPL: 0.00, PrevEquity 10000.00, PrevMargin: 0.00, NewMargin: 113983, FreeMargin: -103983.00
 2016.04.04 16:00:00  2222 EURUSD,H1: OrderSend error 134
 2016.04.04 16:00:00  Tester: not enough money for buy 100.00 EURUSD at 1.13992 sl: 0.00000 tp: 0.00000 [2016.04.04 16:00]
 2016.04.04 16:00:00  Tester: PrevBalance: 10000.00, PrevPL: 0.00, PrevEquity 10000.00, PrevMargin: 0.00, NewMargin: 113983, FreeMargin: -103983.00
 2016.04.04 16:00:00  2222 EURUSD,H1: OrderSend error 134
 2016.04.04 16:00:00  Tester: not enough money for buy 100.00 EURUSD at 1.13992 sl: 0.00000 tp: 0.00000 [2016.04.04 16:00]
 2016.04.04 16:00:00  Tester: PrevBalance: 10000.00, PrevPL: 0.00, PrevEquity 10000.00, PrevMargin: 0.00, NewMargin: 113983, FreeMargin: -103983.00
 2016.04.04 16:00:00  2222 EURUSD,H1: OrderSend error 134
0 11:52:38.864 2016.04.04 16:00:00  2222 EURUSD,H1: Alert: Ошибка открытия: Недостаточно денег для совершения операции
 2016.04.04 16:00:00  Tester: not enough money for buy 100.00 EURUSD at 1.13991 sl: 0.00000 tp: 0.00000 [2016.04.04 16:00]
 2016.04.04 16:00:00  Tester: PrevBalance: 10000.00, PrevPL: 0.00, PrevEquity 10000.00, PrevMargin: 0.00, NewMargin: 113982, FreeMargin: -103982.00
 2016.04.04 16:00:00  2222 EURUSD,H1: OrderSend error 134
 2016.04.04 16:00:00  Tester: not enough money for buy 100.00 EURUSD at 1.13991 sl: 0.00000 tp: 0.00000 [2016.04.04 16:00]
 2016.04.04 16:00:00  Tester: PrevBalance: 10000.00, PrevPL: 0.00, PrevEquity 10000.00, PrevMargin: 0.00, NewMargin: 113982, FreeMargin: -103982.00
 2016.04.04 16:00:00  2222 EURUSD,H1: OrderSend error 134
 2016.04.04 16:00:00  Tester: not enough money for buy 100.00 EURUSD at 1.13991 sl: 0.00000 tp: 0.00000 [2016.04.04 16:00]
 2016.04.04 16:00:00  Tester: PrevBalance: 10000.00, PrevPL: 0.00, PrevEquity 10000.00, PrevMargin: 0.00, NewMargin: 113982, FreeMargin: -103982.00
 2016.04.04 16:00:00  2222 EURUSD,H1: OrderSend error 134
0 11:52:38.864 2016.04.04 16:00:00  2222 EURUSD,H1: Alert: Ошибка открытия: Недостаточно денег для совершения операции
 2016.04.04 16:00:01  Tester: not enough money for buy 100.00 EURUSD at 1.13992 sl: 0.00000 tp: 0.00000 [2016.04.04 16:00]
there are no trading operations


Добавил код


 bool CheckMoneyForTrade(string symb, double lots,int type)
  {
   double free_margin=AccountFreeMarginCheck(symb,type,lots);
   //-- если денег не хватает
   if(free_margin<0)
     {
      string oper=(type==OP_BUY)? "Buy":"Sell";
      Print("Not enough money for ", oper," ",lots, " ", symb, " Error code=",GetLastError());
      return(false);
     }
   //-- проверка прошла успешно
   return(true);
   }


и та же проблема.
Что еще может быть?
 
Nestor Bolshakov:

пишет такое

100 лотов эт много))

error 134 (Недостаточно денег для совершения операции)