fxDreema

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

    Square Root

    Questions & Answers
    4
    4
    512
    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.
    • N
      nachoboy last edited by

      A little late to this post - where would I find information on how to add a MQL4/MQL5 function? As I need to square certain values for a calculation.

      l'andorrà 1 Reply Last reply Reply Quote 0
      • H
        holygrailfx last edited by

        I want to take the square root of a value
        so I was wondering if anybody could show how to realize this ?

        I have one variable that I want to square root ith the number of open trades

        So if my variable is 1.5
        and open trades are 3

        the square root would be 1.51.51.5=3.375

        the original MT4 function is MathSqrt I think

        Thanks for your help

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

          Yes, you can always use original MQL4 functions, everywhere. Otherwise there is nothing in fxDreema to make such conversions. I was wondering many times how to make something like that, how to make it completely visual, but I don't know... The thing is that you may want to do chain of conversions, and for each one of them there can be parameters (like when you round a number, how many digits to round). 1 block for square root, another one for rounding, another one for whatever - this is not a good way to do that, I think. Or is it?

          1 Reply Last reply Reply Quote 0
          • l'andorrà
            l'andorrà @nachoboy last edited by

            @nachoboy You can use the greu 'Custom mql code' block and add it to any block tree you need. However, if you're not used to using it, you should try a smaller test bot with the function only before adding it to your global project.

            (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

            (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

            (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

            Online Users

            D
            S
            G

            10
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors