Why is filling mode SYMBOL_FILLING_MODE only checked for Symbol() and not for InpSymbol_1, InpSymbol_2, InpSymbol_3, and InpSymbol_4?
Thomas Schwabhaeuser :
Why is filling mode SYMBOL_FILLING_MODE only checked for Symbol() and not for InpSymbol_1, InpSymbol_2, InpSymbol_3, and InpSymbol_4?
It is considered that the Expert Advisor trades the same symbols (symbols that have the same trading parameters).
Good afternoon.
For some reason DoublePositions() does not set positions;
Could you please tell me what the reason is if this branch is still alive.
Regards to the developer.
// condition: if(symbol!=InpSymbol_1 || symbol!=InpSymbol_2 || symbol!=InpSymbol_3 || symbol!=InpSymbol_4) continue; // aka unfolded: if(symbol!="EURUSD" || symbol!="USDCHF" || symbol!="GBPUSD" || symbol!="AUDUSD") continue;
is always executed (it will never reach the code below).
Correct:
if(!(symbol == InpSymbol_1 || symbol == InpSymbol_2 || symbol == InpSymbol_3 || symbol == InpSymbol_4)) continue;
Good afternoon.
It works. Thank you.
Happy New Year.
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
HTH Trader:
Hedge The Hedge Trader EA.
Author: Vladimir Karputov