DRAWTEXT_FIX(1,0.073,0,0,HYBLOCK),COLORRED; {行业}

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.35,0.20,1,STRCAT(STRCAT('活跃:',CON2STR(活跃度比,2)),'%')),COLORCYAN;

开盘第一笔主买:REF(V,BARSSINCE(TIME2>=093000)),NODRAW;

{第一次V不为0到现在的周期数}

A3:=CON2STR(开盘第一笔主买,0);

DRAWTEXT_FIX(1,0,0.250,0,''),COLORWHITE,LINETHICK2;

DRAWTEXT_FIX(1,0.35,0.80,1,A3),COLORWHITE,LINETHICK2;

开盘第一笔量:REF(V,BARSSINCE(TIME2>=093000)),NODRAW;

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.02 AND TIME<0935, COLORGREEN ;

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

DRAWTEXT(游资接力,4,' $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$'),COLORYELLOW;

VAR1:=CLOSE*VOL;

VAR2:=EMA((EMA(VAR1,3)/EMA(VOL,3)+EMA(VAR1,6)/EMA(VOL,6)+EMA(VAR1,12)/EMA(VOL,12)+EMA(VAR1,24)/EMA(VOL,24))/4,13);

VAR3:=EMA(CLOSE,9);

MF1:=EMA(VAR3*1.11,5),COLORMAGENTA,LINETHICK2;

VAR4:=CLOSE*VOL;

VAR5:=EMA((EXPMA(VAR4,3)/EXPMA(VOL,3)+EXPMA(VAR4,6)/EXPMA(VOL,6)+EXPMA(VAR4,12)/EXPMA(VOL,12)+EXPMA(VAR4,24)/EXPMA(VOL,24))/4,13);

VAR6:=1.13*VAR5;

VAR7:=MA(HIGH,30)*(1+15/100);

VAR8:=CROSS(CLOSE,MF1) AND CLOSE>=REF(CLOSE,1)*1.048;

DRAWICON(CROSS(CLOSE,MF1),LOW*0.99,26);

DRAWICON(CROSS(CLOSE,MF1),LOW*0.85,13);

VAR9:=CROSS(CLOSE,VAR6) AND CLOSE>=REF(CLOSE,1)*1.048;

VAR10:=CROSS(CLOSE,VAR7) AND CLOSE>=REF(CLOSE,1)*1.048;

VAR11:=MA(CLOSE,20);

{STICKLINE(CLOSE/REF(CLOSE,1)>=1.04,OPEN,CLOSE,2,0),COLORYELLOW;

STICKLINE((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.049 AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<0.098,CLOSE,OPEN,2,0),COLORMAGENTA;}

VAR12:=MA(CLOSE,5);

VAR13:=MA(CLOSE,8);

VAR14:=MA(CLOSE,13);

VAR15:=MA(CLOSE,21);

VAR16:=MA(CLOSE,34);

VAR17:=MA(CLOSE,50);

VAR18:=OPEN<=VAR12 AND CLOSE>VAR12;

VAR19:=OPEN<=VAR13 AND CLOSE>VAR13;

VAR20:=OPEN<=VAR14 AND CLOSE>VAR14;

VAR21:=OPEN<=VAR15 AND CLOSE>VAR15;

VAR22:=OPEN<=VAR16 AND CLOSE>VAR16;

VAR23:=OPEN<=VAR17 AND CLOSE>VAR17;

VAR24:=VAR18+VAR19+VAR20+VAR21+VAR22+VAR23>4;

VAR25:=CLOSE>OPEN AND CLOSE>REF(CLOSE,1)*1.03 AND CLOSE=HIGH AND VAR24;

DRAWICON(VAR25,LOW*0.98,30);

STICKLINE(VAR25,CLOSE,OPEN,2,0),COLORYELLOW;

STICKLINE(VAR25,CLOSE,OPEN,1.5,0),COLORRED;

STICKLINE(VAR25,CLOSE,LOW,0.02,0),COLORBLACK;

STICKLINE(VAR25,OPEN,LOW,0,0),COLORGREEN;

{};

{LCT:=REF(CLOSE,1);

WRSI:=SMA(MAX(CLOSE-LCT,0),5,1)/SMA(ABS(CLOSE-LCT),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))>95;

DRAWTEXT_FIX(1,0.50,0.15,1,STRCAT(STRCAT('',CON2STR(活跃度比,2)),'')),COLORCYAN;}

{HSL:=IF((SETCODE==0||SETCODE==1),100*VOL,VOL)/(FINANCE(7)/100);

攻击量:=((HSL*0.50+REF(HSL,1)*0.33)+(REF(HSL,2)*0.17))*SUM(C,FROMOPEN)/FROMOPEN;

攻击量A:=SUM(IF(C>REF(C,1),攻击量*V,0),FROMOPEN),COLOR0000FF,LINETHICK0;

攻击量B:=-SUM(IF(C<REF(C,1),攻击量*V,0),FROMOPEN),COLOR00FF00,LINETHICK0;

攻击流量:=攻击量A+攻击量B,COLORSTICK;

攻击比:=攻击流量/SUM(V,FROMOPEN)*100,COLORRED,LINETHICK1;

资金攻击度:=IF(攻击比>=0,(攻击比+50),100-ABS((攻击比-50)))>100,COLORYELLOW;

资金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),STICK,COLORRED;

资金流出:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),STICK,COLOR00FF00;

资金出入:=资金流入+资金流出,COLORSTICK;

资金比:=资金出入/SUM(V,FROMOPEN)*100,COLOR00FFFF,LINETHICK1;

资金流量比:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2));

{DRAWTEXT_FIX(1,0.550,0.75,0,STRCAT(STRCAT('流量比',CON2STR(资金流量比,2)),'%买')),COLORCYAN;}

{DRAWTEXT_FIX(1,0.50,0.35,1,STRCAT(STRCAT('',CON2STR(资金攻击度,2)),' ')),COLORCYAN;};

A1:=MA(C,5);

B1:=MA(C,10);

A:=100*(A1-REF(A1,1))/REF(A1,1);

B:=100*(B1-REF(B1,1))/REF(B1,1);

MA5:=A-REF(A,1) ;

MA10:=B-REF(B,1);

{1,COLORRED;}

{ 0,LINETHICK1,COLORGREEN;}

{ 2;}

加速上涨:CROSS(MA5,1) AND ( CROSS(MA10,1) OR MA10>=0.98),COLORRED,NODRAW;

DRAWTEXT(加速上涨=1,MA10*92,'$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$'),COLORYELLOW;

H11:=EMA(DCLOSE,5);

A1Z:=LLV(DCLOSE,5);

L11:=LLV(L,10);

敢死队操作线:=MA(C,24),LINETHICK2,COLORLIMAGENTA;

操作线2:=MA(C,26),LINETHICK1,COLORLICYAN;

爆发点:=(DCLOSE-REF(C,1))/REF(C,1)*100;

XGG:=CROSS(爆发点,20) OR CROSS(爆发点,18);

L3:=IF(XGG,O,L11*0.999),COLORYELLOW;

STICKLINE(XGG,L3,L3,100,1);

DRAWTEXT(XGG,L3,'爆爆爆爆爆爆爆爆爆爆爆'),COLOR0099FF;

A1X:=1;

B1X:=3;

C1:=3;

D1:=6;

DYNAINFO(17)>=A1X AND DYNAINFO(17)<=B1X AND DYNAINFO(37)>C1/100 AND DYNAINFO(37)<D1/100,COLORGREEN;

VAB0:=13;

VAB1:=1500000;

VAB2:=VAB0 + VAB1;

VAB3:=IF(DATE > VAB2,0,1);

SG:=EMA(HHV(HIGH,1),8);

