㈠ 通达信 欧奈儿杯柄公式编写
不能加到其他类型里,要加到条件选股里,也就是上图的最下面一栏就行了。
㈡ 求大神根据欧奈尔选股思路做一个通达信公式,谢谢!
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;