N:=5;VAR2:=LLV(LOW,N);VAR3:=HHV(HIGH,N);rsv:=(CLOSE-VAR2)/(VAR3-VAR2)*100;K:(rsv,3,1);D:SMA(K,3,1),colorblue;PARTLINE(D,D>REF(D,1),colorred,D<=REF(D,1),colorliblue),LINETHICK1;J:3*K-2*D,colorlired;{"K值柱状线";}STICKLINE(K>REF(K,1),K ,REF(K,1),6,0),colorred;STICKLINE(K<=REF(K,1),K ,REF(K,1),6,0),colorgreen;{"分区";}顶:100,coloryellow;区:80,colorgray;强弱分界:50,coloryellow;区:20,colorgray;底:0,colorred;{"信号";}企稳:IF((K>REF(K,1)) AND (REF(K,1)<=REF(K,2)) AND (REF(K,2)<=REF(K,3)),5,0),colorgray;低位:IF