Errors, bugs, questions - page 1888

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
Why does the PositionGetInteger(POSITION_TYPE_SELL) function return a buy value (equal to 0) instead of an error value (equal to 0) in case of incorrect input parameters ?
An example of a number it could return in the event of an error?
Why does PositionGetInteger() in case of incorrect input parameters returns buy( equal to 0) and not error(equal to 0) ?
Because it can return only TWO values - either POSITION_TYPE_BUY or POSITION_TYPE_SELL
ENUM_POSITION_TYPE
Identifier
Description
POSITION_TYPE_BUY
Buy
POSITION_TYPE_SELL
Sell
and no other values. And then it's like in movies "any coincidence of names is accidental"...
-1
Because it can return only TWO values - either POSITION_TYPE_BUY or POSITION_TYPE_SELL for
ENUM_POSITION_TYPE
Identifier
Description
POSITION_TYPE_BUY
Buy
POSITION_TYPE_SELL
Sell
and no other values. And then it's like in the movies "any coincidence of names is accidental"...
PositionGetInteger(POSITION_TIME); can already return more than 2 values
Amazing, isn't it?
And in case of error PositionGetInteger(POSITION_MAGIC) ?
-1 in MT5 majiks are only positive, about only positive majiks I also resented )
And negative.
In a warrant you can only send positive magicka values
hehe, you can also get a negative one ))))
it's understandable, the MC had no choice )
You can only send a positive Majik value in a warrant
And negative.