How to know the Deal Price of a Market Order

 

Hi everyone! I need to know in what price a market order was executed. Do I need to get the history values of a Deal, or is there an easier way?

Regards,

Roberto 

 
rfaucz:

Hi everyone! I need to know in what price a market order was executed. Do I need to get the history values of a Deal, or is there an easier way?

Regards,

Roberto 

You have the "price" field of MqlTradeResult.
 

So the OrderSend will return the price that was executed on price field?

 

Tks