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
Hello MQL5 forum I have a problem with my code. Hope someone can help.
When I run it through the debugger, I can see that the only line that gets executed in the for loop is the first line. The EA then ignores 'if(PositionGetSymbol(i) == SymbolOne){' and the rest of the first loop. It's a similar case for the second loop, where 'if(OrderGetString(ORDER_SYMBOL) == SymbolOne){' and the rest of the loop gets ignored.