同花顺KDJ趋势副图指标 源码介绍
同花顺KDJ趋势副图指标 源码
自用的KDJ指标,分析方法根KDJ指标一样。
RS=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
RSV=(C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100;
a1=SMA(RS,3,1);
b1=SMA(a1,3,1);
e1=3*a1-2*b1;
a=SMA(RSV,10,1);
b=SMA(a,3,1);
e=3*a-2*b;
K:a1,coloryellow ,linethick1;
D:b1,colorliblue ,linethick1;
J:e1,COLORff00ff ,linethick1;
趋势k:a;//隐藏;
趋势D:b;//隐藏;
趋势J:e;//隐藏;
STICKLINE(趋势J>趋势D,趋势J,趋势D,6,0),coloryellow;
STICKLINE(趋势J<趋势D,趋势J,趋势D,6,0),colorgreen;
STICKLINE(趋势D>趋势k,趋势D,趋势K,6,0),colorblue;
STICKLINE(趋势J>趋势K,趋势J,趋势k,6,0),colorred;
STICKLINE(V>85,85,85,3,0),colorgreen;
STICKLINE(V>50,50,50,5,0),colorgray;
STICKLINE(V>20,20,20,3,0),colorred;
DRAWICON(CROSS(J,K),25,1);
DRAWICON(CROSS(K,J),95,2);
DRAWTEXT(CROSS(趋势J,趋势k),20,'金叉'),colorwhite;
DRAWTEXT(CROSS(趋势k,趋势J),100,'死叉'),colorliblue;
gd47541