這是我從其他發問中找到的程式碼
請問我如何修改區間成週線判斷?
謝謝
input:length(15,"天期"),_Change(5,"漲幅(%)");
value1 = highest(high,length);
value2 = lowest(low,length);
condition1=trueall(AbsValue(GetField("漲跌幅"))<_Change,length);
condition2=trueall(close <= value1,length);
condition3=trueall(close >= value2,length);
if condition1 and condition2 and condition3 then ret=1;
outputfield1(GetField("漲跌幅")[length],"漲幅(%)");
outputfield2(value1,"N天最高點");
outputfield3(value2,"N天最低點");

2 評論