DRAWTEXTEX(1,0,5,0,'绿色填充带-股价格远离30日均线%20'),COLORgreen;
DRAWTEXTEX(1,0,5,20,'蓝色填充带-股价格远离30日均线%30'),COLOrblue;
DRAWTEXTEX(1,0,5,40,'绿色小箭头-上引线过长,放量收阴'),COLOr53a23a;
DRAWTEXTEX(1,0,5,60,'绿色圆点-MACD长期0上后2线大数值死叉'),COLOr00823a;
DRAWTEXTEX(1,0,5,80,'k线灰色填充-价格突破BOLL上轨,高位提示'),COLOr888888;
a1:=(c/ma(c,30)-1)*100;
FILLRGN(a1>20,(l+h)/2,min(c,o)),colorgreen;
FILLRGN(a1>30,(l+h)/2,min(c,o)),colorblue;
a2:=(HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW);
drawicon(a2>=0.6 and v>ref(v,1) and c<o and ref(c,1)>ref(o,1) and c/ref(c,1)<0.99,H*1.01,5);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
a3:=(count(macd>0,30)>=25 and cross(dea,dif)and ref(dea,1)>=1)or (ref(all(macd>0,10),2) and cross(dea,dif) and ref(dea,1)>=1);
drawicon(a3=1,h*1.017,11);
KLINE(o,h,l,c,0);
MID:=MA(CLOSE,26);
UP:=MID + 2*STD(CLOSE,26);
A4:=h>up;
STICKLINE(a4,(c+o)/2,max(c,o),7,0),color555555;