is MODE_STOPLEVEL in full pips now?

 

Hi All.

I some of my MT4 robots I use a function that checks if the stops entered by user are > Broker Stop Level. Recently I started encountering error 130 - Invalid Stops when a robot tries to open a new order.

After some checks I discovered, to my utmost surprise that now, when I use:

double brokerStopLevel = MarketInfo(Symbol(), MODE_STOPLEVEL);

e.g. for GBPNZD it gives me the value of 10, while the Symbol Specification shows 'Stops level': 100!

I have always used the line above, then i checked 'Digits' and divided the value by 10 for Digits:  3 and 5, that gave me Broker Stops Level in full pips, and that's what I needed.

My question is: has it been changed in MetaTrader4 (I use build 1170) or it's an error on broker side?

 
Grzegorz Guminski: divided the value by 10 for Digits:  3 and 5, that gave me Broker Stops Level in full pips, and that's what I needed.

That maybe what you needed but it's not what OrderSend/OrderModify needs. We can't see your broken code. There are no mind readers here and our crystal balls are cracked.

Reason: