MA5:MA(C,5),COLORRED;
MA13:MA(C,13),COLORYELLOW;
MA34:MA(C,34),COLORBLUE;
阳涨幅:=5;
阳倍量:=2;
单阳:=C>O*(1+阳涨幅/100) AND vol>REF(VOL,1)*阳倍量;
DRAWTEXT(单阳,L*0.98,'阳'),COLOR00FFFF;
高不破价:=REF(C,BArslAST(单阳));
中不破价:=REF((C+L)/2,BARSLAST(单阳));
低不破价:=REF(L,BARSLAST(单阳));
单阳不破:=BARSLAST(单阳)<11 AND (LLV(L,BARSLAST(单阳))>低不破价 OR LLV(L,BARSLAST(单阳))=低不破价);
STICKLINE(单阳不破,低不破价-低不破价*0.003,低不破价,11,0),COLORRED;
DRAWTEXT(BARSLAST(单阳)=1 AND 单阳不破,低不破价*0.99,'1'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=2 AND 单阳不破,低不破价*0.99,'2'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=3 AND 单阳不破,低不破价*0.99,'3'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=4 AND 单阳不破,低不破价*0.99,'4'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=5 AND 单阳不破,低不破价*0.99,'5'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=6 AND 单阳不破,低不破价*0.99,'6'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=7 AND 单阳不破,低不破价*0.99,'7'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=8 AND 单阳不破,低不破价*0.99,'8'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=9 AND 单阳不破,低不破价*0.99,'9'),COLORGREEN;
MA10:=MA(CLOSE,10);
MA54:=MA(CLOSE,54);
PL1:=(((CLOSE - MA54) / MA54) < 0.1);
PL2:=(((CLOSE - MA10) / MA10) < 0.3);
偏离率:=(((PL1 = 1) AND (PL2 = 1)) * 0.2);
TJ:=((((偏离率 = 0) AND (REF(偏离率,1) = 0.2)) AND (REF((COUNT((偏离率 = 0.2),10) = 10),1) = 1)) * 1);
PL3:=BARSLAST(TJ);
PL4:=REF(H,PL3);
STICKLINE(C>0,PL4,PL4,20,0),COLORMAGENTA;
DRAWICON(REF(C,1)PL4,L,34);
DRAWICON(TJ>0,L,25);
PL5:=REF(TJ,1)=0 AND TJ;
STICKLINE(PL5,C,O,1,0)COLORRED;
PL6:=REF(C,1)PL4;
STICKLINE(PL6,C,O,1,0)COLORYELLOW;