Possible error check with contract balance and stop/target orders.

 

Hi,


I have questions regarding the reliability of the orders and tickets.


Suppose I have an open order. Is there any possible way the net contracts could change (i.e. margin call, or unexpected error)? If so, I was planning to implement some kind of error check that would correct such unexpected changes. => when we use order select then orderlots, is the the actual contract number or the contract number that was initially inputted?


My main concern is the contracts changing unexpectedly and the EA not knowing this (which would just mess the entire trading)

Reason: