编写要求:
老师您好!网上找了一个CCI和RSI的公式,请您改成通达信选股公式,谢谢! CC:=(-2*REF(C,3)+3*REF(C,2)+6*REF(C,1)+7*C)/14; T1:=MA(CC,1); Q:=14; TYP:=(HIGH+LOW+CLOSE)/3; CCI:=(TYP-MA(TYP,Q))/(0.015*AVEDEV(TYP,Q)); N1:=6; N2:=12; N3:=24; LC:=REF(CLOSE,1); RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100; RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100; RSI3:=SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100; RSIDT:=C>T1 AND RSI1>REF(RSI1,1) AND RSI2>REF(RSI2,1) AND RSI3>REF(RSI3,1); DRAWICON(CCI<-130 AND RSIDT AND NOT(REF(RSIDT,1)),(L * 0.996),11),LINETHICK1;
解答:
?CC:=(-2*REF(C,3)+3*REF(C,2)+6*REF(C,1)+7*C)/14;
T1:=MA(CC,1);
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!