RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),LINETHICK1,colorFFFFFF;
D:SMA(K,3,1),LINETHICK1,colorFFFF;
J:3*K-2*D,LINETHICK1,colorFF00FF;
V1:MA(VOL,5)/VOL*2,LINETHICK0;
V2:MA(VOL,10)/VOL*5,LINETHICK0;
V3:MA(VOL,20)/VOL*8,LINETHICK0;
V4:MA(VOL,60)/VOL*10,LINETHICK0,colorFF0000;
AAA:=CROSS(K,D) AND D<40;
BBB:=CROSS(D,K) AND D>60;
DTK:=STKINDI('1A0001','KDJ.K',0,DATATYPE);
DTD:=STKINDI('1A0001','KDJ.D',0,DATATYPE);
D1:=FILTER(ANY(CROSS(MA(CLOSE,5),MA(CLOSE,60)),10) AND ANY(CROSS(MA(CLOSE,10),MA(CLOSE,60)),10) AND ANY(CROSS(MA(CLOSE,20),MA(CLOSE,60)),10),5);
DRAWICON(FILTER(D1,10),K-5,4);
D2:=FILTER(ANY(CROSS(MA(CLOSE,5),MA(CLOSE,20)),5) AND ANY(CROSS(MA(CLOSE,10),MA(CLOSE,20)),5),5);
DRAWICON(FILTER(D2,5),K-24,8);
C1:=FILTER(MA(CLOSE,60)<=REF(MA(CLOSE,60),15) AND ALL(CLOSE<MA(CLOSE,60),15) AND (CLOSE-MA(CLOSE,60))/MA(CLOSE,60)*100>-2,5);
C2:=FILTER(MA(CLOSE,60)<=REF(MA(CLOSE,60),15) AND REF(ALL(CLOSE<MA(CLOSE,60),15),1) AND CROSS(CLOSE,MA(CLOSE,60)),5);
DRAWICON(FILTER(C1,5),J+10,12);
DRAWICON(C2,110,10);
F1:=FILTER(ANY(CROSS(MA(CLOSE,60),MA(CLOSE,5)),10) AND ANY(CROSS(MA(CLOSE,60),MA(CLOSE,10)),10) AND ANY(CROSS(MA(CLOSE,60),MA(CLOSE,20)),10),5);
F2:=FILTER(ANY(CROSS(MA(CLOSE,20),MA(CLOSE,5)),5) AND ANY(CROSS(MA(CLOSE,20),MA(CLOSE,10)),5),5);
DRAWICON(FILTER(F1,10),D+40,5);
DRAWICON(FILTER(F2,5),D+20,9);
STICKLINE(CROSS(DTK,DTD) AND CROSS(K,D),0,30,8,0),colorFFFF00;
CCC:=CROSS(DTK,DTD) AND CROSS(K,D);
W9:=BACKSET(BARSCOUNT(CLOSE)=SYSPARAM(1),AAA);
W10:=BACKSET(BARSCOUNT(CLOSE)=SYSPARAM(1),BBB);
W11:=BACKSET(BARSCOUNT(CLOSE)=SYSPARAM(1),CCC);
W12:=BACKSET(BARSCOUNT(CLOSE)=SYSPARAM(1),D1);
W13:=BACKSET(BARSCOUNT(CLOSE)=SYSPARAM(1),D2);
W14:=BACKSET(BARSCOUNT(CLOSE)=SYSPARAM(1),C1);
W15:=BACKSET(BARSCOUNT(CLOSE)=SYSPARAM(1),C2);
W16:=BACKSET(BARSCOUNT(CLOSE)=SYSPARAM(1),F1);
W17:=BACKSET(BARSCOUNT(CLOSE)=SYSPARAM(1),F2);
W5:=BACKSET(BARSCOUNT(CLOSE)=SYSPARAM(1),V1);
W6:=BACKSET(BARSCOUNT(CLOSE)=SYSPARAM(1),V2);
W7:=BACKSET(BARSCOUNT(CLOSE)=SYSPARAM(1),V3);
W8:=BACKSET(BARSCOUNT(CLOSE)=SYSPARAM(1),V4);
STICKLINE(CROSS(K,D) AND D<40,K-5,K+10,8,0),colorFF;
STICKLINE(CROSS(D,K) AND D>60,K-6,K+8,6,0),color8CFF8E;
STICKLINE(W8,0,10,20,0),colorFFE5;
STICKLINE(W7,0,10,20,0),colorFF73;
STICKLINE(W6,0,10,20,0),colorFFFF00;
STICKLINE(W5,0,10,20,0),colorFF;
DRAWTEXT(BARSCOUNT(CLOSE)=SYSPARAM(1),-3,'理想 飞帆'),ALIGN2,colorFFFF;
DRAWTEXT(W9,40,' KDJ在40以下金叉,短线有'),ALIGN2,colorFFFF00;
DRAWTEXT(W9,25,'机会,但仍需小心骗线。 '),ALIGN2,colorFFFF00;
DRAWTEXT(W10,95,' KDJ在60以上死叉,有调整要求.'),ALIGN2,colorFF00;
DRAWTEXT(W11,70,' 个股大盘KDJ同步金叉,操作得当'),ALIGN2,colorFFFF;
DRAWTEXT(W11,55,' 可以挣点零花线,但弱股小心! '),ALIGN2,colorFFFF;
DRAWTEXT(W12,100,'5,10,20均线上穿60日线 '),ALIGN2,colorFFFF;
DRAWTEXT(W12,83,'形成季托,强势特征显现.'),ALIGN2,colorFFFF;
DRAWTEXT(W13,62,'5,10均线上穿20日线形成月托, '),ALIGN2,colorC7FF71;
DRAWTEXT(W13,45,'股价有上攻欲望,但在熊市可靠性差。'),ALIGN2,colorC7FF71;
DRAWTEXT(W14,80,'股价在60日均线处有压力 '),ALIGN2,colorC7FF71;
DRAWTEXT(W15,100,'股价突破60日均线处的压力,'),ALIGN2,colorFFFF00;
DRAWTEXT(W15,85,'考验它能否站稳,看量价配合'),ALIGN2,colorFFFF00;
DRAWTEXT(W16,100,'5,10,20均线下穿60日线形成'),ALIGN2,colorFF00;
DRAWTEXT(W16,85,'季压,弱势特征显现,持币观望'),ALIGN2,colorFF00;
DRAWTEXT(W17,65,'5,10与20日线形成月压,高位是危险信号,'),ALIGN2,colorFF00;
DRAWTEXT(W17,50,'低位与月托交替出现时是调整信号。'),ALIGN2,colorFF00;
0,POINTDOT,colorFFFFFF;
100,POINTDOT,colorFFFFFF;