以下是通达信KDD2副图源码
80,COLORYELLOW,POINTDOT,COLORYELLOW;
50,COLORYELLOW,POINTDOT,COLORYELLOW;
20,COLORYELLOW,POINTDOT,COLORYELLOW;
日RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
日K:SMA(日RSV,M1,1),COLORGREEN;
日D:SMA(日K,M2,1),COLORBLUE,DOTLINE;
REF_日K:REF(日K,1),NODRAW;
IF(日K>REF_日K,日K,DRAWNULL),COLORRED;
REF_日D:REF(日D,1),NODRAW;
IF(日D>REF_日D,日D,DRAWNULL),COLORYELLOW,DOTLINE;
IF(日K>80 AND 日K>REF_日K ,日K,DRAWNULL),COLOR0000FF;
{IF(日K<20,日K,DRAWNULL),COLORGREEN,LINETHICK2;}
DRAWICON(EVERY(日K>80,3),110,39);
DRAWICON(EVERY(日K<20,3),0,38);
DRAWICON(日K<80 AND REF(日K,1)>80,日K,2);
DRAWICON(日K>20 AND REF(日K,1)<20,日K,1);