涨幅:=(C/REF(C,1)-1)*100;
JH:=vol*CLOSE;
JHO:=SUM(JH,2)/SUM(VOL,2);
JH0:=EMA(JHO,10);
主力资金动向:=IF((JHO-JH0)*20/JHO>1,(JHO-JH0)*200/JHO,0),COLORWHITE,LINETHICK2;
短线:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORYELLOW;
中线:=(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORWHITE;
红柱持股:=20*SMA(短线,3,1),LINETHICK0,COLORRED;
蓝柱持币:=20*IF(SMA(中线,3,1)>0,SMA(中线,3,1),0),COLORFFFF00;
AAZ5:=MA(C,5),COLOR0099CC;
BB05:=ATAN((AAZ5/REF(AAZ5,1)-1)*100)*180/3.1416;
AA10:=MA(C,10);
BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;
AAZ30:=MA(C,30);
BB30:=ATAN((AAZ30/REF(AAZ30,1)-1)*100)*180/3.1416;
强势狙击:=90*(涨幅>2 AND FILTER(BB30>30 AND BB10>45 AND crOSS(BB05,60),10) AND 主力资金动向>1.50);
主力持仓:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3);
{周月季年}
MNC:=C#YEAR;MNO:=O#YEAR;MNH:=H#YEAR;MNL:=L#YEAR;MJC:=C#SEASON;MJO:=O#SEASON;MJH:=H#SEASON;MJL:=L#SEASON;MYO:=O#MONTH;MYH:=H#MONTH;MYL:=L#MONTH;MYC:=C#MONTH;周开:=O#WEEK;周高:=H#WEEK;周低:=L#WEEK;周收:=C#WEEK;
周期共振:=MNC>=MNO AND MJC>=MJO AND MYC>=MYO AND 周收>=周开;
N:=MNC>=MNO;
J:=MJC>=MJO;
Y:=MYC>=MYO;
Z:=周收>=周开;
共振:=N+J+Y+Z>=3;
CS:=DMA(AMOUNT/(100*VOL),VOL/CAPITAL);
M20:=MA(C,20);
M30:=MA(C,30);
M2:=M20>REF(M20,1);
M3:=M30>REF(M30,1);
MCS:=CS>REF(CS,1);
TRD:=M2+M3+MCS>1;{趋势}
acT:=SMA(MAX(Abs(C-O),ABS(C-REF(C,1)))/REF(C,1)*100,10,1);
YD:=ACT>LLV(ACT,13)*1.2;{异动}
A12:=ACT<=1.95 AND YD;
活跃度:=ACT>=1.95 AND TRD;{强};
龙腾四海:=100-100*(HHV(HIGH,5*100)-CLOSE)/(HHV(HIGH,5*100)-LLV(LOW,5*100));
VARR1:=EMA(EMA(CLOSE,3),1);
控:=(VARR1-REF(VARR1,1))/REF(VARR1,1)*1000;
VARR2:=100*WINNER(CLOSE*0.95);
高度控盘:=VARR2>50 AND COST(85)
选:=(龙腾四海>REF(龙腾四海,1) OR 龙腾四海=100) AND 控>40;
X_1:=EMA(CLOSE,9);
X_2:=(CLOSE+OPEN)/2;
X_3:=MA(CLOSE,3);
X_4:=MA(CLOSE,2*3);
X_5:=MA(CLOSE,3*3);
X_6:=MA(CLOSE,4*3);
X_7:=MA((X_3+X_4+X_5+X_6)/4,5);
主升浪1:=EMA(X_1*1.14,5);
主升浪2:=(EMA(X_2,3)+EMA(X_2,6)+EMA(X_2,12)+EMA(X_2,24))/4;
X_8:=EMA(EMA(EMA(CLOSE,2),2),2);
主升浪3:=MA(X_8,13)*0.999;
主升浪4:=EMA(CLOSE,3);
主升浪X:=选 OR 高度控盘 OR (主升浪4>主升浪2 AND 主升浪2>主升浪3);
全仓:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.03);
最牛妖股:=EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3);
VAR2:=(CLOSE-LLV(LOW,4))/(HHV(HIGH,3)-LLV(LOW,3))*100;
做多线:=SMA(VAR2,5,1)-8;
妖股:100*((红柱持股>1 OR 蓝柱持币>1) AND 主力资金动向>1 AND 周期共振 AND (涨幅>5 OR (主力持仓>60 AND 做多线>60 AND 涨幅>1)) AND (活跃度+主升浪X+全仓>1) AND (CROSS(最牛妖股,12) OR CROSS(最牛妖股,0) OR CROSS(最牛妖股,2) OR CROSS(最牛妖股,4) OR CROSS(最牛妖股,6))),LINETHICK2,COLORYELLOW;