【股票指标公式下载】-【通达信】界文KD(趋势线、底线、顶线、超跌、重启)

【通达信】界文KD(趋势线、底线、顶线、超跌、重启)-指标公式源码 N1:=7; N2:=27;

RSV:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100; 短K:SMA(RSV,3,1),COLORF580F5,LINETHICK0; 短D:SMA(短K,3,1),COLORCCDD33,LINETHICK0;

RSV1:=(CLOSE-LLV(LOW,N2))/(HHV(HIGH,N2)-LLV(LOW,N2))*100; 中K:SMA(RSV1,5,1),COLORRED,LINETHICK0; 中D:SMA(中K,10,1),COLOR33AA33,LINETHICK0; 短:=3*短K-2*短D; 中:=3*中K-2*中D; 趋势线:(短+中)/2; 底线:10,COLORWHITE;

顶线:90,{COLOR00FFFF;},COLORWHITE;

STICKLINE(短K>短D,短K,短D,3,1),COLORF580F5; STICKLINE(短K<=短D,短K,短D,3,1),COLORCCDD33; STICKLINE(中K>中D,中K,中D,0.1,0),COLORRED; STICKLINE(中K<=中D,中K,中D,0.1,0),COLORGREEN; 中J:=3*中K-2*中D,COLORFF00FF; 超跌:IF(中J<0,10,0),COLORLIGREEN; BDDD:=LLV(中J,2)=LLV(中J,8);

重启:IF(CROSS(中J,REF(中J+0.01,1)) AND BDDD AND 中J<20,10,-10),COLORLIRED;

加码:IF(CROSS(中J,REF(中J+0.01,1)) AND BDDD AND BETWEEN(中J,20,60),1,0),COLORRED,NODRAW;

BDGD:=HHV(中J,2)=HHV(中J,8) AND 中J>80; 小心:IF(CROSS(REF(中J-0.01,1),中J) AND REF(BDGD,1),100,120),COLORYELLOW; DRAWICON(加码,中J,1);

STICKLINE(加码,10,25,1,0),COLORYELLOW;

MM:=短K>短D AND REF(短K,1)

DRAWICON(COUNT(MM,3) AND CROSS(趋势线,中D) AND 短D>中D,10,15),COLORRED;

DIF:=EMA(CLOSE,12) - EMA(CLOSE,26); DEA:=EMA(DIF,9);

AAAA:=COUNT(MA(CLOSE,20)>MA(CLOSE,10),10)=10; GX:=MAX(MA(CLOSE,5),MAX(MA(CLOSE,20),MA(CLOSE,10))); DX:=MIN(MA(CLOSE,5),MIN(MA(CLOSE,20),MA(CLOSE,10))); BBBB:=ABS(GX/DX-1)*100<=15; MACD:=2*(DIF-DEA);

CCCC:=COUNT(MACD<0,10)=10;

DDDD:=IF(AAAA AND BBBB AND CCCC,5,0);

A:STICKLINE(CROSS(0.1,DDDD) AND CROSS(MACD,0),0,15,1,0),COLORWHITE;

【通达信】界文KD(趋势线、底线、顶线、超跌、重启)-指标公式效果图

(文档来源:若水财经社区)

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4