User Guide
Object History
NetTradeX PC
NetTradeX Android
NetTradeX iOS
NetTradeX Mobile
NetTradeX Advisors
Object History
History object provides access to the information on closed positions.
bool Select(int64 sel,int mode)
Selects positions for future reference to its properties
Parameters:
- int64 sel - ID or a position of a closed deal, depending on selection mode
- int mode - Deal selection mode
History object properties:
int64 ID
- unique deal IDstring Symbol
- deal symboluint16 Direction
- deal directiondouble Volume
- deal volumedatetime OpenTime
- open timefloat OpenPrice
- open pricedatetime CloseTime
- close timefloat ClosePrice
- close pricefloat SL
- stop lossfloat TP
- take profitdouble Swap
- swapdouble Profit
- closed position profit/loss
int Total
Property indicates the number of closed positions saved in the history