编写要求:
MA2:MA(CLOSE,2)COLORWHITE,LINETHICK2; MA5:MA(CLOSE,5); MA15:MA(CLOSE,10); MA20:MA(CLOSE,20); RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; X:=LLV(J,2)=LLV(J,8); Y:=IF(CROSS(J,REF(J+0.01,1)) AND X AND J<20,30,0); 主力:=EMA( (CLOSE-MA(CLOSE,3))/MA(CLOSE,3),2); 散户:=EMA( (CLOSE-MA(CLOSE,20))/MA(CLOSE,20),7); VAR2:=LLV(LOW,10); VAR3:=HHV(HIGH,25); 动能趋势线:=100*EMA((CLOSE-VAR2)/(VAR3-VAR2),4); DRAWTEXT(CROSS(动能趋势线,70),HIGH*1.02,'险'),COLORGREEN; DRAWTEXT(CROSS(动能趋势线,80),HIGH*1.02,'减'),COLOR00FF00; DRAWTEXT(CROSS(动能趋势线,87.5),HIGH*1.02,'出局'),COLORWHITE; DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<20,LOW,'短进'),COLORFF00FF; DRAWTEXT(CROSS(主力,散户) AND 主力<0 AND 散户<0,LOW,'见底'),COLORRED; DRAWICON(CROSS(主力,散户) AND 主力<0 AND 散户<0,LOW,1); 涨家数:INDEXADV,NODRAW,COLORRED; 跌家数:INDEXDEC,NODRAW,COLORGREEN; 涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0); STICKLINE(涨停,O,C,3,0),COLORYELLOW; ZDF:=(C-REF(C,1))/REF(C,1)*100; STICKLINE(ZDF<-9.9,O,C,3,0),COLORGREEN; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,3,0),COLORRED; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0),COLORFF00FF; STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLORWHITE;
解答:
?RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!