九毛八公式指标
请老师帮忙做一个选股公式,当出现双蹄奋起时作为选股条件!谢谢! 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,COLORYELLOW; HHJSJDC:MA(HHJSJDB,5),COLORRED; MA5:=MA(C,7),COLORWHITE; MA20:=MA(C,20),COLORFF00FF; MA90:MA(C,90),COLORFFCC66; Y1:=BARSLAST(CROSS(MA5,MA20)) AND MA5>MA20; Y2:=Y1 AND BARSLAST(CROSS(MA5,MA90)); Y3:=Y2 AND CROSS(MA20,MA90); DRAWICON(Y3,L-0.10,1); DRAWTEXT(Y3,L-0.40,'双跨越'),COLORMAGENTA; F0:=BARSLAST(CROSS(MA(C,5),MA(C,90))); F1:=F0 AND BARSLAST(CROSS(MA(C,20),MA(C,90))); F2:=F1 AND CROSS(MA(C,5),MA(C,20)) AND MA(C,20)>MA(C,90); DRAWICON(F2,L-0.10,1); DRAWTEXT(F2,L-0.40,'双蹄奋起');
公式模块:
F0:=BArslAST(crOSS(MA(C,5),MA(C,90)));
F1:=F0 AND BARSLAST(CROSS(MA(C,20),MA(C,90))); F2:F1 AND CROSS(MA(C,5),MA(C,20)) AND MA(C,20)>MA(C,90);