买线:EMA(C,2),COLORRED;
卖线:EMA(SLOPE(C,21)*20+C,42),COLORYELLOW;
BUY:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(BUY,(LOW * 0.988),'↑'),COLORRED,LINETHICK5;
DRAWTEXT(BUY,(LOW * 0.958),'B'),COLORRED,LINETHICK5;
DRAWTEXT(SEL,(HIGH * 1.028),'↓'),COLORWHITE,LINETHICK5;
DRAWTEXT(SEL,(HIGH * 1.058),'S'),COLORWHITE,LINETHICK5;
STICKLINE(买线>=卖线,LOW,HIGH,0.1,1),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,8,1),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,10,1),COLORRED;
STICKLINE(买线<卖线,CLOSE,OPEN,10,0),COLORBLUE;
STICKLINE(买线<卖线,CLOSE,OPEN,8,0),COLORBLUE;
STICKLINE(买线<卖线,LOW,HIGH,0.1,1),COLORBLUE;
STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,6,0),COLORYELLOW;