N:=8;
趋势:3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*
SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),COLOR00CCFF,NODRAW;
趋势线:=趋势-N;
DRAWBAND(趋势线,RGB(255,135,0),0,RGB(0,135,0));
DRAWBAND(趋势线*0.8,RGB(255,165,0),0,RGB(0,165,10));
DRAWBAND(趋势线*0.6,RGB(255,195,0),0,RGB(0,195,0));
DRAWBAND(趋势线*0.4,RGB(255,225,0),0,RGB(0,225,0));
DRAWBAND(趋势线*0.2,RGB(255,255,0),0,RGB(0,255,0));
ZZ:=SMA(趋势,5,4);
买:CROSS(趋势,ZZ)&&REF(趋势,1)<60,NODRAW,COLORFF88FF;
卖:CROSS(ZZ,趋势)&&REF(趋势,1)>80,NODRAW,COLOR00CC00;
抄底:CROSS(趋势,N),NODRAW,COLOR0000FF;
STICKLINE(抄底,0,25,0.6,0),COLOR0000FF;
DRAWICON(买,1,38);
DRAWICON(卖,趋势线+1,39);