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?
- Need help with functions, i need functions to return more than 1 value
- Questions from Beginners MQL5 MT5 MetaTrader 5
- Find largest fib less than..
Put the numbers into an array, sort.the array.
- 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. - Or just search the entire array and find the Largest.
- 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
-
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.21Or pay someone. Top of every page is the link Freelance.
Hiring to write script - General - MQL5 programming forum 2018.05.12

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register