Difference between a deal and a trade?
You can also look here and read about the different functions: https://www.mql5.com/en/docs/trading
Do not confuse orders, deals and positions. Each deal is the result of the execution of an order, each position is the summary result of one or more deals.
Documentation on MQL5: Trade Functions
- www.mql5.com
An order is an instruction given to a broker to buy or sell a financial instrument. There are two main types of orders: Market and Pending. In addition, there are special Take Profit and Stop Loss levels.A deal is the commercial exchange (buying or selling) of a financial security. Buying is executed at the demand price (Ask), and Sell is...
Thanks Marco!
So a deal is a trade, and what is the difference between the returned results of STAT_DEALS and STAT_TRADES?
And why the profitable/short/long statistics are only available for the trades? I am trying to understand, an example would be nice.
nvm, the trade only counts the openings and the deal also counts the closings, so deal = 2*trade
Hi
What is the difference between a deal and a trade?
https://www.mql5.com/en/docs/constants/environment_state/statistics#enum_statistics