RS=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;
RSV=(C-LLV(L,N2))/(HHV(H,N2)-LLV(L,N2))*100;
a1=SMA(RS,3,1);
b1=SMA(a1,3,1);
e1=3*a1-2*b1;
a=SMA(RSV,10,1);
b=SMA(a,3,1);
e=3*a-2*b;
K:a1,coloryellow ,linethick1;
D:b1,colorliblue ,linethick1;
J:=e1,COLORff00ff ,linethick1;
趋势k:a;//隐藏;
趋势D:b;//隐藏;
趋势J:e;//隐藏;
STICKLINE(趋势J>趋势D,趋势J,趋势D,6,0),coloryellow;
STICKLINE(趋势J<趋势D,趋势J,趋势D,6,0),colorgreen;
STICKLINE(趋势D>趋势k,趋势D,趋势K,6,0),colorblue;
STICKLINE(趋势J>趋势K,趋势J,趋势k,6,0),colorred;
STICKLINE(V>85,85,85,3,0),colorgreen;
STICKLINE(V>50,50,50,5,0),colorgray;
STICKLINE(V>20,20,20,3,0),colorred;
DRAWICON(CROSS(J,K),25,1);
DRAWICON(CROSS(K,J),95,2);
DRAWTEXT(CROSS(趋势J,趋势k),20,'金叉'),colorwhite;
DRAWTEXT(CROSS(趋势k,趋势J),100,'死叉'),colorliblue;