Python & MT5
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
You may need to reference the MQL5 documentation for an easier understanding ...
Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Order Properties
Returns the requested property of an order in the history (double)
Returns the requested property of an order in the history (datetime or int)
Returns the requested property of an order in the history (string)
- www.mql5.com
Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Deal Properties
Returns the requested property of a deal in the history (double)
Returns the requested property of a deal in the history (datetime or int)
Returns the requested property of a deal in the history (string)
- www.mql5.com
I am trying to get the hisotry of orders, positions, and deals but it returns nothing while I have had some closed positions. Can I ask what version of mt5 do you use or don't you have that problem?
['ticket', 'time_setup', 'time_setup_msc', 'time_done', 'time_done_msc', 'time_expiration', 'type', 'type_time', 'type_filling', 'state', 'magic', 'position_id', 'position_by_id', 'reason', 'volume_initial', 'volume_current', 'price_open', 'sl', 'tp', 'price_current', 'price_stoplimit', 'symbol', 'comment', 'external_id'] for orders History and don't understand what 'type', 'type_time', 'type_filling', 'state', 'reason'columns stand for
for deals history History
and don't understand what 'type', 'entry', 'reason'columns stand for, can someone help me with that ?