Libraries: HistoryPositionInfo version 2

 

HistoryPositionInfo version 2:

Returns the profit of a position in points, as well as commission, swaps and profit in money based on the trading history.

Author: Vladimir Karputov

 

There is a plan to write version 3 in which there will be methods of the usual CPositionInfo class, plus a couple of new ones: something like TimeClose - time of position closing, PriceClose - closing price.

 

Thank you.

TimeClose - much needed. I'll be waiting.

 

Hello Vladimir!

Could you please tell me how to use Magik in this version? I need it very much. Thank you in advance

P.S. I am just learning MQL5, it is difficult to code it myself.

 
Nice library. I should take a closer look. I don't understand why trade classes are a bit unfinished in SB, that it is impossible to do without writing such libraries. Unlike, say, classes of data collections.
 
MaxPick:

Hello Vladimir!

Could you please tell me how to use Magik in this version? I need it very much. Thanks in advance

P.S. I am just learning MQL5, it is difficult to code it myself.

Such functionality is not provided.

 
Hello, can we change the version 1 with this? Is it the last? With this vertsion I cannot to find magic, PositionTotal, etc... !?