买线:EMA(C,2),COLORRED,LINETHICK1;
卖线: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;
买线:EMA(C,2),COLORRED,LINETHICK1;
卖线: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;