在 amibroker 中获取多个数组的最大值

Getting maximum of multiple arrays in amibroker

我正在尝试获取最多 6 个 amibroker 数组 A, B, C, D, E, F.

下面是我的代码;

maximum = Max(Max(A, B), Max(C, D) );
maximum = Max(Max(maximum, E), F);

我觉得代码有点难看。 还有哪些其他编码方法?

我正在使用 Amibroker ver6.3

您可以查看 Highest (if you need the highest value in the whole array), HighestSince (if you need the highest since a certain condition) or HHV(如果您需要 x 柱中的最高值)。

MaxA = Highest(A);
MaxB = Highest(B);
MaxC = Highest(C);
MaxD = Highest(D);
MaxE = Highest(E);
MaxF = Highest(F);
Max = Max(MaxA,Max(MaxB,Max(MaxC,Max(MaxD,Max(MaxE, MaxF)))));