fxDreema

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

    How to obtain factorial of a variable?

    Questions & Answers
    3
    3
    643
    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.
    • B
      BlueMoon last edited by

      I would like to get factorial of my variables? Can you help me find this?

      Example:
      If my variable had values 2,5

      2 = 2 X 1
      5 = 5 X 4 X 3 X 2 X1 = 80

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by miro1360

        create simple custom code

        0_1507434713426_upload-03a9fc54-8664-46c2-a028-182be6c590c4

        Between trading and gambling is a very small gap, be careful.

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

          I don't even remember what factorial is, I'm so bad in math 🙂 There are some Math functions in MQL already, but even if there is no function like this, you can try to make your own function (somewhere in /studio) and use it in the code

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

          Online Users

          H
          A

          13
          Online

          146.8k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors