BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
DWN:BBI-P*STD(BBI,N),linethick2;
UPR:BBI+P*STD(BBI,N),linethick2;
DRAWTEXT(CROSS(UPR,CLOSE),H*1.02,'减仓'),COLORBLUE;
DRAWICON(CROSS(UPR,CLOSE),H*1.01,2),COLORBLUE;
G:=(HIGH+LOW+CLOSE+OPEN)/4;
MA3:MA(G,3);
MA7:MA(G,7);
DRAWTEXT(COUNT(CROSS(MA3,MA7),2)>=1 AND CLOSE> REF (CLOSE,1),H*0.93,'买入'),COLORBLUE;
DRAWICON(COUNT(CROSS(MA3,MA7),2)>=1 AND CLOSE> REF (CLOSE,1),H*0.95,1),COLORBLUE;