{市盈率}
市盈率:=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="" l<1.02;<br="">
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;