编写要求:
求老师帮忙将“KDJ周日双飞”中K周金叉D周时改为选股公式 {KDJ周日双飞} RSV日:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100; K日:SMA(RSV日,3,1),COLORFFFF00; D日:SMA(K日,3,1),COLOR00FF00; J日:3*K日-2*D日,COLORFF00FF; RSV:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100; K周:SMA(RSV,15,1),COLORWHITE; D周:SMA(K周,3,1),COLORYELLOW; J周:3*K周-2*D周,COLORRED; 底部:0,COLORF00FF0,LINETHICK2; 界线:15,POINTDOT,COLORYELLOW; 买A:=CROSS(J日,底部); 买B:=CROSS(J日,界线); DRAWICON(CROSS(J日,底部),底部,9); DRAWICON(CROSS(J日,界线),界线,1); 日周双飞:K周>REF(K周,1) AND D周 >REF(D周,1) AND J周>REF(J周,1) AND K日>REF(K日,1) AND D日>REF(D日,1) AND J日>REF(J日,1); 介入:IF(K日<15,30,0); BBI:=(EMA(CLOSE,3)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4; EBBI:=(EMA(C,6)+EMA(C,18)+EMA(C,54)+EMA(C,162))/4; FF1:=EMA(C,3)>EMA(C,7) AND EMA(C,7)>EMA(C,21) AND EMA(C,21)>EMA(C,54); DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIFF,9); 主升浪:IF(BBI>EBBI AND FF1 AND DIFF>DEA,10,0),COLORYELLOW,POINTDOT; STICKLINE(主升浪,10,0,1,1),COLORYELLOW; DRAWICON(CROSS(K日,D日) AND CROSS(J日,D日),10,1);{1号图标显示红箭头}; 0,COLORRED,LINETHICK2;15,COLORLIMAGENTA;{50,COLORWHITE;} 80,COLORBLUE;100,COLORGREEN,LINETHICK2; DRAWTEXT(ISLASTBAR,0,'高安全区'),COLORRED; DRAWTEXT(ISLASTBAR,15,'安 全 区'),COLORLIMAGENTA; DRAWTEXT(ISLASTBAR,50,'中 间 区'),COLORYELLOW; DRAWTEXT(ISLASTBAR,80,'风 险 区'),COLORBLUE; DRAWTEXT(ISLASTBAR,100,'高风险区'),COLORGREEN;
解答:
?RSV:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
K周:=SMA(RSV,15,1);
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!