That is because the value of "POSITION_TYPE_BUY" is Zero "0" and the value of POSITION_TYPE_SELL is One "1". That is what it is supposed to be. They are enumerations!
Don't convert them into strings! Do it the proper way as I have shown you!
Please read the documentation on enumerations, if you still don't understand!
There are multiple dimensions to coding, it all depends on how you intend to construct dimension you seek. Thanks for sharing.
There are two types of coders, the one pits in the brain and makes the job as easy as possible for the CPU to get through, the others let the CPU do all the work for them.
Ok, now I learned there are three types of coders. The third tries to make it as hard as possible for the CPU applying much thought on how to achieve that.
Interesting. What could such a coder achieve if doing it with instead of against the CPU...
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
That is because the value of "POSITION_TYPE_BUY" is Zero "0" and the value of POSITION_TYPE_SELL is One "1". That is what it is supposed to be. They are enumerations!
Don't convert them into strings! Do it the proper way as I have shown you!
Please read the documentation on enumerations, if you still don't understand!