Erro Simples: Trade Deal

 

Pessoal, bom dia

Poderiam me ajudar, por gentileza, no erro abaixo?

         requisicao.action       = TRADE_ACTION_DEAL;
         requisicao.symbol       = ativo;
         requisicao.volume       = numContrato;
         //if(StringSubstr(ativo,0,3)!="WIN")
         //{
         requisicao.price        = SymbolInfoDouble(ativo,SYMBOL_ASK);
         if(tipo==ORDER_TYPE_SELL)
         requisicao.price        = SymbolInfoDouble(ativo,SYMBOL_BID);   
         //   }
         requisicao.type         = tipo;  
         if(StringSubstr(ativo,0,3)=="WIN")
         requisicao.type_filling = ORDER_FILLING_RETURN;
         else
         requisicao.type_filling = ORDER_FILLING_IOC;

Estou operando com a corretora XP e também já fiz o teste retirando a linha da "requisicao.price" e também não funcionou.

No Metatrader está aparecendo o seguinte erro:

2018.05.07 09:40:51.498 Trades 'my_number': rejected exchange sell 1.00 WINM18 at market (Account:'my_number' Exchange:'XBMF)

Alguém pode me ajudar?

 

Estou com um problema semelhante. 

Mensagem "Account: xxxx" Exchange:"XBX" send to