fxDreema

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

    Solved___How to find the Highest Value of variables

    Questions & Answers
    3
    7
    1078
    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
      Namfon122 last edited by Namfon122

      For Example : I have 10 variables (with value in it) I want to find the highest value of these 10 variables.
      I have used MathMax but it compares only between 2 variables.

      Please help .

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

        @namfon122 You need an array to do that. Sadly the only way to create arrays in fxDreema is via custome code. You will need a real programmer to do it, I'pm afraid.

        (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.

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

          @l-andorrà thank you to let me know ... I will wait if someone could show me the code... ❤️

          1 Reply Last reply Reply Quote 0
          • N
            Namfon122 last edited by Namfon122

            Actually I just found this code.
            https://docs.mql4.com/array/arraymaximum

            I think this is what I want but I really don't know what I have to put in.

            • I have 24 variables C1 C2 C2........to C24 (each value is from the last 24 Candle tick volume.)
            • I want to find the Highest value of C1 - C24 and put it into variable " MaxValue "
              And then I can do something with that MaxValue Candle.

            The code from the above link :

            void OnStart()
            {
            //---
            double num_array[15]={4,1,6,3,19,4,2,6,3,9,4,5,6,3,9};
            int maxValueIdx=ArrayMaximum(num_array,WHOLE_ARRAY,0);
            Print("Max value = ",num_array[maxValueIdx]," at index=",maxValueIdx);
            }

            I don't know which one is the Variable I have to Add.
            For Example : "num_array" is a variable I have to add right??? " ArrayMaximum" in the above code is a variable? or just a code .

            bk7 1 Reply Last reply Reply Quote 0
            • bk7
              bk7 @Namfon122 last edited by

              @namfon122

              if you have 10 variables it easier to write a long if && in custom code.

              1 Reply Last reply Reply Quote 0
              • N
                Namfon122 last edited by

                Solved !!!
                I got the highest volume last 24 candle by this code

                Maxvolume = MathMax(MathMax(MathMax(MathMax(cd1,cd2),cd3),cd4),cd5)

                Thanks for all help.

                l'andorrà 1 Reply Last reply Reply Quote 2
                • l'andorrà
                  l'andorrà @Namfon122 last edited by

                  @namfon122 Very interesting! Thanks for sharing.

                  (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
                  G
                  T
                  N
                  M
                  K
                  F

                  15
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors