Hi Kiwi
I find your code very difficult to read probably because I only like the way I write mine but it looks like you are continuously doing ordersends after errors and that is a recipe for disaster. Try putting some pauses in the loops. Also make sure your code isn't returning and then immediately coming back in on another tick and generating another order too quickly.
Hope this helps
Hi Kiwi
I find your code very difficult to read probably because I only like the way I write mine but it looks like you are continuously doing ordersends after errors and that is a recipe for disaster. Try putting some pauses in the loops. Also make sure your code isn't returning and then immediately coming back in on another tick and generating another order too quickly.
Hope this helps
Thanks for the reply.
As I not to good at this coding lark cpould you please show me and example of what you are thinking.
Regards
Kiwi
Hi Kiwi
Some good info here https://www.mql5.com/en/articles/1412 especially the IsTradeAllowed(); stuff. After reading this you will be an expert and move on to the next error to solve.
Hi Kiwi
Some good info here https://www.mql5.com/en/articles/1412 especially the IsTradeAllowed(); stuff. After reading this you will be an expert and move on to the next error to solve.
Thanks but I have been through that several times and been trying to impliment that into the EA bu its not going well and I am still getting the error.
Regards
Kiwi
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have been trying to use 2 of the solution on this forum but it's not working could someone please have a look at it and let me know where I have gone wrong.
Regards
Kiwi