Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Youssef Haddada: Hi I used mt5.history_orders_get(f,t) and mt5.history_deals_get(f,t) but I got an issue understanding what are those columns :
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)

Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Order Properties
- www.mql5.com
Order Properties - Trade Constants - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
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)

Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Deal Properties
- www.mql5.com
Deal Properties - Trade Constants - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Hi
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?
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?

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
['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 ?