买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(BU,LOW,'上'),COLORWHITE,LINETHICK3;
DRAWTEXT(BU,LOW,' ̄'),COLOR208FFF,LINETHICK3;
DRAWTEXT(SEL,HIGH,' ̄'),COLORFFFF00,LINETHICK3;
DRAWTEXT(SEL,HIGH,'下'),COLORGREEN,LINETHICK3;
STICKLINE(买线>=卖线,LOW,HIGH,0.1,1),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,8,1),COLORRED;
STICKLINE(买线<卖线,CLOSE,OPEN,8,0),COLOR00FF00;
STICKLINE(买线<卖线,LOW,HIGH,0.1,1),COLOR00FF00;
STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,6,0),COLORFFFF00;
指导线: MA(CLOSE,5),LINETHICK1,COLORFFFFFF;
界: MA(CLOSE,11),LINETHICK1,COLOR00FFFF;
中: MA(CLOSE,18),LINETHICK1,COLORLIRED;
DRAWTEXT(CROSS(指导线,界),界,'↑★'),COLORRED;
DRAWTEXT(CROSS(界,指导线),界,'↓★');