MODE_SPREAD & MODE_STOPLEVEL

 

Hello,

I have an issue with these instructions MODE_SPREAD & MODE_STOPLEVEL.

 

When I check these values on a 5 broker digit I got these values for example:

 MODE_SPREAD : 17.00000

 MODE_STOPLEVEL : 10.00000

That's ok. 

 

But, when I do the same in a 4 broker digit I got these values for example:

MODE_SPREAD : 12.00000

MODE_STOPLEVEL : 15.00000

That is not ok for me, I would expect these values: 

MODE_SPREAD : 1.20000

MODE_STOPLEVEL : 1.50000

 

Surely I am wrong, an explanation from you would be highly appreciated.

Thanks 

 
desert:

Hello,

I have an issue with these instructions MODE_SPREAD & MODE_STOPLEVEL.

 

But, when I do the same in a 4 broker digit I got these values for example:

MODE_SPREAD : 12.00000

MODE_STOPLEVEL : 15.00000

That is not ok for me, I would expect these values: 

MODE_SPREAD : 1.20000

MODE_STOPLEVEL : 1.50000 

As far as I am aware the values are in points . . .  so for your 4 Digit Broker the MODE_SPREAD is suggesting that the spread is 12 pips,  what is the Symbol ?  what is the Bid ?  what is the Ask ?  you can get the values from the Market Watch window  (Ctrl + M)
 
  1. MODE_SPREAD * Point == Ask - Bid
  2. MODE_STOPLEVEL * Point <= MathAbs( OrderClosePrice() - OrderStopLoss() )
  3. Different brokers == different spreads/levels
 

Thanks for your answers.

 

Finally, my expectation was correct, in 4 digit brokers a spread of 3 means 3.00000 points.

My mistake was due to some 5 digits brokers shows 4 digits on the screen the first time you run it, then from the second time they show the 5 digits. I was surprised by this behaviour, but I was aware about this after trying many brokers with the same symptom.

 

Thanks again 

Reason: