DRAWGBK(C 0, RGB(10,10,20),RGB(10,10,35),0,'0',0);
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
RSV1:=(HHV(H,9.8)-C)/(HHV(H,9.8)-LLV(L,9.8))*101;
KK:=SMA(RSV1,3,1);
DD:=SMA(KK,3,1);
JJ:=3*KK-2*DD;
J:=IF(JJ =100,100,IF(JJ =0,0,JJ));
买:IF((J=100),10,00),LINETHICK3,COLORRED;
卖:IF((J=0),90,100),LINETHICK2,COLORGREEN;
趋势:EMA((C-LLV(L,7))/(HHV(H,7)-LLV(L,7)),2)*100,COLORYELLOW,LINETHICK1;
VARB1:=SMA(SMA(趋势,2,1),2,1);
VARB2:=(VARB1/2+45.8)*1;
上轨:SMA(VARB2,2,1),COLORFFFF00,NODRAW;
下轨:SMA(VARB2,2,1)-45.8,COLOR00FF00,LINETHICK1,NODRAW;
中轨:(上轨+下轨)/2,COLORWHITE,NODRAW;
IF(趋势 =REF(趋势,1),趋势,DRAWNULL),COLORRED,LINETHICK1;
DRAWICON(CROSS(上轨,趋势),上轨+0.5,2);
DRAWICON(CROSS(趋势,下轨),下轨-0.5,1);