{市盈率}
市盈率:=C/FINANCE(33)<100;
去除ST:=EXIST(C/REF(C,1)>1.055,60);
去除停牌:=DYNAINFO(4)>0;
基本面:=市盈率 AND 去除ST AND 去除停牌;
{紫黄同现的强庄}
JJ :=(C*3+H+L+O)/6;SK := EMA(JJ,13) - EMA(JJ,21);
SD := EMA(SK,3);
SP := EMA(SK,10);
A1:=EMA(C,7)-EMA(C,21);
B1:=EMA((0.668*REF(A1,1)+0.333*A1),1);
X1:=V/SUM(V,13);
X2:=DMA(C,X1);
X3:=(C-X2)/X2*40;
L2:=MA(AMOUNT/(100*V),13);
CYS13:= (C-L2)/L2*100;
紫黄趋势:=cys13>3;
{两只喜鹊}
C1:=O>REF(C,1) AND L>REF(H,1);
C2:=BETWEEN(C/O,1.045,0.98);
C3:=H/MAX(C,O)>MAX(C,O)/MIN(C,O) OR H/MAX(C,O)>1.03;
C4:=MIN(C,O)/L<MAX(C,O)/MIN(C,O) AND MIN(C,O)/L<1.02;
C5:=BETWEEN(V/REF(V,1),1.1,4);
C6:=C>MA(C,5) AND C>MA(C,10) AND C>MA(C,20);
C7:=C=HHV(C,7);
一只喜鹊:=C1 AND C2 AND C3 AND C4 AND C5 AND C6 AND C7 AND CYS13>5,COLORYELLOW;
D1:=O/REF(C,1)>0.98;
D2:=L>REF(H,2);
D3:=C/REF(MAX(C,O),1)>1.01;
今天:=D1 AND D2 AND D3;
两只喜鹊出现:=REF(一只喜鹊,1) AND 今天;
{量能}
量能形态:=V>REF(V,1);
个股资金线:=MA(C,1)/MA(REF(C,18),18)*100,LINETHICK2,COLOR00FFFF;
资金生命线:=MA(FORCAST(个股资金线,20),2),COLORMAGENTA,LINETHICK2;
个股趋势A:=EXPMEMA(个股资金线,1),COLORCYAN,LINETHICK1;
个股趋势:=EXPMEMA(个股趋势A,5),COLORCYAN,LINETHICK1;
生命趋势:=(个股资金线>资金生命线 AND 个股资金线>=REF(个股资金线,1) AND 资金生命线>=REF(资金生命线,1))*(0.2);
生命趋势1:=(资金生命线>=REF(资金生命线,1))*(0.2);
两只喜鹊:基本面 AND 紫黄趋势 AND 两只喜鹊出现 AND C>O,COLORRED;