源码
买线:EMA(C,2),colorred;
卖线:EMA(SLOPE(C,21)*20+C,42),coloryellow;
BU:=cross(买线,卖线);
SEL:=cross(卖线,买线);
drawtext(bu,(LOW * 0.988),'↑'),colorred,linethick5;
drawtext(bu,(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;