I recently opened a live account for the first time. And between the live and demo account, the EA is placing the orders the same.
But when it comes to Closing the trade, only the demo account seems to close where it is suppose to, and my live account is not closing (still testing but definitely not closing where it is suppose to).
I am using OrderModify() to modify the SL value to close. The code is suppose to execute OrderModify() when certain conditioned are met, and the conditions for close trade are met in live account. But in the Journal section there is no trace of any OrderModify(). No errors, Nothing.
I am wondering if my broker has restrictions on trailing stops or the OrderModify() function on just live accounts. Is that a possibility?
The VPS is not the fastest but since the demo account is closing fine, I think it is sufficiently fast enough.
Any leads that can help me figure this is out, greatly appreciated! Thanks.
You could try to print the return value of ordermodify or print the last error just after the modification to see what is the problem.