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);
一波跌势完:=(单边下降 AND BArslAST(REF(布林线开口,1)=HHV(布林线开口,50))<=5 AND LOOW>REF(LOOW,1) AND C