Dukascopy
 
 
Wiki JStore Search Login

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"?
 Post subject: Is there equivalent to MQL4 "Digits"? Post rating: 0   New post Posted: Wed 14 Sep, 2016, 20:00 
User avatar

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


 
 Post subject: Re: Is there equivalent to MQL4 "Digits"? Post rating: 0   New post Posted: Mon 19 Sep, 2016, 12:51 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Digits() in mql is equivalent to Instrument.EURUSD.getPipScale() + 1


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com