The largest of several numbers

 
Hi

I need to get the largest of several numbers, but I don't know how to do it.

There is a function called MathMax, but it doesn't work for me since it only gets the highest value of 2 numbers.

Can you help me, please?
 
Put the numbers into an array, sort.the array.
 
  1. Perhaps you should read the manual. Use ArrayMaximum
       How To Ask Questions The Smart Way. 2004
          How To Interpret Answers.
             RTFM and STFW: How To Tell You've Seriously Screwed Up.

  2. Or just search the entire array and find the Largest.

  3. Angel Antonio Martinez Velasquez: There is a function called MathMax, but it doesn't work for me since it only gets the highest value of 2 numbers.
    Or learn to code.
    MathMax( MathMax(A, B), MathMax(C, D) ) // Highest of four numbers

  4. Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
              No free help 2017.04.21

    Or pay someone. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum 2018.05.12