Download MetaTrader 5

How to know the Deal Price of a Market Order

To add comments, please log in or register
Roberto Faucz
126
Roberto Faucz  

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 

Alain Verleyen
Moderator
31204
Alain Verleyen  
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.
Roberto Faucz
126
Roberto Faucz  

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

 

Tks 

To add comments, please log in or register