I've got a problem in which my Ordersend function returns a value of -1 whenever I get a requote from my broker. I can only see a few ways to solve this problem:
1. Increase my acceptable slippage (currently set at 3)
2. Set the EA to send a E-mail to my cell phone whenever Ordersend returns a value of -1, and then examine the market and make my own decision.
3. Use the RefreshRates() function with a time delay and then resend the OrderSend commant (if still applicable).
4. Simply skip the order and let the EA run as if nothing happened.
I wanted to throw this out there to see if there were any other suggestion of what might work when requotes are sent back to the EA. So how do the rest of you deal with this?
1. Increase my acceptable slippage (currently set at 3)
2. Set the EA to send a E-mail to my cell phone whenever Ordersend returns a value of -1, and then examine the market and make my own decision.
3. Use the RefreshRates() function with a time delay and then resend the OrderSend commant (if still applicable).
4. Simply skip the order and let the EA run as if nothing happened.
I wanted to throw this out there to see if there were any other suggestion of what might work when requotes are sent back to the EA. So how do the rest of you deal with this?