Skip to content

Commit

Permalink
Final fix for orders are opened instead of being closed for both MT4 …
Browse files Browse the repository at this point in the history
…and MT5 (fixes GH-707)
  • Loading branch information
kenorb committed Aug 15, 2023
1 parent b1c1afe commit aca431e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Order.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ class Order : public SymbolInfo {
_request.symbol = orequest.symbol;
_request.type = NegateOrderType(orequest.type);
_request.type_filling = GetOrderFilling(orequest.symbol);
_request.position = oresult.deal;
_request.position = odata.Get<ulong>(ORDER_PROP_TICKET);
_request.price = SymbolInfo::GetCloseOffer(orequest.type);
_request.volume = orequest.volume;
Order::OrderSend(_request, oresult, oresult_check);
Expand Down

0 comments on commit aca431e

Please sign in to comment.