以下是通达信又一个变色KDJ副图老公式(无源码的请下载附件导入)
估计看着它,,,,,恩恩额嗯。。。不会赔钱!
最好配合成交量使用
{变色KDJ}
RSV:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100-0;
K:SMA(RSV,9,1),COLORFFFFFF,LINETHICK2;
D:SMA(K,3,1),COLOR00FF00,LINETHICK2;
J:EMA(K,9),DOTLINE,COLORFF2400;
VARK:K,COLORWHITE,LINETHICK2;
上升K:IF(VARK>REF(VARK,1),VARK,DRAWNULL),COLORRED,LINETHICK2;
走平K:IF(VARK=REF(VARK,1),VARK,DRAWNULL),COLORFFFFFF,LINETHICK2;
下降K:IF(VARK<REF(VARK,1),VARK,DRAWNULL),COLORFF2400,LINETHICK2;
VARD:D,COLORWHITE,LINETHICK2;
上升D:IF(VARD>REF(VARD,1),VARD,DRAWNULL),COLORFF00FF,LINETHICK2;
走平D:IF(VARD=REF(VARD,1),VARD,DRAWNULL),COLORFFFFFF,LINETHICK2;
下降D:IF(VARD<REF(VARD,1),VARD,DRAWNULL),COLORGREEN,LINETHICK2;
VARJ:J,COLORWHITE;
上升J:IF(VARJ>REF(VARJ,1),VARJ,DRAWNULL),COLORRED;
走平J:IF(VARJ=REF(VARJ,1),VARJ,DRAWNULL),COLORFFFFFF;
下降J:IF(VARJ<REF(VARJ,1),VARJ,DRAWNULL),COLORFF0000;
644533781.png
|