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
It will delete running loop trade which causes problem when you have lots of pending orders. it may not delete all pending orders . so better to store the tickts of pending orders and delete them in a separate loop
Alternative code.
Forum on trading, automated trading systems and testing trading strategies
Delete pending orders on deInit
fxsaber, 2023.06.06 17:41
There is no need to create pending orders in code.
The pending has the slight advantage, A) you are closer to the top of the queue (filled quicker), B) there's no round trip network delay (filled quicker.)
Don't worry about it unless you're scalping M1 or trading news.
Humans can't watch the screen 24/7, so they use pending orders; EAs can, so no need for pending orders, have it wait until the market reaches the trigger price and just open an order.