You are free to choose.
Personally, I think it's better to avoid multiple ternary operators (linked to each other).
Instead of multiple "if-elseif-elseif-..." I can suggest you use a switch (if we are talking about integer types). The switch operator is much faster than multiple "if-elseif-elseif-..."

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,
Instead of using classic if-else or nested if-else i am using like this for small conditions
This working fine without any issue in MQL4 EA. can i continue to use like this or should i change all this to classic if-else.