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
There are 3 possible explanations (that I can currently see):
- this part of the code is never executed
- the order is placed and you didn't notice
- the order fails and you didn't notice the errors in the Experts tab (Journal tab if using Strategy tester)
I suspect the answer is no. 1. The OrderSend is not dependant on bOrders being equal to 0 so the OrderSend will always happen . . . hence I suspect that this part of the code isn't being run.I doubt that is what you meant.
Add print statements around
if openNewOrders doesn't then you know where the problem lies. If it isn't called you also know where the problem lies.