A:=MAX(MA(C,60),MA(C,120)); B:=MIN(MA(C,60),MA(C,120));
做多:=C>A,COLORRED;
做空:=C<B,COLORGREEN;
观望:=A>=C AND C>=B,COLORYELLOW ;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9); 短线:=(DIF-DEA)*3,COLORCYAN,LINETHICK2;
DIF2:=EMA(CLOSE,60)-EMA(CLOSE,130);
DEA2:=EMA(DIF2,45);
中线:(DIF2-DEA2)*2,COLORLIRED,LINETHICK2;
DIF3:=EMA(CLOSE,240)-EMA(CLOSE,520);
DEA3:=EMA(DIF3,180);
长线:(DIF3-DEA3)*2,COLORRED,LINETHICK2;
高位转:HHV(长线,450),COLORGREEN,;
低位转:LLV(长线,450),COLORCYAN,;
高位转1:HHV(中线,450),COLORGREEN,DOTLINE;
低位转1:LLV(中线,450),COLORCYAN,DOTLINE;
STICKLINE(C>A AND 长线<0,低位转,高位转1,8,0),COLORMAGENTA;
STICKLINE(C<B,低位转,高位转1,8,0),COLORLICYAN;
STICKLINE(C>A,低位转,高位转1,8,0),COLORLIRED;
DRAWBAND(高位转,RGB(0, 0, 205),高位转1,RGB(139, 62, 47));
STICKLINE(A>=C AND C>=B AND 中线<REF(中线,1),低位转,高位转1,8,0),COLORBLUE;
DRAWTEXT(CROSS(长线,中线) AND 长线>0,高位转1-0.01,'▼顶 '), COLORCYAN;
DRAWTEXT(CROSS(中线,低位转) ,中线,'底'), COLORYELLOW;
STICKLINE(A>=C AND C>=B AND 中线>REF(中线,1),低位转,高位转1,8,0),COLORYELLOW;
(DIF2-DEA2)*2,COLORCYAN; (DIF3-DEA3)*2,COLORRED,LINETHICK2; 0,COLORWHITE;
STICKLINE(中线<低位转 ,中线,低位转,8,0),COLORWHITE; HHV(长线,450),COLORGREEN,;
LLV(长线,450),COLORCYAN,;
HHV(中线,450),COLORGREEN,DOTLINE; LLV(中线,450),COLORCYAN,DOTLINE;
DRAWTEXT(CROSS(低位转1,长线) ,长线-0.01,'大底'), COLORYELLOW;
STICKLINE(长线<低位转1,长线,低位转1,8,0),COLORMAGENTA;