买线:=EMA(C,2);
卖线:EMA(SLOPE(C,21)*21+C,42),COLORRED,LINETHICK3;
BU:=CROSS(买线,卖线);{股票指标网}
SEL:=CROSS(卖线,买线);
DRAWTEXT(BU,LOW-0.1,'▲B'),COLORRED;
DRAWTEXT(SEL,HIGH+0.1,'VS'),COLORGREEN;
STICKLINE(买线>=卖线,LOW,HIGH,0.1,1),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,2,0),COLORRED;
STICKLINE(买线<卖线,CLOSE,OPEN,2,0),COLORGREEN;
STICKLINE(买线<卖线,LOW,HIGH,0.1,1),COLORGREEN;