fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    How to get currency number of decimals

    Questions & Answers
    2
    2
    885
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      ClauTrade last edited by

      Hello!

      When a strategy use formulas is important the number of decimal.

      EURUSD: 5 decimal > 1.20000
      CHFJPY: 3 decimal > 100.200

      Is there an automatic mode to get from the currency the number of decimal?

      Thanks! 🙂

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        Try this - http://prntscr.com/brpse2
        "Original" is the real number of digits. "Customized" is the changed number because of the "Point format rules" settings.

        As a MQL4 code, I think it was something like MarketInfo(Symbol(), MODE_DIGITS)

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        Online Users

        E
        V

        12
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors