通达信KDJ分时指标公式

N:=45;
M1:=15;
M2:=15;
DRAWGBK(C>1,RGB(0,0,0),RGB(1,1,1),1,0,0);
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:SMA(K,M2,1),COLORYELLOW;
J:(3*K-2*D),COLORWHITE;
NOTEXTA:-10,COLORRED,DOTLINE;
NOTEXTB:50,COLORGRAY,DOTLINE;
NOTEXTC:120,COLORGREEN,DOTLINE;
A1:=CROSS(J,100);
B1:=CROSS(100,J);
A2:=CROSS(5,J);
B2:=CROSS(J,5);
NOTEXTAA1:DRAWLINE(A1,100,B1,100,0),COLORFF8000,LINETHICK1;
NOTEXTAA2:DRAWLINE(A2,5,B2,5,0),COLORRED,LINETHICK1;
NOTEXTAA:IF(J>100,J,DRAWNULL),LINETHICK2,COLORFF8000;
NOTEXTBB:IF(J<5,J,DRAWNULL),LINETHICK2,COLORRED;
STICKLINE(J>100,100,J,2,1),COLORFF8000;
STICKLINE(J<5,5,J,2,1),COLORRED;
DRAWTEXT(BARSLAST(J>100),NOTEXTAA1,' 风险区'),COLORGREEN;
DRAWTEXT(BARSLAST(J<5),NOTEXTAA2,' 机会区'),COLORRED;
DIF:(EMA(CLOSE,12) - EMA(CLOSE,26)),COLORFFFF00,NODRAW;
DEA:EMA(DIF,9),COLORGREEN,NODRAW;

通达信KDJ分时指标公式

 

大智慧策略终端/职业股民首选分析软件:支持ACE数据,支持L2行情全推数据,支持股票池,超赢数据,价格低廉,支持月季费年费。:

下载地址:https://share.weiyun.com/LPoU0GHu