Information about a closed trade

 
Does anyone know how to get information from the order that was just closed, I need to get the comment of this order, because depending on the comment I will make some
operation.
 
abimael Silva:
Does anyone know how to get information from the order that was just closed, I need to get the comment of this order, because depending on the comment I will make some
operation.

https://www.mql5.com/en/docs/trading/historyselect

Documentation on MQL5: Trade Functions / HistorySelect
Documentation on MQL5: Trade Functions / HistorySelect
  • www.mql5.com
HistorySelect - Trade Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
abimael Silva: I need to get the comment of this order,

Not a good idea to use comments, brokers can change comments, including complete replacement.