源码
买线:EMA(C,2),color000999;
卖线:EMA(SLOPE(C,21)*20+C,42),coloryellow;
BUY:=cross(买线,卖线);
SEL:=cross(卖线,买线);
drawtext(buy,LOW-0.1,'买 '),colorf00ff0,linethick5;
drawtext(sel,HIGH+0.1,'卖'),colorwhite,linethick5;
stickline(买线>=卖线,low,high,0.1,1),colorred;
stickline(买线>=卖线,close,open,8,1),colorred;
stickline(买线>=卖线,close,open,10,1),;
stickline(买线<卖线,close,open,10,0),colorffff00;
stickline(买线<卖线,close,open,8,0),color00ff00;
stickline(买线<卖线,low,high,0.1,1),color00ff00;
stickline(cross(买线,卖线) or cross(卖线,买线),open,close,6,0),coloryellow;