月K:"KDJ.K#MONTH"(9,3,3),COLORDDDD00,NODRAW;
月D:"KDJ.D#MONTH"(9,3,3),COLORDDDD00,NODRAW;
月J:="KDJ.J#MONTH"(9,3,3);
DRAWBAND(月K,RGB(150,60,60),月D,RGB(0,100,50));
周K:"KDJ.K#WEEK"(9,3,3),COLORDDDDDD,DOTLINE;
周D:"KDJ.D#WEEK"(9,3,3),COLOR00DDDD,LINETHICK2;
周J:="KDJ.J#WEEK"(9,3,3);
RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
日K:SMA(RSV,6,1),NODRAW;
日D:SMA(日K,3,1),NODRAW;
DRAWBAND(日K,RGB(200,20,10),日D,RGB(10,100,200));
日J:=3*日K-2*日D;
RSV3:=(INDEXC-LLV(INDEXL,15))/(HHV(INDEXH,15)-LLV(INDEXL,15))*100;
大盘K:SMA(RSV3,6,1),COLORDD00EE;
共振1:=CROSS(日K,日D) AND CROSS(月K,月D);
共振2:=CROSS(日K,日D) AND CROSS(周K,周D);
共振3:=CROSS(月K,月D) AND CROSS(周K,周D);
STICKLINE(共振1 OR 共振1 OR 共振3,0,100,0,-1);