Put the values into an array and then sort the array . . . Array stuff
Put them into an array and
double maximum = array[ ArrayMaximum(array) ];
or
double maximum = MathMax( MathMax( MathMax(ma1, ma2) , MathMax(Ma3, ma4) ) , MathMax(ma5, ma6) )
sorry for the late response... thank you, guys!!!!!!

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
hi forum!
i use 6 moving averages and i want to know if the current price is over or under them. therefore i have to know the highest value of the mas and the lowest.
i thought there is something like:
double maximum = highest(ma1,ma2,ma3,ma4,ma5,ma6);
double minimum = lowest(ma1,m2....);
but that does not work. and mathmax/mathmin only calculates 2 values.
can someone help me?
thank you !!!!