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;

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

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

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

DRAWTEXT(XGGX,L3*999999,'爆爆爆爆爆爆爆爆爆爆爆'),COLOR0099FF;

{成交数据}

成交额:=V*C/100,NODRAW;{万元}

A2:=SUM((IF(((成交额/8>20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);

A3:=SUM((IF(((成交额/8>20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);

A6:=(A2+A3);

A7:=IF((ISLASTBAR),((100*A2)/A6),0);

A8:=IF((ISLASTBAR),((100*A3)/A6),0);

DD1:=1;

AAA1:=STRCAT(STRCAT('机构买',CON2STR((100*A2)/A6,0)),'%');

AAA2:=STRCAT(STRCAT('机构卖',CON2STR((100*A3)/A6,0)),'%');

AAA3:=STRCAT(STRCAT(' ',CON2STR((100*(A2-A3))/A6>=49,0)), '%');

AAA4:=STRCAT(STRCAT(' ',CON2STR((100*(A2-A3))/A6,0)), '%');

{A000:=DRAWTEXT_FIX(DD1=1,0,0.02,0,AAA1),COLORRED;

A001:=DRAWTEXT_FIX(DD1=1,0,0.13,0,AAA2),COLOR00FF00;}

{DRAWTEXT_FIX(DD1=1,0,0.55,0,AAA1),COLOR00FFFF;}

{DRAWTEXT_FIX(DD1=1,0,0.70,0,AAA2),COLOR00FFFF;}

DRAWTEXT_FIX(DD1=01,0.1,1,0,AAA3),COLORCYAN;

DRAWTEXT_FIX(DD1=01,0.30,1,0,AAA4),COLORCYAN;

现手买:=BUYVOL*DYNAINFO(7)*100/10000 COLOR0000FF,NODRAW;

现手卖:=SELLVOL*DYNAINFO(7)*100/10000 COLOR00FF00,NODRAW;

CJL:=IF(DYNAINFO(10)>99999999,STRCAT(CON2STR(DYNAINFO(10)/100000000,2)<10,'亿'),STRCAT(CON2STR(DYNAINFO(10)/10000,0),'万'));

DRAWTEXT_FIX(01,0.01,0.01.0,0,CJL),COLOR0099FF;

N:=35;

M:=35;

N1:=1;

NX:=42;

N1X:=21;

VAR1:=IF(CLOSE < OPEN,(CLOSE-OPEN)/OPEN,0);

VAR2:=IF(CLOSE > OPEN,(CLOSE-OPEN)/OPEN,0);

VAR3:=IF(CLOSE > OPEN,(OPEN-LOW)/OPEN,(CLOSE-LOW)/OPEN);

VAR4:=IF(CLOSE > OPEN,(HIGH-CLOSE)/OPEN,(HIGH-OPEN)/OPEN);

VAR5:=IF(BARSLAST(CLOSE > MA(CLOSE,20)) > 34,34,BARSLAST(CLOSE > MA(CLOSE,20)));

VAR6:=IF(BARSLAST(CLOSE > MA(CLOSE,60)) > 120,120,BARSLAST(CLOSE > MA(CLOSE,60)));

VAR7:=IF(COUNT(CLOSE > 0,250) < 240,CAPITAL,SUM(VOL,480)/8);

VAR8:=MA(LOW,20)*1.2;

VAR9:=MA(LOW,20)*1.1;

VAR10:=MA(HIGH,20)*0.9;

VAR11:=MA(HIGH,20)*0.8;

VAR12:=CLOSE/(1+(CLOSE/MA(CLOSE,240)-1)-MA(INDEXC/MA(INDEXC,240)-1,3));

游资资金:IF(BARSLAST(CLOSE > VAR9) < 4 AND CLOSE > MA(CLOSE,5) AND BARSLAST(CLOSE=HHV(CLOSE,21)) < 4,(MA(CLOSE,5)-REF(MA(CLOSE,5),1))/REF(MA(CLOSE,5),1)*900,0)*99,COLORMAGENTA;

主力资金:(CLOSE/VAR12-1)*50,COLORRED,LINETHICK2;

主力控盘:MA(IF(CLOSE > MA(CLOSE,240) AND (CLOSE-MA(CLOSE,240))/MA(CLOSE,240)+SUM(VAR1,20) > 0,((CLOSE-MA(CLOSE,240))/MA(CLOSE,240)+SUM(VAR1,20))/MA(VOL/VAR7,20)/2.5,0),10),COLORYELLOW,LINETHICK2;

散户资金:IF(CLOSE < MA(CLOSE,20),((REF(CLOSE,VAR5)-CLOSE)/REF(CLOSE,VAR5)+SUM(VAR3,VAR5)-SUM(VAR4,VAR5))*20,0),COLORBLUE,LINETHICK2;

中线超跌:(REF(CLOSE,VAR6)-CLOSE)/CLOSE*2,COLORGREEN,LINETHICK2;

STICKLINE(主力资金 > 0,0,主力资金,0.7,0),COLORRED;

STICKLINE(主力控盘 > 0,0,主力控盘,0.7,0),COLORYELLOW;

STICKLINE(游资资金 > 0,0,游资资金*9999,0.7,0),COLORMAGENTA;

STICKLINE(中线超跌 > 0,0,中线超跌,0.7,0),COLORGREEN;

STICKLINE(散户资金 > 0,0,散户资金,0.8,0),COLORBLUE;

F1:=ZIG(3,15);

F2:=IF((F1> REF(F1,1)),100,80);

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

MA势:=SMA(MAX(C-REF(C,1),0),8,1)/SMA(ABS(C-REF(C,1)),8,1)*100;

势:=EMA(MA势,5),COLORLIRED,DOTLINE;

IF(势<=45,势,DRAWNULL),COLORGREEN,DOTLINE;

趋势:=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);

K1:=DVOL/1000000;

K2:=DCLOSE;

V1:=EMA(K1,5);

V2:=EMA(K2,5);

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

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

停牌:=DYNAINFO(17)>0;

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

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

共鸣:(F2=100 AND C>REF(C,1) AND FILTER(M1 ,3))*99,COLORWHITE,LINETHICK1;

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>300))),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.2500,0.01,0,STRCAT(STRCAT('',CON2STR(资金攻击度,2)),' ')),COLORYELLOW;

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

DEA:=EMA(DIF,9) ;

MACD:=(DIF-DEA)*2;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

CROSS(MACD,0) AND CROSS(K,D),LINETHICK4,COLORGREEN;

XXX:=CROSS(MACD,0) AND CROSS(K,D),LINETHICK4,COLORGREEN;

DRAWICON(CROSS(MACD,0),23 AND CROSS(K,D),23);

STICKLINE(CROSS(MACD,0) AND CROSS(K,D),L,L*0.55,8,0),COLORGREEN;

VAR1Z:=1;

VAR2Z:=1/WINNER(CLOSE);

VAR3Z:=MA(CLOSE,13);

VAR4Z:=100-ABS((CLOSE-VAR3Z)/VAR3Z*100);

VAR5Z:=LLV(LOW,75);

VAR6Z:=HHV(HIGH,75);

VAR7Z:=(VAR6Z-VAR5Z)/100;

VAR8Z:=SMA((CLOSE-VAR5Z)/VAR7Z,21,1);

VAR9Z:=SMA((OPEN-VAR5Z)/VAR7Z,21,1);

VARA:=3*VAR8Z-2*SMA(VAR8Z,13,1);

VARB:=3*VAR9Z-2*SMA(VAR9Z,13,1);

VARC:=100-VARB;

平衡:=50.5,COLOR998899,POINTDOT;

主力:=MA(WINNER(CLOSE*0.95)*100,3)*VAR1Z,COLORYELLOW,LINETHICK1;

散户:=(100-VARA)*VAR1Z,COLORLIBLUE,LINETHICK1;

{DRAWTEXT(CROSS(主力,散户) AND 主力>50,主力,'★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★'),COLORRED;}

→:=100,LINETHICK3,COLORYELLOW;

MINUS:=(主力-散户)>0;

DRAWTEXT_FIX(1,0.850,0.85,0,MINUS),COLORWHITE;

DRAWICON(CROSS(主力,散户) AND L,L*9999,23);