Libraries: CHistoryPositionInfo Class

 

CHistoryPositionInfo Class:

A class for easy access to the closed position properties.

Author: amrali

 

I find it can't be use in Netting mode, it will lose some close position if the position is not close at the same time.

It will be lost by the code "hist_position.PositionsTotal();" when I use it.

Am I right?

 
This library is very helpful! Thank you very much
 
Thank you for sharing this code. Very helpful!
 

Hi,

Very useful routine.

However I get the following ERROR from time to time.

CHistoryPositionInfo::HistoryPositionCheck > Error: the selected position is still open.

Trying to find under what circumstances this occurs and how to prevent this happening.

 
Wow great! I had another but incomplete because missed PositionTotal, magic, etc…

👋👌