N:=5;M:=3;
CV:=CLOSE;
bbiboll:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;
UPR:=BBIBOLL+6*STD(BBIBOLL,11);
DWN:=BBIBOLL-6*STD(BBIBOLL,11);
QJJ:=vol/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2)));
HSL:=(XVL/20)/1.15;
//{ _同花顺股票指标公式}
攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
LLJX:=EMA(攻击,n);0,POINTDOT,colorwhite;
B1:SUM(LLJX,1),colorcyan;
B2:SUM(LLJX,2),colorcyan;
B3:SUM(LLJX,3),colorcyan;
B4:SUM(LLJX,4),colorcyan;
B5:SUM(LLJX,5),colorcyan;
B6:SUM(LLJX,6),colorcyan;
B7:SUM(LLJX,7),colorcyan;
B8:SUM(LLJX,8),colorcyan;
B9:SUM(LLJX,9),colorcyan;
B10:SUM(LLJX,10),colorcyan;
A1:IF(B1>REF(B1,1),B1,NULL),colorred;
A2:IF(B2>REF(B2,1),B2,NULL),colorred;
A3:IF(B3>REF(B3,1),B3,NULL),colorred;
A4:IF(B4>REF(B4,1),B4,NULL),colorred;
A5:IF(B5>REF(B5,1),B5,NULL),colorred;
A6:IF(B6>REF(B6,1),B6,NULL),colorred;
A7:IF(B7>REF(B7,1),B7,NULL),colorred;
A8:IF(B8>REF(B8,1),B8,NULL),colorred;
A9:IF(B9>REF(B9,1),B9,NULL),colorred;
A10:IF(B10>REF(B10,1),B10,NULL),colorred;
XG:=B1 AND B2 AND B3 AND B4 AND B5 AND B6 AND B7 AND B8 AND B9 AND B10 AND (CLOSE-OPEN)>=(UPR-BBIBOLL) AND V/REF(V,1)>=M;
DRAWBMP(XG ,0,'进'),colorred;