fxDreema

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

    Written Conditions

    Questions & Answers
    3
    9
    440
    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.
    • Zereleth
      Zereleth last edited by

      Hello,

      I was just curious where I can learn about the written code blocks such as this example I took from another thread. I am not sure where to read about the FxDreema format to find what I am trying to do

      e3841759-8d77-409f-be8b-a5cc9df4a469-image.png

      I would like to take a result from a moving average and double the result. I assume to do this I input the result as a variable and use the "adjust the result (optional)" block to x2 the output

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

        This block is for programmers only. You need to learn MQL4 code to use it. Trust me, if you learn to code you will not need fxDreema anymore. 😉

        (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
        • Zereleth
          Zereleth @Zereleth last edited by Zereleth

          @Zereleth To some degree I can code although primarily in Kotlin not MQ, I am just wondering how I would implement things such as rounding and finding the square route of variables within FxDreema if I don't utilise these functions.

          For example what would be sqn=round(sqrt(14)) in Pine

          @roar You seem quite experienced with this do you have any advice?

          1 Reply Last reply Reply Quote 0
          • S
            sktsec last edited by

            You can do it in a more simple way with the block Modify Variables.

            In the block, enter the input box : MathSqrt(your_variable)

            Yes. Your can input a function in the box!

            Zereleth 1 Reply Last reply Reply Quote 0
            • Zereleth
              Zereleth @sktsec last edited by

              @sktsec said in Written Conditions:

              MathSqrt(your_variable)

              Like this?

              https://fxdreema.com/shared/zOGwNCjdb

              S 1 Reply Last reply Reply Quote 0
              • S
                sktsec @Zereleth last edited by

                @Zereleth
                YES

                Zereleth 1 Reply Last reply Reply Quote 0
                • Zereleth
                  Zereleth @sktsec last edited by

                  @sktsec Let me know if I am being annoying, just trying to comprehend how the modify variable works

                  In MT4 I would write it out like this

                  double sqn1 = MathRound(MathSqrt(keh));

                  When using the modify variable option I can use your suggestion to square it, although im not sure how to round it.

                  Also how does it modify the variable? Is it each time the script runs eg; if the modify is variable*2 does it make the variable 2 on first run then 4, 8, 16, 32, etc or do all variables reset after each script run.

                  In this case would it function to write MathSqrt(variable) then later write MathRound(variable) in a connected block would it both square root and round the outcome?

                  Thank you for the help

                  Zereleth S 2 Replies Last reply Reply Quote 0
                  • Zereleth
                    Zereleth @Zereleth last edited by

                    @Zereleth I believe the practical answer for my question is MathRound(MathSqrt(variable1)) if anyone reads this thread in future and wants a summary. I am just trying to understand how the FxDreema platform functions.

                    1 Reply Last reply Reply Quote 0
                    • S
                      sktsec @Zereleth last edited by

                      @Zereleth

                      1. Try to use the block Comment(ugly) to see the output value of any variable. You will get all your answers.

                      2. NormalizeDouble() is another function that could help you get round values

                      3. MathSqrt() is a square root function rather than a square function

                      4. The variable you defined is in global scope. Therefore, you can use the current output at the next block.

                      5. As you are a programmer, you may wonder how the MT4 program flows. It a real time computation problem. That means a new calculation may start before you has finished the last once. That's why slow PC and a complex EA is problematic

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

                      Online Users

                      O
                      K
                      M
                      M
                      C

                      16
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors