Finding - The selected position is still open.

 

how to 'track' error

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


Just don't know how to figure out where this is occurring and how to fix the problem.

Should I  be 'closing' something, somewhere


Any pointers appreciated

 

Still an unsolved problem for me. 

Occurs in Library but doesn't seem to give an ERROR with an error code (which I could find in my logs).  I just get a message in the Terminal window and refers to my EA (which is very long).

This is where the error is generated - but doesn't really help me


   int deals=HistoryDealsTotal();
   if(deals<2)
     {
      if(log_level>0)
         Print(__FUNCTION__+" > Error: the selected position is still open.");
      return(false);
     }

Any help appreciated

Reason: