上升三法的公式怎么寫,,謝謝 【李 超】BACKSET(
REF(CLOSE,4)/REF(OPEN,4)>1.03 AND REF(CLOSE,3)<REF(OPEN,3) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 AND CLOSE>REF(CLOSE,4), 5); 寫如下的一個股公式,,滿足的條件如下1)過去5天之內(nèi)有一根漲幅大于5%的大陽線突破前期大箱體的最高價;
var1:=barslast(close/ref(close,1)>1.05);
between(var1,0,6) and ref(close,var1)>ref(hhv(high,20),var1+1); barslast(cross(ma(vol,5),ma(vol,10)))=2 and last(vol<ref(vol,1))=2 and last(close<open)=2; |