买线:EMA(C,2),colorred;
卖线:DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL),coloryellow;
BU:=cross(买线,卖线);
SEL:=cross(卖线,买线);
drawtext(bu,(LOW * 0.988),'↑'),colorred,linethick5;
drawtext(bu,(LOW * 0.958),'买'),colorred,linethick5;
drawtext(sel,(HIGH * 1.028),'↓'),colorwhite,linethick5;
drawtext(sel,(HIGH * 1.058),'卖'),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;