幅图
{市盈率}
市盈率:=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;
有话要说...