MA5:=MA(C,5),COLORYELLOW;
MA10:=MA(CLOSE,10),COLORFF00FF;
MA30:=MA(C,30),COLORRED,LINETHICK2;
跌:=IF(MA(CLOSE,30)<=REF(MA(CLOSE,30),1),MA(CLOSE,30),DRAWNULL),COLORGREEN,LINETHICK2;
MA60:=MA(CLOSE,60),COLORFFCC66;
M1:=EMA(C,12)-EMA(C,26);
M2:=EMA(M1,9);
MR:=CROSS(M1,M2) AND V/REF(V,1)>2 AND CROSS(MA5,MA10) AND C>O AND TIME<=0935;
STICKLINE(MR,O,(O+C)/2,2.5,0),COLORYELLOW;
DRAWTEXT(MR,L*1,'买买买'),COLORYELLOW;
{日:=120; 昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
LOW2:REFDATE(H5,DATE),COLORYELLOW,LINETHICK3;
LOW1:REFDATE(低1,DATE),COLORGREEN,LINETHICK3;
{DRAWICON(CROSS(C,LOW2) AND L,L*1,34);}
{STICKLINE(CROSS(C,LOW2),L,L*999999999,3,0),COLORGREEN;}
N:=21;M:=55;Q:=3;
回归:=EMA(SLOPE(CLOSE,N)*20+CLOSE,M)*1,COLORMAGENTA,LINETHICK3;
平滑:=EMA(CLOSE,Q),COLORYELLOW,LINETHICK2;
简单差:=平滑-回归;
DRAWICON(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),平滑,9);