You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Pending orders were meant for long-term or manual trading, not for scalping nor necessarily for automated trading.
Why is it wrong? For high speed trading or scalping where such tight create/delete cycles are used, pending orders create an unnecessary network load and brokers discourage it.
Are you stating that the tester fails to remove the order irrespective of how far away it is from the current price, even if it is way beyond the freeze level?
EDIT: I see now that I misunderstood the issue. I see that the bug was confirmed. My apologies!
Hi Stanislav, it does prevent automatic validation as the validation will test on freeze level handling and therefore will return on the ‘invalid stops’ error
Until a fix in the automatic validator is done, your only workaround is to check in the code if EA is running under a tester and do not remove limit orders if freeze level is nonzero (instead you can assign an expiration time, for example).
With such narrow thin order management placement, in real life trading during moments of high volatility and slippage, the same issue will also occur, irrespective of now it being only a tester issue.
Pending orders should not be used this way, and many brokers will actually issue a warning when they detect too many create/cancel operations on an account, and may even block you.
Instead, monitor the condition in real-time and use market orders, not pending orders. Pending orders were meant for long-term or manual trading, not for scalping nor necessarily for automated trading.
You are using the wrong "tool" for the type of strategy you are want to implement.
That's not the problem.
A discussion about the relevance of using pending orders or not, is off-topic.