㈠ 通達信 歐奈兒杯柄公式編寫
不能加到其他類型里,要加到條件選股里,也就是上圖的最下面一欄就行了。
㈡ 求大神根據歐奈爾選股思路做一個通達信公式,謝謝!
HH1:=HHV(H,50);
LL1:=LLV(L,50);
CON1:=LL1>=0.6*HH1;
CON2:=BARSLAST(H=HH1)>BARSLAST(L=LL1);
HH2:=HHV(H,BARSLAST(L=LL1)-1);
LL2:=LLV(L,BARSLAST(H=HH2)-1);
CON3:=REF(LL2,1)>=0.8*REF(HH2,1);
CON4:=REF(LL2,1)>=0.5*REF((HH2+LL1),1);
CON5:=BARSLAST(L=LL2)>=2;
VVOLC:=REF(SUM(VOL,3),REF(BARSLAST(H=HH2),1));
VVOLD:=REF(SUM(VOL,3),REF(BARSLAST(L=LL2),1));
CON6:=VVOLC>=2*VVOLD;
CON7:=CROSS(CLOSE,REF(HH2,1)) AND VOL>=2*REF(VOL,1);
FLAG:CON1 AND CON2 AND CON3 AND CON4 AND CON5 AND CON6 AND CON7;