Hi, I don't want to say it's a bug but... Below code is giving me implicit conversion warning on compilation even though I don't think there is any conversion happening there... Please correct me if I'm wrong.
- How to not trade during SWAP
- Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
- implicit enum conversion in Ternary Operator!!!
salvatoreone: I don't think there is any conversion happening there... Please correct me if I'm wrong.
WRONG_VALUE is an int, not an ENUM_ORDER_TYPE, so you do have a conversion. Try ENUM_ORDER_TYPE(WRONG_VALUE)
William Roeder #:
Thank you, that was it...
WRONG_VALUE is an int, not an ENUM_ORDER_TYPE, so you do have a conversion. Try ENUM_ORDER_TYPE(WRONG_VALUE)

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