MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading Language Documentation

RSI Strike Indicator
RSI Strike
Author: GODZILLA
Custom Indicators in MQL5 for Newbies Custom Indicators in MQL5 for Newbies Screenshot
GBPUSD, H4
Real
Analyzer SignalsAnalyzer Signals Try product
Analyzer Signals
Author: dupter
Subscribe to signal
Gepard 3
72.87%, 2 089.89 USD

HistoryDealsTotal

Returns the number of deal in history. Prior to calling HistoryDealsTotal(), first it is necessary to receive the history of deals and orders using the HistorySelect() or HistorySelectByPosition() function.

int  HistoryDealsTotal();

Return Value

Value of the int type.

Note

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.

See also

HistorySelect(), HistoryDealGetTicket(), Deal Properties


Updated: 2010.08.12