KK:=HHV(EMA(C,T),T);
DD:EMA(0.637*REF(KK,1)+0.333*KK,3),COLORGREEN,LINETHICK2;
IF(DD>REF(DD,1),DD,DRAWNULL),COLORRED,LINETHICK2;
IF(DD<REF(DD,1),DD,DRAWNULL),COLORGREEN;
角度:=ATAN((DD/REF(DD,1)-1)*100)*180/3.1416;
AA:=CROSS(DD,REF(DD,1));
买点:IF(AA AND 角度>DUMI AND 角度<DUMX,30,0),DRAWNULL,COLORRED;
DRAWTEXT(买点,L*0.96,'∠45上升'),COLORWHITE;
STICKLINE(买点,H,L,0.8,0),COLORFF0000;
STICKLINE(买点,O,C,5,0),COLORFF0000,LINETHICK2;