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)DRAWABOVE;
STICKLINE(CROSS(ZIG(3,8),REF(ZIG(3,8),1)), 平滑, 平滑+简单差*99, 8, 0), COLORYELLOW;