Close Price

 

Hello everyone


I want to know at what price has closed an order.
There is HistoryDealGetDouble (ticket, DEAL_PROFIT) which provided the profit, HistoryDealGetDouble (ticket, DEAL_PRICE) which provided the opening price but surprisingly, I do not see anything for the closing price.

Have I missed something or should I calculate it myself from that?


Thank you for your lights
 

Hi,

Every closed position has two deals: IN and OUT, just read the OUT deal and get the DEAL_PRICE

 

Thank you Edwin, you simplify my life.

In my language the translation of the help is really bumpy, and this is very confusing.

Reading it again now that you gave me the solution, it makes me laugh. (Yellow)

 
stanislass:

Thank you Edwin, you simplify my life.

In my language the translation of the help is really bumpy, and this is very confusing.

Reading it again now that you gave me the solution, it makes me laugh. (Yellow)

You are perfectly right, in general French translation is just laughable (documentation and platform GUI), I never used it.
Reason: