通达信用季线收红、月线收红、周线收红选股公式
通达信月线和周线选股公式
HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
HHJSJDB:=(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)
+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)
+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+
REF(HHJSJDA,20))/210;
HHJSJDC:=MA(HHJSJDB,5);
黄线上穿红线:CROSS(HHJSJDB,HHJSJDC);
周线:="SAR.SAR#WEEK"; 周线泛红:=周线<C AND REF(COUNT(周线>L,3)=3,1); 日线金叉:=CROSS(MA(C,5),MA(C,10))AND CROSS(MA(C,5),MA(C,30)); MM:="MACD.MACD"; 反身向上:=CROSS(MM,0) OR (MM>REF(MM,1)AND REF(MM,1)<REF(MM,2)); 周线泛红 AND 日线金叉 AND 日线金叉;
周线:="SAR.SAR#WEEK"; 周线泛红:=周线<C AND REF(COUNT(周线>L,3)=3,1); 日线金叉:=CROSS(MA(C,5),MA(C,10))AND CROSS(MA(C,5),MA(C,30)); MM:="MACD.MACD"; 反身向上:=CROSS(MM,0) OR (MM>REF(MM,1)AND REF(MM,1)<REF(MM,2)); 周线泛红 AND 日线金叉 AND 日线金叉;
股票公式,周线OBV创新高,要求不用选股周期,周线直接编入公式内,通达信,懂的给编个,谢谢
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL)
;OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0)
;M:=2;MAOBV:MA(OBV,M);IF(REF(MAOBV,1)>MAOBV and REF(MAOBV,1)>REF(MAOBV,2));