编写要求:
请老师帮忙做一个选股公式,当出现双蹄奋起时作为选股条件!谢谢! 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)));
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!