MID:=MA(CLOSE,21),COLORWHITE;
UPPER:=MID + 1.96*stD(CLOSE,21),COLORYELLOW;
LOWER:=MID - 1.96*STD(CLOSE,21),COLORYELLOW;
UP:=MID + 2.58*STD(CLOSE,21),COLORFF00FF;
LOOW:=MID - 2.58*STD(CLOSE,21),COLORFF00FF;
单边上升:=(C>MID);
单边下降:=(C
多头行情:=C>MA(C,5) AND MA(C,5)>MA(C,10);
股价在高位:=((C-LLV(C,30))/(HHV(C,30)-LLV(C,30))>0.6);
股价在低位:=((C-LLV(C,30))/(HHV(C,30)-LLV(C,30))<0.4);
布林线缩口:=((UPPER-MID)/MID<0.05);
一波行情起:=(BArslAST(布林线缩口)<=3 AND V>MA(V,3) AND 股价在低位 AND C>REF(C,1) AND C>MA(C,10));
一波行情起XG:FILTER(一波行情起,5);