I am trying to accomplish a partial close of an order. After finding the order I use this to close some of it.
if (OrderClose(_t,0.01,Ask,5,CLR_NONE))tsNumRetries=0;
This is on an OP_SELL order. It shows the close in the "results" area of the back tester and it shows the proper amount closed. However, that order seems to disappear (the order# never takes a profit or gets stopped out). Plus, the journal shows an Error 138. I have tried the RefreshRates() and the error still shows.
I suspect this may be a problem with this procedure being tested. If anyone has some thoughts I would sure like to hear them. Thank You
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Howdy,
I am trying to accomplish a partial close of an order. After finding the order I use this to close some of it.
if (OrderClose(_t,0.01,Ask,5,CLR_NONE))tsNumRetries=0;
This is on an OP_SELL order. It shows the close in the "results" area of the back tester and it shows the proper amount closed. However, that order seems to disappear (the order# never takes a profit or gets stopped out). Plus, the journal shows an Error 138. I have tried the RefreshRates() and the error still shows.
I suspect this may be a problem with this procedure being tested. If anyone has some thoughts I would sure like to hear them. Thank You
Deane