|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
Is there equivalent to MQL4 "Digits"? |
Jameswter
|
Post subject: Is there equivalent to MQL4 "Digits"? |
Post rating: 0
|
Posted: Wed 14 Sep, 2016, 20:00
|
|
User rating: 0
Joined: Tue 06 Sep, 2016, 11:04 Posts: 20 Location: United Kingdom,
|
I want the strategy to know how many digits are there after the decimal point for the price of the chosen instrument, so it can know if dealing with normal Forex pair, Yen pair or something like XAUUSD. Is there a way to do it (In MQL4 you can get it via Digits)?
Thanks
|
|
|
|
 |
API Support
|
Post subject: Re: Is there equivalent to MQL4 "Digits"? |
Post rating: 0
|
Posted: Mon 19 Sep, 2016, 12:51
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Digits() in mql is equivalent to Instrument.EURUSD.getPipScale() + 1
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|