what does it say in the Experts log for the reason of closing?
I run the pending orders on the new EA you just posted. As soon as the pending orders is triggered it subsequently close it. Tried to adjust the dftpendingdistance but to no avail. Appreciate your help.