编写要求:
通达信彩色KD指标-KD共振指标,改成大智慧,也把彩色去掉看了简单点,辛苦老师了 VAR13:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100; K13:SMA(VAR13,3,1); D13:SMA(K13,3,1); DRAWBAND(K13,RGB(255,255,0),D13,RGB(0,255,0)); {STICKLINE(K13>D13,K13,D13,8,0),COLOR0055AA; STICKLINE(K13>D13,K13,D13,5,0),COLOR0077CC; STICKLINE(K13>D13,K13,D13,3,0),COLOR0099DD; STICKLINE(K13>D13,K13,D13,1,0),COLOR01BEE7; STICKLINE(K13<=D13,K13,D13,8,0),COLOR006600; STICKLINE(K13<=D13,K13,D13,5,0),COLOR009900; STICKLINE(K13<=D13,K13,D13,3,0),COLOR00BB00; STICKLINE(K13<=D13,K13,D13,1,0),COLOR00CC00;} VAR55:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100; K55:SMA(VAR55,3,1); D55:SMA(K55,3,1); DRAWBAND(K55,RGB(255,0,0),D55,RGB(0,0,255)); {STICKLINE(K55>D55,K55,D55,7,0),COLOR000045; STICKLINE(K55>D55,K55,D55,5,0),COLOR000085; STICKLINE(K55>D55,K55,D55,3,0),COLOR0000C5; STICKLINE(K55>D55,K55,D55,1,0),COLOR0000E5; STICKLINE(K55<=D55,K55,D55,7,0),COLOR353500; STICKLINE(K55<=D55,K55,D55,5,0),COLOR555500; STICKLINE(K55<=D55,K55,D55,3,0),COLOR757500; STICKLINE(K55<=D55,K55,D55,1,0),COLOR858500;} 20,COLORWHITE; 80,COLORWHITE; DIBU:= K13<20 AND D13<20 AND K55<20 AND D55<20; STICKLINE(DIBU=1,80,60,5.8,1),COLORRED; TOBU:= K13>80 AND D13>80 AND K55>80 AND D55>80; STICKLINE(TOBU=1,40,20,5.8,1),COLORGREEN;
解答:
?VAR13:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;?
K13:SMA(VAR13,3,1);?
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!