找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 股票 资源 源码
查看: 298|回复: 0

通达信【鱼游金龙】副图+选股,捕捉强势主升,暴雨入河鱼跃成龙共振信号

[复制链接]

719

主题

90

回帖

2万

积分

管理员

积分
20831
发表于 2024-10-25 08:30:44 | 显示全部楼层 |阅读模式


第一部分 指标介绍
通过饵和入河信号做诱饵,鱼信号游进去,再通过暴雨信号的助力,鱼跃龙头化成龙,开启一波龙头主升浪走势,牛市多涨停,好好把握市场,信号仅供参考
1.暴雨来袭或水流进河,没有鱼游很大可能就是洪涝,不可进场,观望;
2.暴雨来袭或水流进河,水满和鱼游同时都是出现,可当日参考或者次日开盘可低吸。
公式包括两附图,七个选股公式,选股公式包括单信号选股以及三共振和四共振信号模式,共振信号数量适中甚至更少仅供参考,手机电脑通用,无未来函数
第二部分 指标图示

第三部分 公式源码
{鱼游金龙组合副图--}
DRAWGBK(C>1,RGB(0,0,0),RGB(1,1,1),1,0,0);
DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);
STICKLINE(DIFF>=DEA,5,10,2,1),COLORRED;
STICKLINE(DIFF<DEA,5,10,2,1),COLORGREEN;
RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K1:=SMA(RSV1,3,1);
D:=SMA(K1,3,1);
STICKLINE(K1>=D,10,15,2,1),COLORRED;
STICKLINE(K1<D,10,15,2,1),COLORGREEN;
LC:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;
STICKLINE(RSI1>=RSI2,15,20,2,1),COLORRED;
STICKLINE(RSI1<RSI2,15,20,2,1),COLORGREEN;
RSV:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
LWR1:=SMA(RSV,3,1);
LWR2:=SMA(LWR1,3,1);
STICKLINE(LWR1>=LWR2,20,25,2,1),COLORRED;
STICKLINE(LWR1<LWR2,20,25,2,1),COLORGREEN;
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
STICKLINE(CLOSE>=BBI,25,30,2,1),COLORRED;
STICKLINE(CLOSE<BBI,25,30,2,1),COLORGREEN;
MTM:=CLOSE-REF(CLOSE,1);
MMS:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);
MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);
STICKLINE(MMS>=MMM,30,35,2,1),COLORRED;
STICKLINE(MMS<MMM,30,35,2,1),COLORGREEN;
MAV:=(C*2+H+L)/4;
SK:=EMA(MAV,13)-EMA(MAV,34);
SD1:=EMA(SK,5);
空方主力:=(-2*(SK-SD1))*3.8,COLORGREEN;
多方主力:=(2*(SK-SD1))*3.8,COLORRED;
STICKLINE(多方主力>=空方主力,37,42,2,0),COLORRED;
STICKLINE(多方主力<空方主力,37,42,2,0),COLORGREEN;
MA11:=MA(CLOSE,5);
MA22:=REF(MA(CLOSE,5),1);
STICKLINE(MA22>MA11,43,48,2,0),COLORGREEN;
STICKLINE(MA22<= MA11,43,48,2,0),COLORRED;
GU2:=IF(MONTH<12,1,1);
GU3:=(2*CLOSE+HIGH+LOW)/4;
GU4:=LLV(LOW,34);
GU5:=HHV(HIGH,34);
主力:=EMA((GU3-GU4)/(GU5-GU4)*100,13)*GU2;
散户:=EMA(0.667*REF(主力,1)+0.333*主力,2);
STICKLINE(主力<散户,49,54,2,0),COLORGREEN;
STICKLINE(主力>=散户,49,54,2,0),COLORRED;
STICKLINE((多方主力>=空方主力) AND(MA22<= MA11)  AND (主力>=散户) ,56,61,3,0),COLORYELLOW;
STICKLINE((多方主力<空方主力) AND((MA22)>MA11)  AND (主力<散户) ,56,61,3,0),COLORCYAN;
STICKLINE((多方主力>=空方主力) AND (MA22<= MA11) AND (主力>=散户)
AND (DIFF>=DEA) AND (K1>=D)  AND (RSI1>=RSI2) AND (LWR1>=LWR2) AND (CLOSE>=BBI)
AND (MMS>=MMM),63,68,3,0),COLORMAGENTA;
X_1:=MA(CLOSE,10);
X_2:=MA(CLOSE,55);
X_3:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
X_4:=FILTER(X_3,10);
X_5:=BARSLAST(X_4);
X_6:=REF(HIGH,X_5+2);
X_7:=REF(HIGH,X_5+1);
X_8:=REF(HIGH,X_5);
X_9:=MAX(X_6,X_7);
X_10:=MAX(X_9,X_8);
X_11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
X_12:=X_5<150;
X_13:=(OPEN-X_10)/X_10*100<30;
X_14:=(CLOSE-LLV(LOW,X_5))/LLV(LOW,X_5)*100<50;
X_15:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
X_16:=VOL/MA(VOL,5)<3.5;
X_17:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
X_18:=X_11 AND X_12 AND X_13 AND X_14 AND X_15 AND X_16 AND X_17;
X_19:=FILTER(X_18,15);
X_20:=(CLOSE-X_2)/X_2<0.1;
X_21:=(CLOSE-X_1)/X_1<0.3;
X_22:=(X_20=1 AND X_21=1)*0.2;
X_23:=(X_22=0 AND REF(X_22,1)=0.2 AND REF(COUNT(X_22=0.2,10)=10,1)=1)*(-0.1);
X_24:=X_23=(-0.1);
X_25:=X_19 OR X_24;
X_27:=VOL/REF(VOL,1)>1.2 AND CLOSE>OPEN OR (LOW>REF(HIGH,1) AND OPEN>CLOSE AND VOL/REF(VOL,1)>1.2);
X_28:=IF(CODELIKE(3) OR (CODELIKE(4) AND DATE>=1200824),CLOSE>=ZTPRICE(REF(CLOSE,1),0.2) AND CLOSE=HIGH,CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH);
X_29:=X_25 AND X_27 AND X_28 AND REF(NOT(X_28),1) AND (多方主力>=空方主力)
AND (MA22<= MA11) AND (主力>=散户) AND (DIFF>=DEA) AND (K1>=D)  AND (RSI1>=RSI2) AND (LWR1>=LWR2) AND (CLOSE>=BBI) AND (MMS>=MMM) AND DIFF>=0 ;
MID:=MA(C,15)*1.005;
VART1:=POW((C-MID),2);
VART2:=MA(VART1,15);
VART3:=SQRT(VART2);
UPPER:=MID+2*VART3;
LOWER:=MID-2*VART3;
揽月线:=REF(UPPER,1),COLOR00FFFF;
{DRAWICON(CLOSE>揽月线,LOW,9);
DRAWICON(REF(C,1)>揽月线 AND CLOSE<揽月线,HIGH,2);}
AA:=CLOSE-揽月线;
X_30:=(AA>0) AND (REF(AA,1)<0) AND (REF(AA,2)<0) AND (REF(AA,3)<0)
AND  (多方主力>=空方主力) AND (MA22<= MA11) AND (主力>=散户) AND (DIFF>=DEA) AND (K1>=D)  AND (RSI1>=RSI2) AND (LWR1>=LWR2) AND (CLOSE>=BBI) AND (MMS>=MMM) AND (DIFF>=0);
DRAWICON(X_29 OR X_30,86,9);
M1:=(-( HHV(EMA(C,5),14)-C)/C*5000);
M2:=(CLOSE+LOW+3*OPEN+HIGH)/6;
M3:=(20*M2+19*REF(M2,1)+18*REF(M2,2)+17*REF(M2,3)+16*REF(M2,4)+15*REF(M2,5)+14*REF(M2,6)+13*REF(M2,7)
+12*REF(M2,8)+11*REF(M2,9)+10*REF(M2,10)+9*REF(M2,11)+8*REF(M2,12)+7*REF(M2,13)+6*REF(M2,14)
+5*REF(M2,15)+4*REF(M2,16)+3*REF(M2,17)+2*REF(M2,18)+REF(M2,20))/210;
M4:=MA(M3,6);
M5:=(M3-M4)*1.2;
M6:=(O*2+H+L)/4*10;
M7:=EMA(M6,6)-EMA(M6,55);
M8:=EMA(M7,6);
M9:=(M7-M8)*0.06;
M10:=M5+M9;
M11:=M10>0;
M12:=MA(O,3),COLORRED,LINETHICK;
M13:=MA(O,13),COLORRED,LINETHICK;
M14:=MA(O,34),LINETHICK;
M15:=M12>=M13 AND M14>=REF(M14,1);
M16:=EMA(O,12);
M17:=EMA(O,50);
M18:=M16-M17>0;
M19:=C/REF(C,1)-1;
M20:=IF(M15,2,0)+IF(M11,2,0)+IF(M18,2,0)+M19;
M21M20/10+M1/1000)*100+25,COLORWHITE;
100;
快牛突破预警:=CROSS(M21,100) AND (C/REF(C,1)>1.03);
超牛: STICKLINE(快牛突破预警,0,100,0.1,0),COLORYELLOW;
EXP1:=EMA(CLOSE,5);
EXP2:=EMA(CLOSE,29);
强势:=IF(SLOPE(EXP1,5)>0,1,0);
强势暴雨:=IF(强势=1,1,0)  AND MA(V,5)/CAPITAL >0.015 AND  (C-O)/O>1.04 OR C/REF(C,1) >1.095 AND MA(C,60)>REF( MA(C,60),1) AND  FILTER (C/REF(C,10)>1.15,30);
STICKLINE(强势暴雨,-100,-58,2,0),COLORBLUE;
A1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
A2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),A1);
雨水1:=EMA(A2,200)*1.118;
河边:=(C-REF(C,1))/REF(C,1)*100>7;
河水:=CROSS(C,雨水1) AND 河边;
水流进河:=河水,STICK;
AHC1:=CLOSE*VOL;
AHC22:=EMA((EXPMA(AHC1,23)/EXPMA(VOL,23)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);
通道:=1.0668*AHC22,COLOR9F5F9F,LINETHICK3;
溪流:=CROSS(C,通道) AND REF(C,1)*1.07-C<0.007 AND C>O*0.5;
并流:=溪流,STICK;
STICKLINE(水流进河 OR 并流,-100,-8,1.5,0),COLORFF8000;
VAR31:=HHV(HHV(LOW,14),240);
LM:=EMA(EMA(VAR31,14)+2*STD(VAR31,14),8);
YLM:=C>LM ;
VUR0:=(2*O+H+L+3*C)/7;
VUR1:=CAPITAL*VUR0;
VUR2:=SMA(AMOUNT,10,1)/1000;
VUR3:=MA(C*3,5);
VUR4:=VUR2*C*3/VUR3*1/10;
VUR5:=VUR2*O*3/VUR3*1/10;
VUR6:=VUR2*H*3/VUR3*1/10;
VUR7:=VUR2*L*3/VUR3*1/10;
VUR8:=(2*VUR5+VUR6+VUR7+3*VUR4)/7;
VUR9:=DMA(EMA(VUR4,2),SUM(V,1)*VUR8);
VUR10:=EMA(VUR9,2);
VURA:=VUR9>VUR10;
VURB:=EMA(VUR1-VUR9,1);
VURC:=REF(VURB,1);
VURD:=VURB>VURC;
VURS:=VURD AND C>O;
MA250:=MA(C,250);
鱼:=VURA AND VURS AND C>=HHV(C,60) AND H/C<=1.02 AND C>MA250 AND C/REF(C,1)>1.045;
鱼跃龙门:=鱼 AND YLM ;
STICKLINE(鱼,0,鱼*-58.5,2.0,0),COLORFF00FF;
STICKLINE(鱼跃龙门,-9,鱼*-58,2.8,0),COLOR009999;
STICKLINE(鱼跃龙门,-9,鱼*-58,2,5),COLOR009999;
STICKLINE(鱼跃龙门,-9,鱼*-58,2,0),COLOR00BBBB;
STICKLINE(鱼跃龙门,-9,鱼*-58,1,0),COLOR00DDDD;
STICKLINE(鱼跃龙门,-9,鱼*-58,0.5,0),COLORYELLOW;
STICKLINE(鱼跃龙门,-9,鱼*-58,0.4,0),COLORRED;
{水=筹码}
JC1:=MAX(C-LC,0);{收盘价-LC和0的较大值}
JC2:=ABS(C-LC);{收盘价-LC的绝对值}
RS1:=SMA(JC1,6,1)/SMA(JC2,6,1)*100;{JC1的6日[1日权重]移动平均/JC2的6日[1日权重]移动平均*100}
RS2:=SMA(JC1,12,1)/SMA(JC2,12,1)*100;
RS3:=SMA(JC1,24,1)/SMA(JC2,24,1)*100;
RS:=(RS1+RS2+RS3)/3;
N:=120;
K:=1;
WVAR1:=LLV(LOW,N);
WVAR2:=HHV(HIGH,N);
SD:=100*(CLOSE-WVAR1)/(WVAR2-WVAR1);{收盘价在30日中的相对最低价位置}
个股MSD:=MA(SD,K);{个股收盘价在30日中的相对最低价位置}
WVAR3:=LLV(INDEXL,N);
WVAR4:=HHV(INDEXH,N);
DP:=100*(INDEXC-WVAR3)/(WVAR4-WVAR3);
大盘MSD:=MA(DP,K);{大盘收盘价在30日中的相对最低价位置}
QD:=个股MSD>80;{距30日最高价20%范围}
V1:=MA(V,5); {5日均量}
V2:=V/REF(V1,1)>=0.2; {今日成交量大于前5日均量的1.2倍}
PZ1:=MA(CLOSE,144);
PZ2:=HHV(HIGH,144);
PZ3:=LLV(LOW,144);
PZ4:=(PZ2-PZ1)/PZ1;{144日最高价与均价的差比上均价}
PZ5:=(PZ1-PZ3)/PZ1;{144日最低价与均价的差比上均价}
PZ:=REF(PZ4,1)<0.35 AND REF(PZ5,1) <0.35;{144日最高最低波幅小于35%}
MA13:=MA(C,13);
MA25:=MA(C,25);
MA55:=MA(C,55);
MA144:=MA(C,144);
MAMAX:=MAX(MAX(MAX(MA13,MA25),MA55),MA144);
MAMIN:=MIN(MIN(MIN(MA13,MA25),MA55),MA144);
SL:=MAMAX/MAMIN<1.2;{均线粘合度高}
ZF1:=C/REF(C,1)>1.01;{今日涨幅大于1%}
ZF2:=C/REF(C,1)>1.02;{今日涨幅大于2%}
ZF3:=C/REF(C,1)>1.03;{今日涨幅大于3%}
ZF5:=C/REF(C,1)>1.05;{今日涨幅大于5%}
ZF9:=C/REF(C,1)>1.09;{今日涨幅大于9%}
ZF995:=C/REF(C,1)>1.0995;{今日涨幅大于9.95%}
TP1:=HIGH=HHV(HIGH,30);{今日最高价等于30日最高价}
水集中1%:=(PZ AND SL AND ZF1 AND TP1 AND QD AND RS>68);{144日波幅小于35%,30日最高价,均线粘合,当日涨幅大于3%,目前价30日回调小于20%};
水集中2%:=(PZ AND SL AND ZF2 AND TP1 AND QD AND RS>68);
水集中3%:=(PZ AND SL AND ZF3 AND TP1 AND QD AND RS>68);
水集中5%:=(PZ AND SL AND ZF5 AND TP1 AND QD AND RS>68);
水集中9%:=(PZ AND SL AND ZF9 AND TP1 AND QD AND RS>68);
水集中995%:=(PZ AND SL AND ZF9 AND TP1 AND QD AND RS>68);
STICKLINE(水集中1%,-100,-89.7,2.8,0),COLORFF8000;
STICKLINE(水集中2%,-89.7,-79.7,2.8,0),COLOR8000FF;
STICKLINE(水集中3%,-79.7,-69.7,2.8,0),COLORFF80FF;
STICKLINE(水集中5%,-69.7,-59.7,2.8,0),COLOR00FFFF;
STICKLINE(水集中9%,-59.7,-49.7,2.8,0),COLOR0000FF;
STICKLINE(水集中995%,-39.7,-49.7,2.8,0),COLORFF8000;
DRAWTEXT(水集中995%,-50,'●饵●'),COLORRED;
DRAWTEXT(鱼,-30, '※鱼游※ '),COLORYELLOW;
DRAWTEXT(鱼跃龙门,-9.9,'  ★跃★'),COLORFF00FF;
DRAWTEXT_FIX(1,0.00,0.10,0,'饵+鱼,次日开盘低吸。')COLORWHITE;
DRAWTEXT(水流进河 OR 并流,-78,'入河'),COLORCYAN;
DRAWTEXT(强势暴雨,-99,'暴雨'),COLORGREEN;
{N字回调选股}
NEN:=IF(FINANCE(3)=3 OR FINANCE(3)=4,0.2,0.1);
ZT:=C+0.01>=ZTPRICE(REF(C,1),NEN) AND C=H;
TJ1:=COUNT(ZT,13)=2; {13天内只有2次涨停,13可以自由改}
TJ2:=REF(BARSLAST(ZT)>=1,1);{回调天数大于或等于1天,回调天数可以自由改}
N字ZT AND TJ1 AND TJ2 AND NOT(COUNT(EVERY(ZT,2),13)>=1)AND NOT(CODELIKE('688')))*88,COLORWHITE;

