To allow a developer to do this...
When closing or reversing
Close any orders in ActiveOrderEntries -
Close any orders in ActiveOrderExits -
Iterate through and cancel or allow to fill
wait for confirmation or errors
Close the position
For minimum margin requirement
to avoid overfills
yes its possible to do that in code but nice for people who dont understand how
Comment