Forum

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

Accumulating Profit and Loss.

Good afternoon. I need to create a function where I accumulate the profits and losses of each trade and thus determine whether or not my robot continues to operate. Ex: if my profit is $ 100.00 positive or $ 100.00 negative I stop trading that day. If anyone has an example of a role or where I look