K:SMA(RSV,2,1),LINETHICK0;
D:SMA(K,3,1),LINETHICK0;
J:SMA((3*K-2*D),2,1),COLOR00FF00,LINETHICK2;
j2:ema(j,2),COLOR00FFFF;
j3:ema(j,3);
j4:ema(j,4);
j5:ema(j,5);
j6:ema(j,6);
j7:ema(j,7);
J8:=REF(J,1);
买:IF((cross(j,J3) OR cross(j,J5) OR cross(j,J7) OR cross(j,J8) or cross(j,5)) and j2 33,40,0),COLORff00ff,LINETHICK2;
卖:IF((cross(J8,j) or cross(95,j)) and j2 67,60,100),COLORFFFF00,LINETHICK2;
50,colorffffff;
{波段彩虹选股}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,2,1);
D:=SMA(K,3,1);
J:=SMA((3*K-2*D),2,1);
j2:=ema(j,2);
j3:=ema(j,3);
j5:=ema(j,5);
j7:=ema(j,7);
J8:=REF(J,1);
买:(cross(j,J3) OR cross(j,J5) OR cross(j,J7) OR cross(j,J8) or cross(j,5)) and j2