Any function can be nested, see:
Max( Max( Ref( H, -2 ), Ref( H, -3 ) ), Ref( H, -5 ) );
----- Original Message -----
Sent: Thursday, November 19, 2009 1:07 AM
Subject: [amibroker] MAX of more than 2 variables
Is there away to define the max of more than 2 values, something like:
Max (Ref(H,-2), Ref(H,-3), Ref(H,-5));
without resorting to x > (Ref(H,-2) AND Ref(H,-3) AND Ref(H,-5)) AND ...;
James