EA will not close orders

 

The profit on all trades (net) exceeds the parameter to close.  However, the trades will not close.

Please, a little help.

Thank you.. 

Files:
 
dukeb:

The profit on all trades (net) exceeds the parameter to close.  However, the trades will not close.

Please, a little help.

Thank you.. 

You must count down in your loop,  not up,  read this:  Loops and Closing or Deleting Orders

Reason: