卖线:EMA(SLOPE(C,21)*21+C,42),POINTDOT,COLORYELLOW;
BUY:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(BUY,LOW-0.1,'▲B '),COLORF00FF0,LINETHICK5;
DRAWTEXT(SEL,HIGH+0.1,'▼S'),COLORWHITE,LINETHICK5;
STICKLINE(买线 =卖线,LOW,HIGH,0.1,1),COLORRED;
STICKLINE(买线 =卖线,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(买线 卖线,CLOSE,OPEN,2,0),COLORGREEN;
STICKLINE(买线 卖线,LOW,HIGH,0.1,1),COLORGREEN;
STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,2,0),COLORRED;