编写要求:
涨幅:100*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1),NODRAW,COLORWHITE; 最大涨幅:=100*(H-REF(CLOSE,1))/REF(CLOSE,1),NODRAW,COLORYELLOW; 最大跌幅:=100*(L-REF(CLOSE,1))/REF(CLOSE,1),NODRAW,COLORYELLOW; 实体幅:=ABS(100*(CLOSE-OPEN)/OPEN),NODRAW,COLORRED; 上影幅:=IF(CLOSE>OPEN,100*(H-C)/C,100*(H-O)/O),NODRAW,COLORYELLOW; 下影幅:=IF(CLOSE>OPEN,100*(O-L)/L,100*(C-L)/L),NODRAW,COLORWHITE; X:=(3*C+L+O+H)/6; AH1:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6) +13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12) +7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+ REF(X,20))/210; CP:=IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/12); AH2:=EXPMEMA(CP,25); 持股线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; VAR2M:=CLOSE*VOL; VAR3M:=EMA((EXPMA(VAR2M,3)/EXPMA(VOL,3)+EXPMA(VAR2M,6)/EXPMA(VOL,6)+EXPMA(VAR2M,12)/EXPMA(VOL,12)+EXPMA(VAR2M,24)/EXPMA(VOL,24))/4,13); SDN:=VAR3M*0.94; 涨停B:=CLOSE>1.1*REF(CLOSE,1)-0.005 AND H>L; 首个涨停:=BARSLAST(涨停B); 大阳:=100*(H-REF(C,1))/REF(C,1)>7; DRAWICON((C>SDN AND 100*(L-持股线)/持股线<1.5 AND 100*(L-((MIN(AH2,AH1)+MIN(持股线,AH2)+MIN(持股线,AH1))/2.95))/((MIN(AH2,AH1)+MIN(持股线,AH2)+MIN(持股线,AH1))/2.95)<1.5 AND (COUNT(大阳{ OR 倍量},13)>=2 OR 首个涨停<13) AND BARSLAST(大阳)>0 AND 涨幅<=2),L*0.98,1); DRAWTEXT(CLOSE>1.1*REF(CLOSE,1)-0.005,CLOSE*1.02,','),COLORCYAN; DRAWTEXT(CLOSE<0.9*REF(CLOSE,1)+0.005,L*0.98,','),COLORCCCCCC; VAR32:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*10; 火:=BARSLAST(EMA(CLOSE,5)3 AND REF(下影幅,1)<1.15)) AND ((下影幅>3 AND 上影幅<1.55)) AND 涨幅<8; JM:=(3*SMA(SMA(VAR32,2,1),2,1)-2*SMA(SMA(SMA(VAR32,2,1),2,1),3,1));
解答:
?涨幅:=100*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
最大涨幅:=100*(H-REF(CLOSE,1))/REF(CLOSE,1);
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!