{鱼游金龙共振副图--}
DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);
RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K1:=SMA(RSV1,3,1);
D:=SMA(K1,3,1);
HSL:=V/CAPITAL*100>5;
LC:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;
RSV:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
LWR1:=SMA(RSV,3,1);
LWR2:=SMA(LWR1,3,1);
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
MTM:=CLOSE-REF(CLOSE,1);
MMS:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);
MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);
MAV:=(C*2+H+L)/4;
SK:=EMA(MAV,13)-EMA(MAV,34);
SD1:=EMA(SK,5);
空方主力:=(-2*(SK-SD1))*3.8,COLORGREEN;
多方主力:=(2*(SK-SD1))*3.8,COLORRED;
MA11:=MA(CLOSE,5);
MA22:=REF(MA(CLOSE,5),1);
GU2:=IF(MONTH<12,1,1);
GU3:=(2*CLOSE+HIGH+LOW)/4;
GU4:=LLV(LOW,34);
GU5:=HHV(HIGH,34);
主力:=EMA((GU3-GU4)/(GU5-GU4)*100,13)*GU2;
散户:=EMA(0.667*REF(主力,1)+0.333*主力,2);
X_1:=MA(CLOSE,10);
X_2:=MA(CLOSE,55);
X_3:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
X_4:=FILTER(X_3,10);
X_5:=BARSLAST(X_4);
X_6:=REF(HIGH,X_5+2);
X_7:=REF(HIGH,X_5+1);
X_8:=REF(HIGH,X_5);
X_9:=MAX(X_6,X_7);
X_10:=MAX(X_9,X_8);
X_11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
X_12:=X_5<150;
X_13:=(OPEN-X_10)/X_10*100<30;
X_14:=(CLOSE-LLV(LOW,X_5))/LLV(LOW,X_5)*100<50;
X_15:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
X_16:=VOL/MA(VOL,5)<3.5;
X_17:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
X_18:=X_11 AND X_12 AND X_13 AND X_14 AND X_15 AND X_16 AND X_17;
X_19:=FILTER(X_18,15);
X_20:=(CLOSE-X_2)/X_2<0.1;
X_21:=(CLOSE-X_1)/X_1<0.3;
X_22:=(X_20=1 AND X_21=1)*0.2;
X_23:=(X_22=0 AND REF(X_22,1)=0.2 AND REF(COUNT(X_22=0.2,10)=10,1)=1)*(-0.1);
X_24:=X_23=(-0.1);
X_25:=X_19 OR X_24;
X_27:=VOL/REF(VOL,1)>1.2 AND CLOSE>OPEN OR (LOW>REF(HIGH,1) AND OPEN>CLOSE AND VOL/REF(VOL,1)>1.2);
X_28:=IF(CODELIKE(3) OR (CODELIKE(4) AND DATE>=1200824),CLOSE>=ZTPRICE(REF(CLOSE,1),0.2) AND CLOSE=HIGH,CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH);
X_29:=X_25 AND X_27 AND X_28 AND REF(NOT(X_28),1) AND (多方主力>=空方主力) AND (MA22<= MA11) AND (主力>=散户) AND (DIFF>=DEA) AND (K1>=D)  AND (RSI1>=RSI2) AND (LWR1>=LWR2) AND (CLOSE>=BBI) AND (MMS>=MMM) AND DIFF>=0 ;
MID:=MA(C,15)*1.005;
VART1:=POW((C-MID),2);
VART2:=MA(VART1,15);
VART3:=SQRT(VART2);
UPPER:=MID+2*VART3;
LOWER:=MID-2*VART3;
揽月线:=REF(UPPER,1),COLOR00FFFF;
AA:=CLOSE-揽月线;
X_30:=(AA>0) AND (REF(AA,1)<0) AND (REF(AA,2)<0) AND (REF(AA,3)<0) AND  (多方主力>=空方主力) AND (MA22<= MA11) AND (主力>=散户) AND (DIFF>=DEA) AND (K1>=D)  AND (RSI1>=RSI2) AND (LWR1>=LWR2) AND (CLOSE>=BBI) AND (MMS>=MMM) AND (DIFF>=0);
M1:=(-( HHV(EMA(C,5),14)-C)/C*5000);
M2:=(CLOSE+LOW+3*OPEN+HIGH)/6;
M3:=(20*M2+19*REF(M2,1)+18*REF(M2,2)+17*REF(M2,3)+16*REF(M2,4)+15*REF(M2,5)+14*REF(M2,6)+13*REF(M2,7)+12*REF(M2,8)+11*REF(M2,9)+10*REF(M2,10)+9*REF(M2,11)+8*REF(M2,12)+7*REF(M2,13)+6*REF(M2,14)+5*REF(M2,15)+4*REF(M2,16)+3*REF(M2,17)+2*REF(M2,18)+REF(M2,20))/210;
M4:=MA(M3,6);
M5:=(M3-M4)*1.2;
M6:=(O*2+H+L)/4*10;
M7:=EMA(M6,6)-EMA(M6,55);
M8:=EMA(M7,6);
M9:=(M7-M8)*0.06;
M10:=M5+M9;
M11:=M10>0;
M12:=MA(O,3),COLORRED,LINETHICK;
M13:=MA(O,13),COLORRED,LINETHICK;
M14:=MA(O,34);
M15:=M12>=M13 AND M14>=REF(M14,1);
M16:=EMA(O,12);
M17:=EMA(O,50);
M18:=M16-M17>0;
M19:=C/REF(C,1)-1;
M20:=IF(M15,2,0)+IF(M11,2,0)+IF(M18,2,0)+M19;
M21:=(M20/10+M1/1000)*100+25,COLORWHITE;
快牛突破预警:=CROSS(M21,100) AND (C/REF(C,1)>1.03);
超牛:=STICKLINE(快牛突破预警,0,100,0.1,0),COLORYELLOW;
EXP1:=EMA(CLOSE,5);
EXP2:=EMA(CLOSE,29);
强势:=IF(SLOPE(EXP1,5)>0,1,0);
强势暴雨:=IF(强势=1,1,0)  AND MA(V,5)/CAPITAL >0.015 AND  (C-O)/O>1.04 OR C/REF(C,1) >1.095 AND MA(C,60)>REF( MA(C,60),1) AND  FILTER (C/REF(C,10)>1.15,30);
A1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
A2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),A1);
雨水1:=EMA(A2,200)*1.118;
河边:=(C-REF(C,1))/REF(C,1)*100>7;
河水:=CROSS(C,雨水1) AND 河边;
水流进河:=河水;
AHC1:=CLOSE*VOL;
AHC22:=EMA((EXPMA(AHC1,23)/EXPMA(VOL,23)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);
通道:=1.0668*AHC22,COLOR9F5F9F,LINETHICK3;
溪流:=CROSS(C,通道) AND REF(C,1)*1.07-C<0.007 AND C>O*0.5;
并流:=溪流;
VAR31:=HHV(HHV(LOW,14),240);
LM:=EMA(EMA(VAR31,14)+2*STD(VAR31,14),8);
YLM:=C>LM ;
VUR0:=(2*O+H+L+3*C)/7;
VUR1:=CAPITAL*VUR0;
VUR2:=SMA(AMOUNT,10,1)/1000;
VUR3:=MA(C*3,5);
VUR4:=VUR2*C*3/VUR3*1/10;
VUR5:=VUR2*O*3/VUR3*1/10;
VUR6:=VUR2*H*3/VUR3*1/10;
VUR7:=VUR2*L*3/VUR3*1/10;
VUR8:=(2*VUR5+VUR6+VUR7+3*VUR4)/7;
VUR9:=DMA(EMA(VUR4,2),SUM(V,1)*VUR8);
VUR10:=EMA(VUR9,2);
VURA:=VUR9>VUR10;
VURB:=EMA(VUR1-VUR9,1);
VURC:=REF(VURB,1);
VURD:=VURB>VURC;
VURS:=VURD AND C>O;
MA250:=MA(C,250);
鱼:=VURA AND VURS AND C>=HHV(C,60) AND H/C<=1.02 AND C>MA250 AND C/REF(C,1)>1.045;
鱼跃龙门:=鱼 AND YLM ;
JC1:=MAX(C-LC,0);
JC2:=ABS(C-LC);
RS1:=SMA(JC1,6,1)/SMA(JC2,6,1)*100;
RS2:=SMA(JC1,12,1)/SMA(JC2,12,1)*100;
RS3:=SMA(JC1,24,1)/SMA(JC2,24,1)*100;
RS:=(RS1+RS2+RS3)/3;
N:=120;
K:=1;
WVAR1:=LLV(LOW,N);
WVAR2:=HHV(HIGH,N);
SD:=100*(CLOSE-WVAR1)/(WVAR2-WVAR1);{收盘价在30日中的相对最低价位置}
个股MSD:=MA(SD,K);{个股收盘价在30日中的相对最低价位置}
WVAR3:=LLV(INDEXL,N);
WVAR4:=HHV(INDEXH,N);
DP:=100*(INDEXC-WVAR3)/(WVAR4-WVAR3);
大盘MSD:=MA(DP,K);{大盘收盘价在30日中的相对最低价位置}
QD:=个股MSD>80;{距30日最高价20%范围}
V1:=MA(V,5); {5日均量}
V2:=V/REF(V1,1)>=0.2; {今日成交量大于前5日均量的1.2倍}
PZ1:=MA(CLOSE,144);
PZ2:=HHV(HIGH,144);
PZ3:=LLV(LOW,144);
PZ4:=(PZ2-PZ1)/PZ1;{144日最高价与均价的差比上均价}
PZ5:=(PZ1-PZ3)/PZ1;{144日最低价与均价的差比上均价}
PZ:=REF(PZ4,1)<0.35 AND REF(PZ5,1) <0.35;{144日最高最低波幅小于35%}
MA13:=MA(C,13);
MA25:=MA(C,25);
MA55:=MA(C,55);
MA144:=MA(C,144);
MAMAX:=MAX(MAX(MAX(MA13,MA25),MA55),MA144);
MAMIN:=MIN(MIN(MIN(MA13,MA25),MA55),MA144);
SL:=MAMAX/MAMIN<1.2;{均线粘合度高}
ZF1:=C/REF(C,1)>1.01;{今日涨幅大于1%}
ZF2:=C/REF(C,1)>1.02;{今日涨幅大于2%}
ZF3:=C/REF(C,1)>1.03;{今日涨幅大于3%}
ZF5:=C/REF(C,1)>1.05;{今日涨幅大于5%}
ZF9:=C/REF(C,1)>1.09;{今日涨幅大于9%}
ZF995:=C/REF(C,1)>1.0995;{今日涨幅大于9.95%}
TP1:=HIGH=HHV(HIGH,30);{今日最高价等于30日最高价}
水集中1%:=(PZ AND SL AND ZF1 AND TP1 AND QD AND RS>68);{144日波幅小于35%,30日最高价,均线粘合,当日涨幅大于3%,目前价30日回调小于20%};
水集中2%:=(PZ AND SL AND ZF2 AND TP1 AND QD AND RS>68);
水集中3%:=(PZ AND SL AND ZF3 AND TP1 AND QD AND RS>68);
水集中5%:=(PZ AND SL AND ZF5 AND TP1 AND QD AND RS>68);
水集中9%:=(PZ AND SL AND ZF9 AND TP1 AND QD AND RS>68);
水集中995%:=(PZ AND SL AND ZF9 AND TP1 AND QD AND RS>68);
三信号:=水集中995% AND (水流进河 OR 并流) AND 鱼  ;
三:=FILTER(三信号,13)COLORRED,LINETHICK3;
STICKLINE(三,0,1,2,0),COLORRED;
DRAWTEXT(三,0.8,'   ↖三共振'),COLORRED;
四信号:=水集中995% AND (水流进河 OR 并流) AND 鱼 AND 强势暴雨 ;
四:=FILTER(四信号,13);
STICKLINE(四,0,0.5,3,0),COLORYELLOW;
DRAWTEXT(四,0.25,'   ↖四共振'),COLORYELLOW;
{入河选股--}
DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);
RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K1:=SMA(RSV1,3,1);
D:=SMA(K1,3,1);
HSL:=V/CAPITAL*100>5;
LC:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;
RSV:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
LWR1:=SMA(RSV,3,1);
LWR2:=SMA(LWR1,3,1);
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
MTM:=CLOSE-REF(CLOSE,1);
MMS:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);
MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);
MAV:=(C*2+H+L)/4;
SK:=EMA(MAV,13)-EMA(MAV,34);
SD1:=EMA(SK,5);
空方主力:=(-2*(SK-SD1))*3.8,COLORGREEN;
多方主力:=(2*(SK-SD1))*3.8,COLORRED;
MA11:=MA(CLOSE,5);
MA22:=REF(MA(CLOSE,5),1);
GU2:=IF(MONTH<12,1,1);
GU3:=(2*CLOSE+HIGH+LOW)/4;
GU4:=LLV(LOW,34);
GU5:=HHV(HIGH,34);
主力:=EMA((GU3-GU4)/(GU5-GU4)*100,13)*GU2;
散户:=EMA(0.667*REF(主力,1)+0.333*主力,2);
X_1:=MA(CLOSE,10);
X_2:=MA(CLOSE,55);
X_3:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
X_4:=FILTER(X_3,10);
X_5:=BARSLAST(X_4);
X_6:=REF(HIGH,X_5+2);
X_7:=REF(HIGH,X_5+1);
X_8:=REF(HIGH,X_5);
X_9:=MAX(X_6,X_7);
X_10:=MAX(X_9,X_8);
X_11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
X_12:=X_5<150;
X_13:=(OPEN-X_10)/X_10*100<30;
X_14:=(CLOSE-LLV(LOW,X_5))/LLV(LOW,X_5)*100<50;
X_15:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
X_16:=VOL/MA(VOL,5)<3.5;
X_17:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
X_18:=X_11 AND X_12 AND X_13 AND X_14 AND X_15 AND X_16 AND X_17;
X_19:=FILTER(X_18,15);
X_20:=(CLOSE-X_2)/X_2<0.1;
X_21:=(CLOSE-X_1)/X_1<0.3;
X_22:=(X_20=1 AND X_21=1)*0.2;
X_23:=(X_22=0 AND REF(X_22,1)=0.2 AND REF(COUNT(X_22=0.2,10)=10,1)=1)*(-0.1);
X_24:=X_23=(-0.1);
X_25:=X_19 OR X_24;
X_27:=VOL/REF(VOL,1)>1.2 AND CLOSE>OPEN OR (LOW>REF(HIGH,1) AND OPEN>CLOSE AND VOL/REF(VOL,1)>1.2);
X_28:=IF(CODELIKE(3) OR (CODELIKE(4) AND DATE>=1200824),CLOSE>=ZTPRICE(REF(CLOSE,1),0.2) AND CLOSE=HIGH,CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH);
X_29:=X_25 AND X_27 AND X_28 AND REF(NOT(X_28),1) AND (多方主力>=空方主力) AND (MA22<= MA11) AND (主力>=散户) AND (DIFF>=DEA) AND (K1>=D)  AND (RSI1>=RSI2) AND (LWR1>=LWR2) AND (CLOSE>=BBI) AND (MMS>=MMM) AND DIFF>=0 ;
MID:=MA(C,15)*1.005;
VART1:=POW((C-MID),2);
VART2:=MA(VART1,15);
VART3:=SQRT(VART2);
UPPER:=MID+2*VART3;
LOWER:=MID-2*VART3;
揽月线:=REF(UPPER,1),COLOR00FFFF;
AA:=CLOSE-揽月线;
X_30:=(AA>0) AND (REF(AA,1)<0) AND (REF(AA,2)<0) AND (REF(AA,3)<0) AND  (多方主力>=空方主力) AND (MA22<= MA11) AND (主力>=散户) AND (DIFF>=DEA) AND (K1>=D)  AND (RSI1>=RSI2) AND (LWR1>=LWR2) AND (CLOSE>=BBI) AND (MMS>=MMM) AND (DIFF>=0);
M1:=(-( HHV(EMA(C,5),14)-C)/C*5000);
M2:=(CLOSE+LOW+3*OPEN+HIGH)/6;
M3:=(20*M2+19*REF(M2,1)+18*REF(M2,2)+17*REF(M2,3)+16*REF(M2,4)+15*REF(M2,5)+14*REF(M2,6)+13*REF(M2,7)+12*REF(M2,8)+11*REF(M2,9)+10*REF(M2,10)+9*REF(M2,11)+8*REF(M2,12)+7*REF(M2,13)+6*REF(M2,14)+5*REF(M2,15)+4*REF(M2,16)+3*REF(M2,17)+2*REF(M2,18)+REF(M2,20))/210;
M4:=MA(M3,6);
M5:=(M3-M4)*1.2;
M6:=(O*2+H+L)/4*10;
M7:=EMA(M6,6)-EMA(M6,55);
M8:=EMA(M7,6);
M9:=(M7-M8)*0.06;
M10:=M5+M9;
M11:=M10>0;
M12:=MA(O,3),COLORRED,LINETHICK;
M13:=MA(O,13),COLORRED,LINETHICK;
M14:=MA(O,34);
M15:=M12>=M13 AND M14>=REF(M14,1);
M16:=EMA(O,12);
M17:=EMA(O,50);
M18:=M16-M17>0;
M19:=C/REF(C,1)-1;
M20:=IF(M15,2,0)+IF(M11,2,0)+IF(M18,2,0)+M19;
M21:=(M20/10+M1/1000)*100+25,COLORWHITE;
快牛突破预警:=CROSS(M21,100) AND (C/REF(C,1)>1.03);
超牛:=STICKLINE(快牛突破预警,0,100,0.1,0),COLORYELLOW;
EXP1:=EMA(CLOSE,5);
EXP2:=EMA(CLOSE,29);
强势:=IF(SLOPE(EXP1,5)>0,1,0);
强势暴雨:=IF(强势=1,1,0)  AND MA(V,5)/CAPITAL >0.015 AND  (C-O)/O>1.04 OR C/REF(C,1) >1.095 AND MA(C,60)>REF( MA(C,60),1) AND  FILTER (C/REF(C,10)>1.15,30);
A1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
A2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),A1);
雨水1:=EMA(A2,200)*1.118;
河边:=(C-REF(C,1))/REF(C,1)*100>7;
河水:=CROSS(C,雨水1) AND 河边;
水流进河:=河水;
AHC1:=CLOSE*VOL;
AHC22:=EMA((EXPMA(AHC1,23)/EXPMA(VOL,23)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);
通道:=1.0668*AHC22,COLOR9F5F9F,LINETHICK3;
溪流:=CROSS(C,通道) AND REF(C,1)*1.07-C<0.007 AND C>O*0.5;
并流:=溪流;
XG:水流进河 OR 并流;
{入河选股--}

DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);
RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K1:=SMA(RSV1,3,1);
D:=SMA(K1,3,1);
HSL:=V/CAPITAL*100>5;
LC:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;
RSV:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
LWR1:=SMA(RSV,3,1);
LWR2:=SMA(LWR1,3,1);
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
MTM:=CLOSE-REF(CLOSE,1);
MMS:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);
MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);
MAV:=(C*2+H+L)/4;
SK:=EMA(MAV,13)-EMA(MAV,34);
SD1:=EMA(SK,5);
空方主力:=(-2*(SK-SD1))*3.8,COLORGREEN;
多方主力:=(2*(SK-SD1))*3.8,COLORRED;
MA11:=MA(CLOSE,5);
MA22:=REF(MA(CLOSE,5),1);
GU2:=IF(MONTH<12,1,1);
GU3:=(2*CLOSE+HIGH+LOW)/4;
GU4:=LLV(LOW,34);
GU5:=HHV(HIGH,34);
主力:=EMA((GU3-GU4)/(GU5-GU4)*100,13)*GU2;
散户:=EMA(0.667*REF(主力,1)+0.333*主力,2);
X_1:=MA(CLOSE,10);
X_2:=MA(CLOSE,55);
X_3:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
X_4:=FILTER(X_3,10);
X_5:=BARSLAST(X_4);
X_6:=REF(HIGH,X_5+2);
X_7:=REF(HIGH,X_5+1);
X_8:=REF(HIGH,X_5);
X_9:=MAX(X_6,X_7);
X_10:=MAX(X_9,X_8);
X_11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
X_12:=X_5<150;
X_13:=(OPEN-X_10)/X_10*100<30;
X_14:=(CLOSE-LLV(LOW,X_5))/LLV(LOW,X_5)*100<50;
X_15:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
X_16:=VOL/MA(VOL,5)<3.5;
X_17:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
X_18:=X_11 AND X_12 AND X_13 AND X_14 AND X_15 AND X_16 AND X_17;
X_19:=FILTER(X_18,15);
X_20:=(CLOSE-X_2)/X_2<0.1;
X_21:=(CLOSE-X_1)/X_1<0.3;
X_22:=(X_20=1 AND X_21=1)*0.2;
X_23:=(X_22=0 AND REF(X_22,1)=0.2 AND REF(COUNT(X_22=0.2,10)=10,1)=1)*(-0.1);
X_24:=X_23=(-0.1);
X_25:=X_19 OR X_24;
X_27:=VOL/REF(VOL,1)>1.2 AND CLOSE>OPEN OR (LOW>REF(HIGH,1) AND OPEN>CLOSE AND VOL/REF(VOL,1)>1.2);
X_28:=IF(CODELIKE(3) OR (CODELIKE(4) AND DATE>=1200824),CLOSE>=ZTPRICE(REF(CLOSE,1),0.2) AND CLOSE=HIGH,CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH);
X_29:=X_25 AND X_27 AND X_28 AND REF(NOT(X_28),1) AND (多方主力>=空方主力) AND (MA22<= MA11) AND (主力>=散户) AND (DIFF>=DEA) AND (K1>=D)  AND (RSI1>=RSI2) AND (LWR1>=LWR2) AND (CLOSE>=BBI) AND (MMS>=MMM) AND DIFF>=0 ;
MID:=MA(C,15)*1.005;
VART1:=POW((C-MID),2);
VART2:=MA(VART1,15);
VART3:=SQRT(VART2);
UPPER:=MID+2*VART3;
LOWER:=MID-2*VART3;
揽月线:=REF(UPPER,1),COLOR00FFFF;
AA:=CLOSE-揽月线;
X_30:=(AA>0) AND (REF(AA,1)<0) AND (REF(AA,2)<0) AND (REF(AA,3)<0) AND  (多方主力>=空方主力) AND (MA22<= MA11) AND (主力>=散户) AND (DIFF>=DEA) AND (K1>=D)  AND (RSI1>=RSI2) AND (LWR1>=LWR2) AND (CLOSE>=BBI) AND (MMS>=MMM) AND (DIFF>=0);
M1:=(-( HHV(EMA(C,5),14)-C)/C*5000);
M2:=(CLOSE+LOW+3*OPEN+HIGH)/6;
M3:=(20*M2+19*REF(M2,1)+18*REF(M2,2)+17*REF(M2,3)+16*REF(M2,4)+15*REF(M2,5)+14*REF(M2,6)+13*REF(M2,7)+12*REF(M2,8)+11*REF(M2,9)+10*REF(M2,10)+9*REF(M2,11)+8*REF(M2,12)+7*REF(M2,13)+6*REF(M2,14)+5*REF(M2,15)+4*REF(M2,16)+3*REF(M2,17)+2*REF(M2,18)+REF(M2,20))/210;
M4:=MA(M3,6);
M5:=(M3-M4)*1.2;
M6:=(O*2+H+L)/4*10;
M7:=EMA(M6,6)-EMA(M6,55);
M8:=EMA(M7,6);
M9:=(M7-M8)*0.06;
M10:=M5+M9;
M11:=M10>0;
M12:=MA(O,3),COLORRED,LINETHICK;
M13:=MA(O,13),COLORRED,LINETHICK;
M14:=MA(O,34);
M15:=M12>=M13 AND M14>=REF(M14,1);
M16:=EMA(O,12);
M17:=EMA(O,50);
M18:=M16-M17>0;
M19:=C/REF(C,1)-1;
M20:=IF(M15,2,0)+IF(M11,2,0)+IF(M18,2,0)+M19;
M21:=(M20/10+M1/1000)*100+25,COLORWHITE;
快牛突破预警:=CROSS(M21,100) AND (C/REF(C,1)>1.03);
超牛:=STICKLINE(快牛突破预警,0,100,0.1,0),COLORYELLOW;
EXP1:=EMA(CLOSE,5);
EXP2:=EMA(CLOSE,29);
强势:=IF(SLOPE(EXP1,5)>0,1,0);
强势暴雨:=IF(强势=1,1,0)  AND MA(V,5)/CAPITAL >0.015 AND  (C-O)/O>1.04 OR C/REF(C,1) >1.095 AND MA(C,60)>REF( MA(C,60),1) AND  FILTER (C/REF(C,10)>1.15,30);
A1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
A2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),A1);
雨水1:=EMA(A2,200)*1.118;
河边:=(C-REF(C,1))/REF(C,1)*100>7;
河水:=CROSS(C,雨水1) AND 河边;
水流进河:=河水;
AHC1:=CLOSE*VOL;
AHC22:=EMA((EXPMA(AHC1,23)/EXPMA(VOL,23)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);
通道:=1.0668*AHC22,COLOR9F5F9F,LINETHICK3;
溪流:=CROSS(C,通道) AND REF(C,1)*1.07-C<0.007 AND C>O*0.5;
并流:=溪流;
VAR31:=HHV(HHV(LOW,14),240);
LM:=EMA(EMA(VAR31,14)+2*STD(VAR31,14),8);
YLM:=C>LM ;
VUR0:=(2*O+H+L+3*C)/7;
VUR1:=CAPITAL*VUR0;
VUR2:=SMA(AMOUNT,10,1)/1000;
VUR3:=MA(C*3,5);
VUR4:=VUR2*C*3/VUR3*1/10;
VUR5:=VUR2*O*3/VUR3*1/10;
VUR6:=VUR2*H*3/VUR3*1/10;
VUR7:=VUR2*L*3/VUR3*1/10;
VUR8:=(2*VUR5+VUR6+VUR7+3*VUR4)/7;
VUR9:=DMA(EMA(VUR4,2),SUM(V,1)*VUR8);
VUR10:=EMA(VUR9,2);
VURA:=VUR9>VUR10;
VURB:=EMA(VUR1-VUR9,1);
VURC:=REF(VURB,1);
VURD:=VURB>VURC;
VURS:=VURD AND C>O;
MA250:=MA(C,250);
鱼:=VURA AND VURS AND C>=HHV(C,60) AND H/C<=1.02 AND C>MA250 AND C/REF(C,1)>1.045;
鱼跃龙门:=鱼 AND YLM ;
JC1:=MAX(C-LC,0);
JC2:=ABS(C-LC);
RS1:=SMA(JC1,6,1)/SMA(JC2,6,1)*100;
RS2:=SMA(JC1,12,1)/SMA(JC2,12,1)*100;
RS3:=SMA(JC1,24,1)/SMA(JC2,24,1)*100;
RS:=(RS1+RS2+RS3)/3;
N:=120;
K:=1;
WVAR1:=LLV(LOW,N);
WVAR2:=HHV(HIGH,N);
SD:=100*(CLOSE-WVAR1)/(WVAR2-WVAR1);{收盘价在30日中的相对最低价位置}
个股MSD:=MA(SD,K);{个股收盘价在30日中的相对最低价位置}
WVAR3:=LLV(INDEXL,N);
WVAR4:=HHV(INDEXH,N);
DP:=100*(INDEXC-WVAR3)/(WVAR4-WVAR3);
大盘MSD:=MA(DP,K);{大盘收盘价在30日中的相对最低价位置}
QD:=个股MSD>80;{距30日最高价20%范围}
V1:=MA(V,5); {5日均量}
V2:=V/REF(V1,1)>=0.2; {今日成交量大于前5日均量的1.2倍}
PZ1:=MA(CLOSE,144);
PZ2:=HHV(HIGH,144);
PZ3:=LLV(LOW,144);
PZ4:=(PZ2-PZ1)/PZ1;{144日最高价与均价的差比上均价}
PZ5:=(PZ1-PZ3)/PZ1;{144日最低价与均价的差比上均价}
PZ:=REF(PZ4,1)<0.35 AND REF(PZ5,1) <0.35;{144日最高最低波幅小于35%}
MA13:=MA(C,13);
MA25:=MA(C,25);
MA55:=MA(C,55);
MA144:=MA(C,144);
MAMAX:=MAX(MAX(MAX(MA13,MA25),MA55),MA144);
MAMIN:=MIN(MIN(MIN(MA13,MA25),MA55),MA144);
SL:=MAMAX/MAMIN<1.2;{均线粘合度高}
ZF1:=C/REF(C,1)>1.01;{今日涨幅大于1%}
ZF2:=C/REF(C,1)>1.02;{今日涨幅大于2%}
ZF3:=C/REF(C,1)>1.03;{今日涨幅大于3%}
ZF5:=C/REF(C,1)>1.05;{今日涨幅大于5%}
ZF9:=C/REF(C,1)>1.09;{今日涨幅大于9%}
ZF995:=C/REF(C,1)>1.0995;{今日涨幅大于9.95%}
TP1:=HIGH=HHV(HIGH,30);{今日最高价等于30日最高价}
水集中1%:=(PZ AND SL AND ZF1 AND TP1 AND QD AND RS>68);{144日波幅小于35%,30日最高价,均线粘合,当日涨幅大于3%,目前价30日回调小于20%};
水集中2%:=(PZ AND SL AND ZF2 AND TP1 AND QD AND RS>68);
水集中3%:=(PZ AND SL AND ZF3 AND TP1 AND QD AND RS>68);
水集中5%:=(PZ AND SL AND ZF5 AND TP1 AND QD AND RS>68);
水集中9%:=(PZ AND SL AND ZF9 AND TP1 AND QD AND RS>68);
水集中995%:=(PZ AND SL AND ZF9 AND TP1 AND QD AND RS>68);
饵:水集中995%;
{暴雨信号选股--}
DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);
RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K1:=SMA(RSV1,3,1);
D:=SMA(K1,3,1);
HSL:=V/CAPITAL*100>5;
LC:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;
RSV:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
LWR1:=SMA(RSV,3,1);
LWR2:=SMA(LWR1,3,1);
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
MTM:=CLOSE-REF(CLOSE,1);
MMS:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);
MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);
MAV:=(C*2+H+L)/4;
SK:=EMA(MAV,13)-EMA(MAV,34);
SD1:=EMA(SK,5);
空方主力:=(-2*(SK-SD1))*3.8,COLORGREEN;
多方主力:=(2*(SK-SD1))*3.8,COLORRED;
MA11:=MA(CLOSE,5);
MA22:=REF(MA(CLOSE,5),1);
GU2:=IF(MONTH<12,1,1);
GU3:=(2*CLOSE+HIGH+LOW)/4;
GU4:=LLV(LOW,34);
GU5:=HHV(HIGH,34);
主力:=EMA((GU3-GU4)/(GU5-GU4)*100,13)*GU2;
散户:=EMA(0.667*REF(主力,1)+0.333*主力,2);
X_1:=MA(CLOSE,10);
X_2:=MA(CLOSE,55);
X_3:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
X_4:=FILTER(X_3,10);
X_5:=BARSLAST(X_4);
X_6:=REF(HIGH,X_5+2);
X_7:=REF(HIGH,X_5+1);
X_8:=REF(HIGH,X_5);
X_9:=MAX(X_6,X_7);
X_10:=MAX(X_9,X_8);
X_11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
X_12:=X_5<150;
X_13:=(OPEN-X_10)/X_10*100<30;
X_14:=(CLOSE-LLV(LOW,X_5))/LLV(LOW,X_5)*100<50;
X_15:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
X_16:=VOL/MA(VOL,5)<3.5;
X_17:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
X_18:=X_11 AND X_12 AND X_13 AND X_14 AND X_15 AND X_16 AND X_17;
X_19:=FILTER(X_18,15);
X_20:=(CLOSE-X_2)/X_2<0.1;
X_21:=(CLOSE-X_1)/X_1<0.3;
X_22:=(X_20=1 AND X_21=1)*0.2;
X_23:=(X_22=0 AND REF(X_22,1)=0.2 AND REF(COUNT(X_22=0.2,10)=10,1)=1)*(-0.1);
X_24:=X_23=(-0.1);
X_25:=X_19 OR X_24;
X_27:=VOL/REF(VOL,1)>1.2 AND CLOSE>OPEN OR (LOW>REF(HIGH,1) AND OPEN>CLOSE AND VOL/REF(VOL,1)>1.2);
X_28:=IF(CODELIKE(3) OR (CODELIKE(4) AND DATE>=1200824),CLOSE>=ZTPRICE(REF(CLOSE,1),0.2) AND CLOSE=HIGH,CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH);
X_29:=X_25 AND X_27 AND X_28 AND REF(NOT(X_28),1) AND (多方主力>=空方主力) AND (MA22<= MA11) AND (主力>=散户) AND (DIFF>=DEA) AND (K1>=D)  AND (RSI1>=RSI2) AND (LWR1>=LWR2) AND (CLOSE>=BBI) AND (MMS>=MMM) AND DIFF>=0 ;
MID:=MA(C,15)*1.005;
VART1:=POW((C-MID),2);
VART2:=MA(VART1,15);
VART3:=SQRT(VART2);
UPPER:=MID+2*VART3;
LOWER:=MID-2*VART3;
揽月线:=REF(UPPER,1),COLOR00FFFF;
AA:=CLOSE-揽月线;
X_30:=(AA>0) AND (REF(AA,1)<0) AND (REF(AA,2)<0) AND (REF(AA,3)<0) AND  (多方主力>=空方主力) AND (MA22<= MA11) AND (主力>=散户) AND (DIFF>=DEA) AND (K1>=D)  AND (RSI1>=RSI2) AND (LWR1>=LWR2) AND (CLOSE>=BBI) AND (MMS>=MMM) AND (DIFF>=0);
M1:=(-( HHV(EMA(C,5),14)-C)/C*5000);
M2:=(CLOSE+LOW+3*OPEN+HIGH)/6;
M3:=(20*M2+19*REF(M2,1)+18*REF(M2,2)+17*REF(M2,3)+16*REF(M2,4)+15*REF(M2,5)+14*REF(M2,6)+13*REF(M2,7)+12*REF(M2,8)+11*REF(M2,9)+10*REF(M2,10)+9*REF(M2,11)+8*REF(M2,12)+7*REF(M2,13)+6*REF(M2,14)+5*REF(M2,15)+4*REF(M2,16)+3*REF(M2,17)+2*REF(M2,18)+REF(M2,20))/210;
M4:=MA(M3,6);
M5:=(M3-M4)*1.2;
M6:=(O*2+H+L)/4*10;
M7:=EMA(M6,6)-EMA(M6,55);
M8:=EMA(M7,6);
M9:=(M7-M8)*0.06;
M10:=M5+M9;
M11:=M10>0;
M12:=MA(O,3),COLORRED,LINETHICK;
M13:=MA(O,13),COLORRED,LINETHICK;
M14:=MA(O,34);
M15:=M12>=M13 AND M14>=REF(M14,1);
M16:=EMA(O,12);
M17:=EMA(O,50);
M18:=M16-M17>0;
M19:=C/REF(C,1)-1;
M20:=IF(M15,2,0)+IF(M11,2,0)+IF(M18,2,0)+M19;
M21:=(M20/10+M1/1000)*100+25,COLORWHITE;
快牛突破预警:=CROSS(M21,100) AND (C/REF(C,1)>1.03);
超牛:=STICKLINE(快牛突破预警,0,100,0.1,0),COLORYELLOW;
EXP1:=EMA(CLOSE,5);
EXP2:=EMA(CLOSE,29);
强势:=IF(SLOPE(EXP1,5)>0,1,0);
强势暴雨:IF(强势=1,1,0)  AND MA(V,5)/CAPITAL >0.015 AND  (C-O)/O>1.04 OR C/REF(C,1) >1.095 AND MA(C,60)>REF( MA(C,60),1) AND  FILTER (C/REF(C,10)>1.15,30);
{鱼游选股--}

DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);
RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K1:=SMA(RSV1,3,1);
D:=SMA(K1,3,1);
HSL:=V/CAPITAL*100>5;
LC:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;
RSV:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
LWR1:=SMA(RSV,3,1);
LWR2:=SMA(LWR1,3,1);
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
MTM:=CLOSE-REF(CLOSE,1);
MMS:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);
MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);
MAV:=(C*2+H+L)/4;
SK:=EMA(MAV,13)-EMA(MAV,34);
SD1:=EMA(SK,5);
空方主力:=(-2*(SK-SD1))*3.8,COLORGREEN;
多方主力:=(2*(SK-SD1))*3.8,COLORRED;
MA11:=MA(CLOSE,5);
MA22:=REF(MA(CLOSE,5),1);
GU2:=IF(MONTH<12,1,1);
GU3:=(2*CLOSE+HIGH+LOW)/4;
GU4:=LLV(LOW,34);
GU5:=HHV(HIGH,34);
主力:=EMA((GU3-GU4)/(GU5-GU4)*100,13)*GU2;
散户:=EMA(0.667*REF(主力,1)+0.333*主力,2);
X_1:=MA(CLOSE,10);
X_2:=MA(CLOSE,55);
X_3:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
X_4:=FILTER(X_3,10);
X_5:=BARSLAST(X_4);
X_6:=REF(HIGH,X_5+2);
X_7:=REF(HIGH,X_5+1);
X_8:=REF(HIGH,X_5);
X_9:=MAX(X_6,X_7);
X_10:=MAX(X_9,X_8);
X_11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
X_12:=X_5<150;
X_13:=(OPEN-X_10)/X_10*100<30;
X_14:=(CLOSE-LLV(LOW,X_5))/LLV(LOW,X_5)*100<50;
X_15:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
X_16:=VOL/MA(VOL,5)<3.5;
X_17:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
X_18:=X_11 AND X_12 AND X_13 AND X_14 AND X_15 AND X_16 AND X_17;
X_19:=FILTER(X_18,15);
X_20:=(CLOSE-X_2)/X_2<0.1;
X_21:=(CLOSE-X_1)/X_1<0.3;
X_22:=(X_20=1 AND X_21=1)*0.2;
X_23:=(X_22=0 AND REF(X_22,1)=0.2 AND REF(COUNT(X_22=0.2,10)=10,1)=1)*(-0.1);
X_24:=X_23=(-0.1);
X_25:=X_19 OR X_24;
X_27:=VOL/REF(VOL,1)>1.2 AND CLOSE>OPEN OR (LOW>REF(HIGH,1) AND OPEN>CLOSE AND VOL/REF(VOL,1)>1.2);
X_28:=IF(CODELIKE(3) OR (CODELIKE(4) AND DATE>=1200824),CLOSE>=ZTPRICE(REF(CLOSE,1),0.2) AND CLOSE=HIGH,CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH);
X_29:=X_25 AND X_27 AND X_28 AND REF(NOT(X_28),1) AND (多方主力>=空方主力) AND (MA22<= MA11) AND (主力>=散户) AND (DIFF>=DEA) AND (K1>=D)  AND (RSI1>=RSI2) AND (LWR1>=LWR2) AND (CLOSE>=BBI) AND (MMS>=MMM) AND DIFF>=0 ;
MID:=MA(C,15)*1.005;
VART1:=POW((C-MID),2);
VART2:=MA(VART1,15);
VART3:=SQRT(VART2);
UPPER:=MID+2*VART3;
LOWER:=MID-2*VART3;
揽月线:=REF(UPPER,1),COLOR00FFFF;
AA:=CLOSE-揽月线;
X_30:=(AA>0) AND (REF(AA,1)<0) AND (REF(AA,2)<0) AND (REF(AA,3)<0) AND  (多方主力>=空方主力) AND (MA22<= MA11) AND (主力>=散户) AND (DIFF>=DEA) AND (K1>=D)  AND (RSI1>=RSI2) AND (LWR1>=LWR2) AND (CLOSE>=BBI) AND (MMS>=MMM) AND (DIFF>=0);
M1:=(-( HHV(EMA(C,5),14)-C)/C*5000);
M2:=(CLOSE+LOW+3*OPEN+HIGH)/6;
M3:=(20*M2+19*REF(M2,1)+18*REF(M2,2)+17*REF(M2,3)+16*REF(M2,4)+15*REF(M2,5)+14*REF(M2,6)+13*REF(M2,7)+12*REF(M2,8)+11*REF(M2,9)+10*REF(M2,10)+9*REF(M2,11)+8*REF(M2,12)+7*REF(M2,13)+6*REF(M2,14)+5*REF(M2,15)+4*REF(M2,16)+3*REF(M2,17)+2*REF(M2,18)+REF(M2,20))/210;
M4:=MA(M3,6);
M5:=(M3-M4)*1.2;
M6:=(O*2+H+L)/4*10;
M7:=EMA(M6,6)-EMA(M6,55);
M8:=EMA(M7,6);
M9:=(M7-M8)*0.06;
M10:=M5+M9;
M11:=M10>0;
M12:=MA(O,3),COLORRED,LINETHICK;
M13:=MA(O,13),COLORRED,LINETHICK;
M14:=MA(O,34);
M15:=M12>=M13 AND M14>=REF(M14,1);
M16:=EMA(O,12);
M17:=EMA(O,50);
M18:=M16-M17>0;
M19:=C/REF(C,1)-1;
M20:=IF(M15,2,0)+IF(M11,2,0)+IF(M18,2,0)+M19;
M21:=(M20/10+M1/1000)*100+25,COLORWHITE;
快牛突破预警:=CROSS(M21,100) AND (C/REF(C,1)>1.03);
超牛:=STICKLINE(快牛突破预警,0,100,0.1,0),COLORYELLOW;
EXP1:=EMA(CLOSE,5);
EXP2:=EMA(CLOSE,29);
强势:=IF(SLOPE(EXP1,5)>0,1,0);
强势暴雨:=IF(强势=1,1,0)  AND MA(V,5)/CAPITAL >0.015 AND  (C-O)/O>1.04 OR C/REF(C,1) >1.095 AND MA(C,60)>REF( MA(C,60),1) AND  FILTER (C/REF(C,10)>1.15,30);
A1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
A2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),A1);
雨水1:=EMA(A2,200)*1.118;
河边:=(C-REF(C,1))/REF(C,1)*100>7;
河水:=CROSS(C,雨水1) AND 河边;
水流进河:=河水;
AHC1:=CLOSE*VOL;
AHC22:=EMA((EXPMA(AHC1,23)/EXPMA(VOL,23)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);
通道:=1.0668*AHC22,COLOR9F5F9F,LINETHICK3;
溪流:=CROSS(C,通道) AND REF(C,1)*1.07-C<0.007 AND C>O*0.5;
并流:=溪流;
VAR31:=HHV(HHV(LOW,14),240);
LM:=EMA(EMA(VAR31,14)+2*STD(VAR31,14),8);
YLM:=C>LM ;
VUR0:=(2*O+H+L+3*C)/7;
VUR1:=CAPITAL*VUR0;
VUR2:=SMA(AMOUNT,10,1)/1000;
VUR3:=MA(C*3,5);
VUR4:=VUR2*C*3/VUR3*1/10;
VUR5:=VUR2*O*3/VUR3*1/10;
VUR6:=VUR2*H*3/VUR3*1/10;
VUR7:=VUR2*L*3/VUR3*1/10;
VUR8:=(2*VUR5+VUR6+VUR7+3*VUR4)/7;
VUR9:=DMA(EMA(VUR4,2),SUM(V,1)*VUR8);
VUR10:=EMA(VUR9,2);
VURA:=VUR9>VUR10;
VURB:=EMA(VUR1-VUR9,1);
VURC:=REF(VURB,1);
VURD:=VURB>VURC;
VURS:=VURD AND C>O;
MA250:=MA(C,250);鱼:VURA AND VURS AND C>=HHV(C,60) AND H/C<=1.02 AND C>MA250 AND C/REF(C,1)>1.045;

{鱼跃龙门选股--}
DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);
RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K1:=SMA(RSV1,3,1);
D:=SMA(K1,3,1);
HSL:=V/CAPITAL*100>5;
LC:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;
RSV:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
LWR1:=SMA(RSV,3,1);
LWR2:=SMA(LWR1,3,1);
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
MTM:=CLOSE-REF(CLOSE,1);
MMS:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);
MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);
MAV:=(C*2+H+L)/4;
SK:=EMA(MAV,13)-EMA(MAV,34);
SD1:=EMA(SK,5);
空方主力:=(-2*(SK-SD1))*3.8,COLORGREEN;
多方主力:=(2*(SK-SD1))*3.8,COLORRED;
MA11:=MA(CLOSE,5);
MA22:=REF(MA(CLOSE,5),1);
GU2:=IF(MONTH<12,1,1);
GU3:=(2*CLOSE+HIGH+LOW)/4;
GU4:=LLV(LOW,34);
GU5:=HHV(HIGH,34);
主力:=EMA((GU3-GU4)/(GU5-GU4)*100,13)*GU2;
散户:=EMA(0.667*REF(主力,1)+0.333*主力,2);
X_1:=MA(CLOSE,10);
X_2:=MA(CLOSE,55);
X_3:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
X_4:=FILTER(X_3,10);
X_5:=BARSLAST(X_4);
X_6:=REF(HIGH,X_5+2);
X_7:=REF(HIGH,X_5+1);
X_8:=REF(HIGH,X_5);
X_9:=MAX(X_6,X_7);
X_10:=MAX(X_9,X_8);
X_11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
X_12:=X_5<150;
X_13:=(OPEN-X_10)/X_10*100<30;
X_14:=(CLOSE-LLV(LOW,X_5))/LLV(LOW,X_5)*100<50;
X_15:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
X_16:=VOL/MA(VOL,5)<3.5;
X_17:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
X_18:=X_11 AND X_12 AND X_13 AND X_14 AND X_15 AND X_16 AND X_17;
X_19:=FILTER(X_18,15);
X_20:=(CLOSE-X_2)/X_2<0.1;
X_21:=(CLOSE-X_1)/X_1<0.3;
X_22:=(X_20=1 AND X_21=1)*0.2;
X_23:=(X_22=0 AND REF(X_22,1)=0.2 AND REF(COUNT(X_22=0.2,10)=10,1)=1)*(-0.1);
X_24:=X_23=(-0.1);
X_25:=X_19 OR X_24;
X_27:=VOL/REF(VOL,1)>1.2 AND CLOSE>OPEN OR (LOW>REF(HIGH,1) AND OPEN>CLOSE AND VOL/REF(VOL,1)>1.2);
X_28:=IF(CODELIKE(3) OR (CODELIKE(4) AND DATE>=1200824),CLOSE>=ZTPRICE(REF(CLOSE,1),0.2) AND CLOSE=HIGH,CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH);
X_29:=X_25 AND X_27 AND X_28 AND REF(NOT(X_28),1) AND (多方主力>=空方主力) AND (MA22<= MA11) AND (主力>=散户) AND (DIFF>=DEA) AND (K1>=D)  AND (RSI1>=RSI2) AND (LWR1>=LWR2) AND (CLOSE>=BBI) AND (MMS>=MMM) AND DIFF>=0 ;
MID:=MA(C,15)*1.005;
VART1:=POW((C-MID),2);
VART2:=MA(VART1,15);
VART3:=SQRT(VART2);
UPPER:=MID+2*VART3;
LOWER:=MID-2*VART3;
揽月线:=REF(UPPER,1),COLOR00FFFF;
AA:=CLOSE-揽月线;
X_30:=(AA>0) AND (REF(AA,1)<0) AND (REF(AA,2)<0) AND (REF(AA,3)<0) AND  (多方主力>=空方主力) AND (MA22<= MA11) AND (主力>=散户) AND (DIFF>=DEA) AND (K1>=D)  AND (RSI1>=RSI2) AND (LWR1>=LWR2) AND (CLOSE>=BBI) AND (MMS>=MMM) AND (DIFF>=0);
M1:=(-( HHV(EMA(C,5),14)-C)/C*5000);
M2:=(CLOSE+LOW+3*OPEN+HIGH)/6;
M3:=(20*M2+19*REF(M2,1)+18*REF(M2,2)+17*REF(M2,3)+16*REF(M2,4)+15*REF(M2,5)+14*REF(M2,6)+13*REF(M2,7)+12*REF(M2,8)+11*REF(M2,9)+10*REF(M2,10)+9*REF(M2,11)+8*REF(M2,12)+7*REF(M2,13)+6*REF(M2,14)+5*REF(M2,15)+4*REF(M2,16)+3*REF(M2,17)+2*REF(M2,18)+REF(M2,20))/210;
M4:=MA(M3,6);
M5:=(M3-M4)*1.2;
M6:=(O*2+H+L)/4*10;
M7:=EMA(M6,6)-EMA(M6,55);
M8:=EMA(M7,6);
M9:=(M7-M8)*0.06;
M10:=M5+M9;
M11:=M10>0;
M12:=MA(O,3),COLORRED,LINETHICK;
M13:=MA(O,13),COLORRED,LINETHICK;
M14:=MA(O,34);
M15:=M12>=M13 AND M14>=REF(M14,1);
M16:=EMA(O,12);
M17:=EMA(O,50);
M18:=M16-M17>0;
M19:=C/REF(C,1)-1;
M20:=IF(M15,2,0)+IF(M11,2,0)+IF(M18,2,0)+M19;
M21:=(M20/10+M1/1000)*100+25,COLORWHITE;
快牛突破预警:=CROSS(M21,100) AND (C/REF(C,1)>1.03);
超牛:=STICKLINE(快牛突破预警,0,100,0.1,0),COLORYELLOW;
EXP1:=EMA(CLOSE,5);
EXP2:=EMA(CLOSE,29);
强势:=IF(SLOPE(EXP1,5)>0,1,0);
强势暴雨:=IF(强势=1,1,0)  AND MA(V,5)/CAPITAL >0.015 AND  (C-O)/O>1.04 OR C/REF(C,1) >1.095 AND MA(C,60)>REF( MA(C,60),1) AND  FILTER (C/REF(C,10)>1.15,30);
A1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
A2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),A1);
雨水1:=EMA(A2,200)*1.118;
河边:=(C-REF(C,1))/REF(C,1)*100>7;
河水:=CROSS(C,雨水1) AND 河边;
水流进河:=河水;
AHC1:=CLOSE*VOL;
AHC22:=EMA((EXPMA(AHC1,23)/EXPMA(VOL,23)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);
通道:=1.0668*AHC22,COLOR9F5F9F,LINETHICK3;
溪流:=CROSS(C,通道) AND REF(C,1)*1.07-C<0.007 AND C>O*0.5;
并流:=溪流;
VAR31:=HHV(HHV(LOW,14),240);
LM:=EMA(EMA(VAR31,14)+2*STD(VAR31,14),8);
YLM:=C>LM ;
VUR0:=(2*O+H+L+3*C)/7;
VUR1:=CAPITAL*VUR0;
VUR2:=SMA(AMOUNT,10,1)/1000;
VUR3:=MA(C*3,5);
VUR4:=VUR2*C*3/VUR3*1/10;
VUR5:=VUR2*O*3/VUR3*1/10;
VUR6:=VUR2*H*3/VUR3*1/10;
VUR7:=VUR2*L*3/VUR3*1/10;
VUR8:=(2*VUR5+VUR6+VUR7+3*VUR4)/7;
VUR9:=DMA(EMA(VUR4,2),SUM(V,1)*VUR8);
VUR10:=EMA(VUR9,2);
VURA:=VUR9>VUR10;
VURB:=EMA(VUR1-VUR9,1);
VURC:=REF(VURB,1);
VURD:=VURB>VURC;
VURS:=VURD AND C>O;
MA250:=MA(C,250);
鱼:=VURA AND VURS AND C>=HHV(C,60) AND H/C<=1.02 AND C>MA250 AND C/REF(C,1)>1.045;
鱼跃龙门:鱼 AND YLM;


本文中的指标公式已亲自测试使用,指标公式正确无误。
朋友们可以直接复制上方的指标代码,然后通过新建指标直接进行创建指标;

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋| 股指标网 ( 渝ICP备2024026571号-1 )

GMT+8, 2024-12-23 17:22 Powered by Discuz! X3.5

股指标