N:=9;
M1:=3;
M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
J:3*K-2*D;
N1:=5;
VAR1:4*SMA((CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100,5,1),3.2,1),COLORYELLOW,LINETHICK0;
VAR2:8,COLORGREEN,LINETHICK0;
上升: IF(crOSS(VAR1,VAR2),80,0),STICK,COLOR0000CC;
专吸: IF(VAR1<=8,25,0),STICK,COLORWHITE;
DRAWTEXT(CROSS(VAR1,VAR2),80,'准备'),COLOR00FFFF;
VARO5:=LLV(LOW,27);
VARO6:=HHV(HIGH,34);
VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;
建仓: IF((VARO7<10),-30,-10) ,COLOR00CCFF,LINETHICK1;
0,LINETHICK2 ,COLORFFCC00;
底线:10,COLOR9F9F5F;
顶线:92,COLOR9F9F5F;
BB:=IF(BArslAST(CROSS(K,RSV))>=3 AND CROSS(RSV,K) AND K<30,20,0);
STICKLINE(BB,0,20,2.8,0),COLOR0000BB;
AA:=IF(BARSLAST(CROSS(RSV,K))>=4 AND CROSS(K,RSV) AND RSV>50,20,0);
STICKLINE(AA,80,100,2.8,0),COLORD8D8D8;
下线:30,COLOR9F9F5F,DOTLINE;
上线:70,COLOR9F9F5F,DOTLINE;
CC:=IF(BARSLAST(CROSS(K,RSV))>=1 AND CROSS(RSV,K) AND K<40,20,0);
STICKLINE(CC,10,30,2.8,0),COLORFF1CAE;
QQ:=IF(BARSLAST(CROSS(RSV,K))>=2 AND CROSS(K,RSV) AND RSV>70,20,0);
STICKLINE(QQ,70,90,2.8,0),COLORFF2400;
K1:SMA(RSV,3,1),COLORF580F5,LINETHICK1;
D1:SMA(K,3,1),COLORCCDD33,LINETHICK1;