how to get position type opened? - page 2

 
Fernando Carreiro:

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...

Ever tried to draw a 3d cube in fourth dimension?