幅圖
{市盈率}
市盈率:=C/FINANCE(33);
去除ST:=EXIST(C/REF(C,1)>1.055,60);
去除停牌:=DYNAINFO(4)>0;
去除次新:=FINANCE(42)>350;
基本面:=市盈率<150 AND 去除停牌 AND 去除次新;
{換手率}
換手率:=VOL/CAPITAL*100;
{VOL}
兩倍兩5日均量:=V/MA(V,5)>=1.6, COLORCC00FF;
{MACD基本}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
WDIF:="MACD.DIF#WEEK";
WDEA:="MACD.DEA#WEEK";
MACD金叉:=CROSS(DIF,DEA) AND DIF>=0;
{KDJ基本}
N:=9;M1:=3;M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
J:=3*K-2*D;
KD金叉:=CROSS(K,D),COLORRED;
{CCI基本}
N1:=14;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,N1))/(0.015*AVEDEV(TYP,N1));
CCI上穿100:=CROSS(CCI,90);
{均線形态}
MA5:=MA(C,5);
MA10:=MA(C,10);
MA21:=MA(C,21);
MA55:=MA(C,55);
MA120:=MA(C,120);
均線形态:=MA5>REF(MA5,1) AND MA10>REF(MA10,1) AND MA21>REF(MA21,1) AND MA55>REF(MA55,1);
{DKX}
A:=(3*C+L+O+H)/6;
DKX:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)
+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
MADKX:=MA(DKX,5);
DKX金叉:=(EXIST(CROSS(DKX,MADKX),5))*(1.1),COLOR3366CC;
量價線:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100, COLORWHITE;
DKX和量價:=DKX>=MADKX AND 量價線>REF(量價線,1);
{紫黃出現}
A1:=EMA(C,7)-EMA(C,21),LINETHICK2,COLORRED;
A2:=MA(A1,4),COLORGREEN,LINETHICK2;
B1:=EMA((0.668*REF(A1,1)+0.333*A1),1),COLORSTICK;
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;
做多:=IF(A1>=B1,A1,B1);
做空:=IF(B1-A1,B1,A1);
強莊:=STICKLINE(CYS13>5,0,-做空,2,0 ),COLORYELLOW;
主力強度:=STICKLINE(X3>0 AND 做多>0,做多+0.1,做多,1,0),COLORFF80FF;
紫黃出現:=(COUNT(CYS13>5,8)=1 AND CYS13>5 AND A1>=-0.20 AND A1<0.6 )*(0.4),COLORRED;
紫黃趨勢:=CYS13>3;
{短線趨勢}
AL:=(C+L+H+O)/4;
A91:=EMA(AL,1)-EMA(AL,60);
A92:=(EMA(A91,3)-EMA(A91,20));
A93:=(EMA(A92,3)-EMA(A92,5))*100;
M5:=SUM(A93,0);
M10:=MA(M5,5);
M20:=MA(M10,5);
短線趨勢:=M5>=REF(M5,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 兩倍兩5日均量 AND MACD金叉 AND KD金叉 AND CCI上穿100 AND 均線形态 AND DKX和量價 AND 紫黃趨勢 AND 生命趨勢),COLORRED;
選股和預警
{市盈率}
市盈率:=C/FINANCE(33);
去除ST:=EXIST(C/REF(C,1)>1.055,60);
去除停牌:=DYNAINFO(4)>0;
去除次新:=FINANCE(42)>350;
基本面:=市盈率<150 AND 去除停牌 AND 去除次新;
{換手率}
換手率:=VOL/CAPITAL*100;
{VOL}
兩倍兩5日均量:=V/MA(V,5)>=1.6, COLORCC00FF;
{MACD基本}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
WDIF:="MACD.DIF#WEEK";
WDEA:="MACD.DEA#WEEK";
MACD金叉:=CROSS(DIF,DEA) AND DIF>=0;
{KDJ基本}
N:=9;M1:=3;M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
J:=3*K-2*D;
KD金叉:=CROSS(K,D),COLORRED;
{CCI基本}
N1:=14;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,N1))/(0.015*AVEDEV(TYP,N1));
CCI上穿100:=CROSS(CCI,90);
{均線形态}
MA5:=MA(C,5);
MA10:=MA(C,10);
MA21:=MA(C,21);
MA55:=MA(C,55);
MA120:=MA(C,120);
均線形态:=MA5>REF(MA5,1) AND MA10>REF(MA10,1) AND MA21>REF(MA21,1) AND MA55>REF(MA55,1);
{DKX}
A:=(3*C+L+O+H)/6;
DKX:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)
+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
MADKX:=MA(DKX,5);
DKX金叉:=(EXIST(CROSS(DKX,MADKX),5))*(1.1),COLOR3366CC;
量價線:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100, COLORWHITE;
DKX和量價:=DKX>=MADKX AND 量價線>REF(量價線,1);
{紫黃出現}
A1:=EMA(C,7)-EMA(C,21),LINETHICK2,COLORRED;
A2:=MA(A1,4),COLORGREEN,LINETHICK2;
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;
做多:=IF(A1>=B1,A1,B1);
做空:=IF(B1-A1,B1,A1);
強莊:=STICKLINE(CYS13>5,0,-做空,2,0 ),COLORYELLOW;
主力強度:=STICKLINE(X3>0 AND 做多>0,做多+0.1,做多,1,0),COLORFF80FF;
紫黃出現:=(COUNT(CYS13>5,8)=1 AND CYS13>5 AND A1>=-0.20 AND A1<0.6 )*(0.4),COLORRED;
紫黃趨勢:=CYS13>3;
{短線趨勢}
AL:=(C+L+H+O)/4;
A91:=EMA(AL,1)-EMA(AL,60);
A92:=(EMA(A91,3)-EMA(A91,20));
A93:=(EMA(A92,3)-EMA(A92,5))*100;
M5:=SUM(A93,0);
M10:=MA(M5,5);
M20:=MA(M10,5);
短線趨勢:=M5>=REF(M5,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 兩倍兩5日均量 AND MACD金叉 AND KD金叉 AND CCI上穿100 AND 均線形态 AND DKX和量價 AND 紫黃趨勢 AND 生命趨勢),COLORRED;
有話要說...