VAR1:=(((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18)))*100);
VAR2:=SMA(VAR1,9,1);
安全线:EMA(VAR2,3),COLORFFFFFF;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
DF1:=L1+P1*7/8,COLORGREEN;
DF2:=L1+P1*0.5/8,COLORRED;
DF3:=(DF2+DF1)/2,COLORWHITE,POINTDOT;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:EMA(V11,3),LINETHICK2,COLORLIBLUE;
RSV:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
支撑线:SMA(RSV,5,1),COLORYELLOW;
顶线:89,COLORGREEN;
底线:11,COLORYELLOW;
中线:50,POINTDOT,COLORWHITE;
MOV0:=(((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18)))*100);
MOV1:SMA(MOV0,9,1),COLORGREEN;
MOV2:EMA(MOV1,3),COLORLIRED;
MOV3:EMA(MOV2,3),COLORFFCC66;
MOV4:EMA(MOV3,3),COLORCC9966;
MOV5:EMA(MOV4,3),COLORCC6666;
BB0:=REF(趋势线,1)<11 AND crOSS(趋势线,11) AND C
DD0:=REF(趋势线,1)>89 AND CROSS(89,趋势线) AND C>中线;
DD2:=REF(趋势线,1)>94 AND REF(趋势线,1)<97 AND CROSS(94,趋势线);
DD3:=REF(趋势线,1)>97 AND REF(趋势线,1)>99 AND CROSS(97,趋势线);
DD4:=REF(趋势线,1)>99 AND REF(趋势线,1)<100 AND CROSS(99,趋势线);
DD5:=REF(趋势线,1)>100 AND CROSS(100,趋势线);
DD:=DD1=1 OR DD2=1 OR DD3=1 OR DD4=1 OR DD5=1;
买入:BB0,COLORRED;
STICKLINE(趋势线<11,趋势线,11,5,0),COLORYELLOW;
STICKLINE(趋势线>89,趋势线,89,5,0),COLORWHITE;
DRAWTEXT(买入,趋势线+3.5,'买入'),COLORRED;
DRAWTEXT(DD1,趋势线+3.5,'高处不胜寒'),COLORLIBLUE;
DRAWICON(买入,趋势线+3.5,1);