VAR1:=(C-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
VAR2:=SMA(VAR1,13,8);
VAR3:=SMA(VAR1,13,4);
VAR4:=(CLOSE-LLV(LOW,120))/(HHV(HIGH,120)-LLV(LOW,120))*100;
VAR5:=SMA(VAR4,3,1);
VAR6:=SMA(VAR5,3,1);
VAR8:=SMA(VAR6,3,1);
VAR9:=3*(VAR6-VAR8);
顶:82,COLORFFFF00,LINETHICK1;
顶A:90,COLORFF0000,LINETHICK5;
底:18,COLOR208FFF,LINETHICK1;
0,COLORGREEN,LINETHICK1;
DRAWBAND(VAR2,RGB(175,0,0),VAR3,RGB(70,100,50));
中轴:45,COLOR555555,LINETHICK1;
STICKLINE(VAR9>0,VAR9+45,45,0.0,1),COLOR0000DD;
STICKLINE(VAR9<0,VAR9+45,45,0.0,1),COLORDDDD00;
DRAWTEXT_FIX(C>O,0,0.2,0,'VAR8:VAR9'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR AND VAR2>REF(VAR2,1),VAR2,' ↑'),COLOR0000FF;
DRAWTEXT(ISLASTBAR AND VAR2<REF(VAR2,1),VAR2,' ↓'),COLORCYAN;
DRAWTEXT(ISLASTBAR,顶,'顶'),COLORFFFF00;
DRAWTEXT(ISLASTBAR,底,'底'),COLOR208FFF;
DRAWICON(CROSS(VAR2,89),VAR2,4);
DRAWICON(CROSS(底,VAR2),VAR2,5);