HistoryPositionInfo – library MetaTrader 5

HistoryPositionInfo - library for MetaTrader 5
The CHistoryPositionInfo class is designed for getting the profit of a position in points based on the trading history. Class Description The CHistoryPositionInfo class allows getting the profit of a position in points based on the trading history. Declaration class CHistoryPositionInfo : public CArrayObj Title #include <HistorySelect_\HistoryPositionInfo.mqh> Class Methods by Groups Initialization Init Initialization using … Read more

HistoryPositionInfo version 2 – library MetaTrader 5

HistoryPositionInfo version 2 - library for MetaTrader 5
Version 1.0: HistoryPositionInfo. New in version 2: The GetProfitInPoints function is still available, but it is recommended to use the new GetProfit function:    bool              GetProfit(double &profit_in_points,                                double &commission,                                double &swap,                                double &profit_in_money); The GetProfit function returns the following information about a position, in addition to the profit in points: commission, swap and profit … Read more