fxDreema

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

    Using exponent "operand"

    Questions & Answers
    4
    8
    1473
    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.
    • S
      seb 0 last edited by

      I wanted to use the exponent operation in some of my calculations, but i dont know where i could place it.
      Formula blocks and custom MQL code blocks don't recognize the "^" symbol, so...
      Do i need to multiply the number as many times by itself ? Thanks

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

        Interesting question. I would like to know it too. Someone can help?

        (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
        • T
          trader.philipps @seb 0 last edited by

          @seb-0 Use pow() or MatPow() function https://docs.mql4.com/math/mathpow

          I like to share my knowledge, but expect the others to contribute as well.

          S 1 Reply Last reply Reply Quote 1
          • S
            seb 0 @trader.philipps last edited by

            @trader-philipps
            Thank you !
            I'm gonna check this page now if i need an other function.
            What does that mean though : "The code entered here will be placed into a generated function, which means that you can't define custom functions in it." ? (description of MQL code block)

            T 1 Reply Last reply Reply Quote 0
            • T
              trader.philipps @seb 0 last edited by

              @seb-0 I think fxdrema creates a function per custom mql code. However, I haven't used it to call from a different place and I have no idea how to do so.

              Just created a cutom code block like that.

              0_1578172063341_5c3919d7-0c80-44bd-8e7a-7e1c9b978f4c-image.png

              The mql result is like that ..

              // Block 32 (PrintHelloWorld)
              class Block19: public MDL_CustomCode<bool>
              {

              public: /* Constructor */
              Block19() {
              	__block_number = 19;
              	__block_user_number = "32";
              	_beforeExecuteEnabled = true;
              }
              
              public: /* Callback & Run */
              virtual void _callback_(int value) {
              }
              
              virtual void _beforeExecute_()
              {
              	Print("Hello, World");
              }
              

              };

              I like to share my knowledge, but expect the others to contribute as well.

              S 1 Reply Last reply Reply Quote 0
              • S
                seb 0 @trader.philipps last edited by

                @trader-philipps
                I am reposting.
                I saw the base should be "double" ,but how can i do if i want to raise a variable, like : ((highOf10 - lowOf10)/price)pow(1.5) ?
                Which is not ok

                roar 1 Reply Last reply Reply Quote 0
                • roar
                  roar @seb 0 last edited by roar

                  @seb-0

                  ((highOf10 - lowOf10)/price)pow(1.5)

                  in mql4:
                  MathPow(((highOf10 - lowOf10)/price),1.5)
                  https://docs.mql4.com/math/mathpow

                  Need small help? Tag me in your post
                  Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    seb 0 @roar last edited by

                    @roar
                    Oh indeed, i struggle reading codes thanks!

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

                    Online Users

                    M
                    E
                    C
                    M
                    F
                    L
                    F
                    F
                    E
                    K

                    26
                    Online

                    146.6k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors