LC:=REF(CLOSE,1);

WRSI:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;

WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;

活跃:=(WRSI-WR10);

活跃度比:=IF(活跃>=0,(活跃+100)/2,100-ABS((活跃-100)/2));

DRAWTEXT_FIX(1,0.20,0.35,1,STRCAT(STRCAT('活跃:',CON2STR(活跃度比,2)),'%')),COLORCYAN;

MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,30);MA4:=MA(CLOSE,60);指标:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1)COLORMAGENTA,LINETHICK2;分:=CONST(LLV(指标,90)); 百:=CONST(HHV(指标,90))-分;基点:=CONST(LLV(L,90)); 基:=CONST(HHV(H,90))-基点;CC比:=(指标-分)/百; XCX:=CC比*基+基点;QW:XCX;{五弯十}

C5:=MA(C,5);C10:=MA(C,10);C20:=MA(C,20);V6:=MA(V,5);

A1:=(C20>REF(C20,1)) AND (REF(C20,1)>REF(C20,2));A2:=(C10>REF(C10,1)) AND (REF(C10,1)>REF(C10,2));A3:=(C<=1.03*C5) AND (C>=0.97*C10);A4:=(100*ABS(C5-C10)<=3*C10);{20日均线向上且收盘股价离5天线或十天线不能过远,5天线离十天线也不宜过远,过远则大形态调整时间可能不够}

A5:=(REF(V6,2)>=REF(V6,1)) AND (REF(V6,3)>=REF(V6,2));{成交量递减}

T1:=REF(C5,1)-REF(C10,1);T2:=REF(C5,2)-REF(C10,2);T3:=REF(C5,3)-REF(C10,3);A6:=(T3>=T2) AND (T2>=T1);{5天线弯向十天线}

YYY:=DYNAINFO(4)>0.03 AND A1 AND A2 AND A3 AND A4 AND A5 AND A6;五弯十:=

IF(YYY,QW,DRAWNULL)COLORRED,LINETHICK2;

{}

{DRAWGBK(OPEN>0,RGB(0,0,0),RGB(33,47,58),0,6,0);}

获利30:=10*WINNER(CLOSE*0.9*0.9*0.9),COLORYELLOW,LINETHICK0;

STICKLINE(获利30>=2,0,-获利30/20,8,0),COLORRED;

换手:=V*100/CAPITAL;

主力:=MA(换手,4);

大户:=MA(换手,9);

中户:=MA(换手,17);

散户:=MA(换手,34);

均量:=(主力+大户+中户+散户)/4;

主力能量:=(主力-均量);

操盘:=STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),0+2.2,主力能量/5+2.2,3,3),COLORRED;

减仓:=STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),0+2.2,主力能量/5+2.2,3,3),COLORYELLOW;

反弹:=STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),0+2.2,主力能量/5+2.2,3,0),COLORGREEN;

寻底:=STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),0+2.2,主力能量/5+2.2,3,3),COLORGREEN;

HJ_1:=CLOSE/REF(CLOSE,1)>=1.098;

HJ_22:=COUNT(HJ_1,2)>=1 AND NOT(COUNT(HJ_1,3)>=2);

妖股授精:FILTER(HJ_22,13)*9,COLORDDDDDD;

HJ_23:=COUNT(HJ_1,3)>=2 AND NOT(COUNT(HJ_1,4)>=3);

妖股孕育:FILTER(HJ_23,13),COLORGREEN;

HJ_24:=COUNT(HJ_1,4)>=3 AND NOT(COUNT(HJ_1,5)>=4);

妖股初生:FILTER(HJ_24,11),COLORYELLOW;

妖股长成:COUNT(HJ_1,8)>=6.5,COLORRED;

VARH3:=MA(CLOSE,13);

VARH4:=100-ABS((CLOSE-VARH3)/VARH3*100);

筹码:=MA(WINNER(CLOSE*0.95)*100,1),COLORRED;

VARD:=筹码>VARH4;

DRAWNUMBER(VARD AND VARH4>REF(VARH4,1) AND REF(VARD,1)>0,(VARH4+20-30)/80-1.2,ROUND(VARH4)) COLORCYAN;

DRAWNUMBER(VARD,(VARH4+20-30)/80-1.2,ROUND(VARH4)) COLORCYAN;

{STICKLINE(VARD,(VARH4-30)/80-1.2,5/80-1.2,2,0),COLORMAGENTA;}

STICKLINE(VARD AND VARH4>REF(VARH4,1) AND REF(VARD,1)>0,(VARH4-30)/80-1.2,5/80-1.2,2,0),COLORGREEN;

DRAWTEXT(VARD AND VARH4>REF(VARH4,1) AND REF(VARD,1)>0,(VARH4+30-30)/80-1.2,'风险'),COLORGREEN;

DRAWTEXT(VARD AND VARH4>REF(VARH4,1) AND REF(VARD,1)>0,(VARH4+60-30)/80-1.2,'注意'),COLORGREEN;

FFD:=EMA((C - REF(C,1)) / REF(C,3),10) * 100;

KJHU:=EMA(EMA(EMA(EMA(FFD,2),2),2),3);

A1X:=SMA(MAX(C - REF(C,1),0),24,1) / SMA(ABS(C - REF(C,1)),24,1) * 100;

龙头启动:=(A1X > 65) * (A1X- 65) / 10 + 2,LINETHICK0;

控盘度:=CYW / 100,COLORSTICK,LINETHICK2,COLORRED;

HJX_1:=MA(LOW+(HIGH-LOW)/2,25)*1.15;

HJX_2:=MA(LOW+(HIGH-LOW)/2,25)*0.95;

HJX_3:=(HJX_1+HJX_2)/2;

HJX_4:=(MA(CLOSE,5)+MA(OPEN,5))/2*1.06;

HJX_5:=(MA(CLOSE,5)+MA(OPEN,5))/2*0.98;

HJX_6:=(HJX_4+HJX_5)/2;

HJX_7:=HJX_4>HJX_2;

HJX_8:=HJX_4>HJX_3;

HJX_9:=HJX_4>HJX_1;

HJX_10:=HJX_6>HJX_2;

HJX_11:=HJX_6>HJX_3;

HJX_12:=HJX_6>HJX_1;

HJX_13:=HJX_5>HJX_2;

HJX_14:=HJX_5>HJX_3;

HJX_15:=HJX_5>HJX_1;

HJX_16:=HJX_7+HJX_8+HJX_9+HJX_10+HJX_11+HJX_12+HJX_13+HJX_14+HJX_15;

N:=500;

BJQD:=100*CLOSE/INDEXC;

B:=SUM(BJQD,N)/N;

XDQD1:=BJQD/B;

XDQD:=XDQD1/(SUM(XDQD1,60)/60)-0.4,COLORFF33FF,LINETHICK2;

BF1:=0.9-0.4,COLORBLUE;

B2:=1.0-0.4,COLORFFAA00,LINETHICK2;

B3:=1.12-0.4,COLORRED,LINETHICK2;

{DRAWICON(CROSS(XDQD,B3),B3,5);}

BF:=C>0.97*REF(C,BARSLAST(CROSS(B3,XDQD)+1)) AND (LONGCROSS(XDQD,B3,30));

DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);

DEA:=EMA(DIF,9);

MACD:=(DIF-DEA)*2,COLORSTICK;

{柱状线}

AAA1:=(DIF-DEA)*2*60;

黑马线:=16,POINTDOT,COLORFFFFFF;

主力X:=AAA1-REF(AAA1,1),COLORRED;

启动:=CROSS(主力X,黑马线);

{STICKLINE(REF(启动,1),-1.2,-1.5,3,0),COLORRED;}

{DRAWTEXT(REF(启动,1),-1.2,' 淘金股'),COLORYELLOW;}

趋势:=3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*

SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1);

ZZ:=趋势>REF(趋势,1);

KT1:=DVOL/1000000;

KT2:=DCLOSE;

V1:=EMA(KT1,5);

V2:=EMA(KT2,5);

价异动:=KT2>REF(V2,1)*1.06;

量异动:=KT1>REF(V1,1)*1.6&&ZZ;

停牌:=DYNAINFO(17)>0;

M1:=SUM(价异动,2)>0 AND 停牌;

M2:=SUM(量异动,2)>0 AND REF(趋势,1)<89;

量价共振要大涨:

-FILTER(M1&&M2,3)*1,COLORWHITE;

{DRAWTEXT( FILTER(M1&&M2,3),-1,' 要大涨'),COLORGREEN;}

HJXX_1:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);

HJXX_2:=EMA(HIGH,30)*1.15;

HJXX_3:=EMA(HIGH,3)*1.03;

游资接力:CROSS(CLOSE,HJXX_3) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1) > 0.04 AND TIME<0935, COLORGREEN ;

STICKLINE(游资接力,-1.5,9,1.5,0),COLORGREEN;

DRAWTEXT(游资接力,4,' 游资接力')AND TIME>0930,COLORYELLOW;

VARK6:=((2)*(CLOSE)+HIGH+LOW)/(4);

VARK8:=LLV(LOW,34);

VARK11:=HHV(HIGH,34);

BK1:=EMA(((VARK6-VARK8)/(VARK11-VARK8))*(100),8);

VK1:=MA(C,5)=HHV(MA(C,5),20);

VK2:=MA(C,5)>MA(C,10);

VK3:=MA(V,5)>MA(V,40)*1.01;

VK4:=COUNT(MA(C,1)>REF(C,1),2)=2;

AKK1:=EMA(CLOSE,8);

AKK2:=EMA(AKK1,20);

AKK3:=CROSS(AKK1,AKK2);

AKK4:=AKK1<EMA(CLOSE,120);

{STICKLINE((AKK3 AND AKK4)OR(VK1 AND VK2 AND VK3 AND VK4),3,3.1,1,0),COLORYELLOW;}

主筹估算:=EMA(WINNER(C)*70,3),LINETHICK2,COLORRED;

主筹估算X:=EMA(WINNER(C)*70,3)/100-2.3,LINETHICK2,COLORRED;

散筹估算:=EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,3),LINETHICK1,COLORGREEN;

筹码锁定:=散筹估算-主筹估算,COLORFFBB00;

UB:=BOLL+2*STD(CLOSE,20),COLORGREEN,LINETHICK2;

BOLL:=MA(CLOSE,20),COLORRED,LINETHICK2;

{DRAWICON(CROSS(CLOSE,UB),主筹估算/100-2.3,5);}

LB:=BOLL-2*STD(CLOSE,20),COLORGREEN,LINETHICK2;

HJK_1:=CROSS(CLOSE,UB) OR CLOSE>UB;

{DRAWICON(HJK_1,主筹估算/100-2.3,5);}

浮筹H:=(WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0))*100,COLORYELLOW,LINETHICK2;

RPY:=(C-LLV(C,240))/(HHV(C,240)-LLV(C,240))*100,COLORWHITE,LINETHICK1;

锁仓拉升:=RPY>99;{ AND 浮筹H<30,COLORRED};

DRAWICON(锁仓拉升,主筹估算/100-2.5,13);

DIFH:=EMA(DCLOSE,12)-EMA(DCLOSE,26);

DEAH:=EMA(DIFH,9);

MACDH:=(DIFH-DEAH)*2,COLORSTICK;

AAA1H:=(DIFH-DEAH)*2*60;

主力H:=AAA1H-REF(AAA1H,1),COLORRED;

DRAWICON(CROSS(主力H,16),主筹估算/100-2.6,26);

ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算}

SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//散户筹码估算}

ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盘筹码比率}

{STICKLINE(ZZLKP>75,-2,-2.5,2,0),COLORFFFFFF;}

Z_J1:=EMA(C,2)-EMA(C,150);

Z_J2:=EMA(Z_J1,100);

Z_J3:=2*(Z_J1-Z_J2);

Z_J4:=POW(Z_J3,3)*0.1+POW(Z_J3,1);

G_J1:=EMA(C,2)-EMA(C,89);

G_J2:=EMA(G_J1,30);

G_J3:=2*(G_J1-G_J2)*9.8;

G_J4:=POW(G_J3,3)*0.1+POW(G_J3,2);

攻击资金:=IF(G_J3>0.015,G_J4,0)/28,LINETHICK2,COLORRED;

STICKLINE(攻击资金>25,-2.5,-3,2,0),COLORRED;

VARA1:=(DVOL/C)/2,NODRAW;

VARA2:=SUM(IF(VARA1>100 AND CLOSE>REF(CLOSE,1),VARA1,0),0);

VARA3:=SUM(IF(VARA1>100 AND CLOSE<REF(CLOSE,1),VARA1,0),0);

VARA4:=SUM(IF(VARA1<100 AND CLOSE>REF(CLOSE,1),VARA1,0),0);

VARA5:=SUM(IF(VARA1<100 AND CLOSE<REF(CLOSE,1),VARA1,0),0);

VARA6:=VARA2+VARA3+VARA4+VARA5;

机买:=(VARA2/VARA6)*100,LINETHICK2,COLORRED;

机卖:=(VARA3/VARA6)*100,LINETHICK2,COLORGREEN;

主力差:=机买-机卖,LINETHICK2,NODRAW;

强度:=主力差-REF(主力差,1),NODRAW,COLORYELLOW;

{STICKLINE(强度>1.5,-3.01,-3.3,2,0),COLORYELLOW;}

L2:=MA(AMOUNT/(100*V),13);

CYS13:= (C-L2)/L2*100;

强庄:=STICKLINE(CYS13>5,-3.35,1,2,0 ),COLORCYAN;

个股涨幅:=(C-REF(C,1))/REF(C,1)*100,COLORRED,NODRAW;

行业涨幅:=(HY_INDEXC-REF(HY_INDEXC,1))/REF(HY_INDEXC,1)*100,COLORYELLOW,NODRAW;

大盘涨幅:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1)*100,COLORCYAN,NODRAW;