Libraries: CPairedDealInfo Class
double price_open_request = trade.PriceOpenRequest(); double price_close_request = trade.PriceCloseRequest();
Obviously! As the description says, it is about the trades, not about balance.
DEAL_TYPE shows all sorts of deals such as balance, correction etc...
CPairedDealInfo Class clearly shows those in the code
switch(action) { case DEAL_TYPE_BUY : str="buy"; break; case DEAL_TYPE_SELL : str="sell"; break; case DEAL_TYPE_BALANCE : str="balance"; break; case DEAL_TYPE_CREDIT : str="credit"; break; case DEAL_TYPE_CHARGE : str="charge"; break; case DEAL_TYPE_CORRECTION : str="correction"; break; case DEAL_TYPE_BONUS : str="bonus"; break; case DEAL_TYPE_COMMISSION : str="commission"; break; case DEAL_TYPE_COMMISSION_DAILY : str="daily commission"; break; case DEAL_TYPE_COMMISSION_MONTHLY : str="monthly commission"; break; case DEAL_TYPE_COMMISSION_AGENT_DAILY : str="daily agent commission"; break; case DEAL_TYPE_COMMISSION_AGENT_MONTHLY: str="monthly agent commission"; break; case DEAL_TYPE_INTEREST : str="interest rate"; break; case DEAL_TYPE_BUY_CANCELED : str="canceled buy"; break; case DEAL_TYPE_SELL_CANCELED : str="canceled sell"; break; default : str="unknown deal type "+(string)action;
However it's not showing any of them for some reason.
- www.mql5.com
As the description states, the main purpose of this code is for finding information about closed trades, not about other types of deals.
CPairedDealInfo Class:
A class to reconstruct trades (paired in/out deals) from history and sort them by close time.
Author: amrali