Well, I'm not sure whether actually casting a string from an enumeration through the cast operator is the preferred MQL5 way of doing things.
Though it's not so orthogonal, use: IntegerToString() instead.
Thanks, Plymo, for your reply.
If it will be clear that the spec was changed, I will use IntegerToString().
Micky:
Thank you for your message. Buh fixed. Please wait for updates.I made a simple test script.
And results are like this:
2010.09.10 00:19:00 testEnum (EURUSD,M5) 3 < correct.
2010.09.10 00:19:00 testEnum (EURUSD,M5) 260830442608302026082984 < incorrect... I expected string "012".
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
I made a simple test script.
And results are like this:
2010.09.10 00:19:00 testEnum (EURUSD,M5) 3 < correct.
2010.09.10 00:19:00 testEnum (EURUSD,M5) 260830442608302026082984 < incorrect... I expected string "012".