vdemydiuk / mtapi

MetaTrader API (terminal bridge)
http://mtapi4.net/
MIT License
511 stars 276 forks source link

CloseTime is not available in OrderClose #241

Open wasimjee opened 3 years ago

wasimjee commented 3 years ago

We are unable to get the Close time of a trade when the trade is closed

image

vdemydiuk commented 3 years ago

What source have you defined during call function GetOrder (GetOrders) : MODE_TRADES or MODE_HISTORY ? All closed orders must be loaded by MODE_HISTORY.

wasimjee commented 3 years ago

Using it in Trade Monitor, where we get the data through

AvailabilityOrdersEventArgs e

its was for close trade

e.Closed

vdemydiuk commented 3 years ago

ok, I will check related source code.

wasimjee commented 3 years ago

Hi, any updates