//kdj//
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*80+40;
K:SMA(RSV,3,1),PRECISION0,linethick1;
D:SMA(K,3,1),PRECISION0,linethick1;
J:3*K-2*D,PRECISION0,linethick1;
DRAWICON(CROSS("KDJ.K#WEEK"(9,3,3),"KDJ.D#WEEK"(9,3,3)) ,k,4);
DRAWICON(CROSS("KDJ.d#WEEK"(9,3,3),"KDJ.k#WEEK"(9,3,3)) ,k,5);
DRAWICON(CROSS("KDJ.K#MONTH"(9,3,3),"KDJ.D#MONTH"(9,3,3)) ,k,6);
DRAWICON(CROSS("KDJ.D#MONTH"(9,3,3),"KDJ.K#MONTH"(9,3,3)) ,k,7);
//macd//
DIFF : (EMA(CLOSE,12) - EMA(CLOSE,26))*100,PRECISION0,linethick1;
DEA : EMA(DIFF,9),PRECISION0,linethick1;
MACD : 2*(DIFF-DEA), COLORSTICK;
DRAWICON(CROSS("MACD.DIFF#WEEK"(26,12,9) ,"MACD.DEA#WEEK"(26,12,9)),DIFF,4);
DRAWICON(CROSS("MACD.DEA#WEEK"(26,12,9) ,"MACD.DIFF#WEEK"(26,12,9)),DIFF,5);
DRAWICON(CROSS("MACD.DIFF#MONTH"(26,12,9) ,"MACD.DEA#MONTH"(26,12,9)),DIFF,6);
DRAWICON(CROSS("MACD.DEA#MONTH"(26,12,9) ,"MACD.DIFF#MONTH"(26,12,9)),DIFF,7);
//rsi//
LC := REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100-150,PRECISION0,linethick1;
RSI2:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100-150,PRECISION0,linethick1;
RSI3:SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100-150,PRECISION0,linethick1;
DRAWICON(CROSS("rsi.rsi1#WEEK"(6,12,24),"rsi.rsi2#WEEK"(6,12,24)) ,RSI1,4);
DRAWICON(CROSS("rsi.rsi2#WEEK"(6,12,24),"rsi.rsi1#WEEK"(6,12,24)) ,RSI1,5);
DRAWICON(CROSS("rsi.rsi1#MONTH"(6,12,24),"rsi.rsi2#MONTH"(6,12,24)) ,RSI1,6);
DRAWICON(CROSS("rsi.rsi2#MONTH"(6,12,24),"rsi.rsi1#MONTH"(6,12,24)) ,RSI1,7);
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!