diff --git a/Order.mqh b/Order.mqh index 1db95c954..3ea5c20cb 100644 --- a/Order.mqh +++ b/Order.mqh @@ -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(ORDER_PROP_TICKET); _request.price = SymbolInfo::GetCloseOffer(orequest.type); _request.volume = orequest.volume; Order::OrderSend(_request, oresult, oresult_check);