X1:=EMA(CLOSE,8);

X30:=((X1 < REF(X1,1)) AND (CLOSE < X1));

X31:=IF(((SG < REF(SG,1)) OR X30),1,0);

操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100,COLORRED,LINETHICK2;

震仓:=45,COLORMAGENTA;

底线:=20,COLORGREEN;{知股网WWW.GS6.NET}

PP:=操作线< 震仓 AND REF(操作线,1)>震仓 ;

PP3:=操作线< 底线 AND REF(操作线,1)>底线*VAB3;

抓牛:(((((COUNT((X31 = 1),4) = 3) AND (X31 = 0))AND O< C AND (((C-REF(C,1))/REF(C,1))>0.065))*10) >=10)OR((C-REF(C,1))/REF(C,1)>0.065 AND (REF(PP3,1) OR REF(PP,1))) AND VAB3=1,STICK,COLORYELLOW,LINETHICK4;

DRAWTEXT(抓牛,抓牛*0.71,' ←反转'),COLORYELLOW;

强反转:(H-REF(C,1))/REF(C,1)*100,NODRAW;

波段微调:=2;

显示开关:=1;

QS:=ZIG(1,波段微调);

低点:=TROUGHBARS(2,波段微调,1);

高点:=PEAKBARS(1,波段微调,1);

L低:=IF(低点=0,L,IF(高点<低点,TROUGH(2,波段微调,1),REF(TROUGH(2,波段微调,1),1)));

H高:=IF(高点=0,H,IF(低点<高点,PEAK(1,波段微调,1),REF(PEAK(1,波段微调,1),1)));

L低A:=IF(高点<低点 AND 显示开关=1 OR 显示开关=2,L低,DRAWNULL);

H高A:=IF(高点<低点 AND 显示开关=1 OR 显示开关=2,H高,DRAWNULL);

{DRAWTEXT(低点=0,L*99999999 ,VARCAT('【低点】',VAR2STR(L,2))),COLORYELLOW;}

{DRAWTEXT(高点=0,H,VARCAT('【高点】',VAR2STR(H,2))),COLORRED;}

{DRAWLINE(低点=0,L,高点=0,H,0)COLORRED,LINETHICK2;}

DRAWLINE(高点=0,H,低点=0,L,0)COLORGREEN,LINETHICK2;

VAR1X:=SQRT(H高A/L低A);

VAR2X:=SQRT(VAR1X);

AX:=H高A/SQRT(VAR1X);

BX:=H高A/VAR1X;

D:=H高A/(VAR1X+VAR2X-1);

E:=POW(L低A,0.875)*POW(H高A,0.125);

I:=H高A-(H高A-L低A)*1.236,NODRAW;

U:=H高A-(H高A-L低A)*1.618,NODRAW;

{DRAWICON(高点=0,H,39);}

DRAWICON(低点=0 AND TIME<=0935,L,38);

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>3.5 AND TIME<=0935,-99,9,2,0 ),COLORCYAN;

MA20:=MA(C,20);

MA60:=MA(C,60);

涨幅:=(C-REF(C,1))/REF(C,1)>0.03;

实体涨幅1:=(C-O)/O>0.01;

放量:=(VOL-REF(MA(VOL,5),1))/REF(MA(VOL,5),1)>0.5;

站上均线:=C>MA5 AND C>MA20 AND C>MA60;

突破最高价:=C>HHV(REF(C,1),39);

区间涨幅1:=(REF(C,1)-REF(C,41))/REF(C,41)>-0.08 AND (REF(C,1)-REF(C,41))/REF(C,41)<0.08;

区间振幅:=(REF(HHV(H,40),1)-REF(LLV(L,40),1))/REF(LLV(L,40),1)<0.16;

横盘突破:涨幅 AND 实体涨幅1 AND 放量 AND 站上均线 AND 突破最高价 AND 区间涨幅1 AND 区间振幅 ;