Current location - Trademark Inquiry Complete Network - Futures platform - MT4 OrderClose () prompts error 138.
MT4 OrderClose () prompts error 138.
The OrderClose () function is used to close positions. OrderClose(OrderTicket(),OrderLots(),Bid,3,White);

The first parameter is the order number, the second parameter is the number of lots, and the third parameter is the purchase price, which is used to sell positions, because there is a price difference between traders' buying and selling. If the warehouse is sold at the selling price, it will exceed the bid-ask price difference. So try to change the asking price.