determine high and low of 6 double values

 

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 !!!!

 
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!!!!!!
Reason: