Download MetaTrader 5

MODE_TICKSIZE

To add comments, please log in or register
Have you found an error in our products? Apply to Service Desk!
Mohammad Soubra
24895
Mohammad Soubra 2016.11.21 17:38 

Hello all,

in the mql4 language: 

I am using the following to get the tick value in pips

Alert(MarketInfo(NULL,MODE_TICKSIZE));

but the result is as the following pic:

 

need help please

how to get the value in pips ?

honest_knave
Moderator
2159
honest_knave 2016.11.21 18:05  
Mohammad Soubra:

Hello all,

in the mql4 language: 

I am using the following to get the tick value in pips

Alert(MarketInfo(NULL,MODE_TICKSIZE));

but the result is as the following pic:

 

need help please

how to get the value in pips ?

1e-05 is another way to write 0.00001

If you want it displayed differently, try:  

Alert(DoubleToStr(MarketInfo(NULL,MODE_TICKSIZE),Digits));
You probably want to look up Point too, if you are looking to convert it to "pips". You'll also find it beneficial to look up about catering for 4 digit versus 5 digit brokers.
Point - Checkup - MQL4 Reference
Point - Checkup - MQL4 Reference
  • docs.mql4.com
Point - Checkup - MQL4 Reference
whroeder1
14470
whroeder1 2016.11.21 18:47  
Mohammad Soubra: I am using the following to get the tick value in pips
Alert(MarketInfo(NULL,MODE_TICKSIZE));

If you had read the documentation, you would know that tick size is not a value at all (pips or otherwise)

What is a TICK? - MQL4 forum

Mohammad Soubra
24895
Mohammad Soubra 2016.11.21 23:05  

Oh...

Thank you both honest_knave & whroeder1 )

seems I misunderstand myself

I want another idea

it is the gap between each tick

However, I will calculate it by a simple function

Thanks Again

Good Luck

:) 

To add comments, please log in or register