Difference between a deal and a trade?

 

Hi

What is the difference between a deal and a trade?

https://www.mql5.com/en/docs/constants/environment_state/statistics#enum_statistics

Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Testing Statistics
Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Testing Statistics
  • www.mql5.com
Maximum balance drawdown as a percentage. In the process of trading, a balance may have numerous drawdowns, for each of which the relative drawdown value in percents is calculated. The greatest value is returned Maximum equity...
 

You can also look here and read about the different functions: https://www.mql5.com/en/docs/trading

Do not confuse ordersdeals 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
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
Reason: