INVALID REQUEST

 
The order is positioned with takeprofit and stoploss. But when the price hits both take and stop, it's executed but the message appears in the image below in the diary. I'm testing on demo account.
 if(latest_price.last > maCerto && (highCerto - maCerto) == Pontos && LastBar != ThisBar 
      && volumeVal[0] >= Volume && trade_money && trade_time && PositionsTotal() == 0)
      {
         request.action = TRADE_ACTION_PENDING;
         request.type = ORDER_TYPE_SELL_LIMIT;
         request.symbol = _Symbol;
         request.volume = Contrato;
         request.type_filling = ORDER_FILLING_FOK;
         request.price = (maCerto + Pontos);
         request.sl = (maCerto + Pontos) + StopLoss;
         request.tp = (maCerto + Pontos) - TakeProfit;
         request.type_time = ORDER_TIME_DAY;
         request.deviation = 0;
         request.magic = MagicNumber;
         
         OrderSend(request,result);



 
Solved
Reason: