VAR2:MA(C,5), COLORCD52B4,LINETHICK1;
上翹:IF(VAR2>REF(VAR2,1),VAR2,DRAWNULL),COLORB334FF,LINETHICK1;
下拐:IF(VAR2<REF(VAR2,1),VAR2,DRAWNULL),COLORGREEN,LINETHICK1;
VAR1:MA(C,10),COLOR69698B;
上升:IF(VAR1>REF(VAR1,1),VAR1,DRAWNULL),COLOR0000FF,LINETHICK1;
下降:IF(VAR1<REF(VAR1,1),VAR1,DRAWNULL),COLOR71C671,LINETHICK1;
M20:MA(C,20),COLOR6281CD POINTDOT;
IF(M20>=REF(M20,1),M20,DRAWNULL),LINETHICK1,COLOR1A1A8B;
IF(M20<=REF(M20,1),M20,DRAWNULL),LINETHICK1,COLOR008B45;
M60:MA(C,60),COLOR6281CD POINTDOT;
IF(M60>=REF(M60,1),M60,DRAWNULL),LINETHICK2,COLOR1A1A8B;
IF(M60<=REF(M60,1),M60,DRAWNULL),LINETHICK2,COLOR008B45;
DRAWTEXT(CROSS(84,SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100),H*1.068,'逃頂'),COLORWHITE ;
阻力:= PEAK(1,5,1),COLORGREEN,LINETHICK2;
支撐:= TROUGH(2,5,1),COLORYELLOW,LINETHICK;
DRAWTEXT(REF(支撐,1)>(支撐),LOW*0.98,'搶反彈'),COLORYELLOW;
DRAWTEXT(REF(支撐,1)<(支撐),LOW*0.98,'買入'),COLORYELLOW;
DRAWTEXT(REF(阻力,1)>(阻力),H*1.038,'逃'),COLORYELLOW;
DRAWTEXT(REF(阻力,1)<(阻力),H*1.038,'快賣'),COLORYELLOW;