Hello VicHuang,
您可以參考bowen的作法。
另外也可以用迴圈的方式撰寫。
舉例來說:
value1 = 0;
for value2 = 1 to 4 begin
if close[0] <= high[value2] then value1 += 1;
end;
這樣 value1 就會是 c[0]<=High[1] and c[0]<=High[2] and c[0]<=High[3] and c[0]<=High[4] 這段中有符合條件的次數。
若要全部符合的話就是 condition1 = value1 = 4;。
感謝 bowen 的熱心回覆。
2 評論