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

{DRAWICON((活跃度比>90)AND TIME<=0933 AND L,L*99,16);}

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;

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

DRAWTEXT_FIX(01,0.20,0.10.0,0,CJL),COLOR0099FF;

DRAWTEXT_FIX(01,0.20,0.40.0,0,CJL),COLOR0099FF;

DRAWTEXT_FIX(01,0.20,0.20.0,0,CJL),COLOR0099FF;

DRAWTEXT_FIX(01,0.20,0.30.0,0,CJL),COLOR0099FF;

DRAWTEXT_FIX(01,0.20,0.40.0,0,CJL),COLOR0099FF;

DRAWTEXT_FIX(01,0.20,0.50.0,0,CJL),COLOR0099FF;

DRAWTEXT_FIX(01,0.20,0.60.0,0,CJL),COLOR0099FF;

DRAWTEXT_FIX(01,0.20,0.40.0,0,CJL),COLOR0099FF;

DRAWTEXT_FIX(01,0.20,0.70.0,0,CJL),COLOR0099FF;

DRAWTEXT_FIX(01,0.20,0.80.0,0,CJL),COLOR0099FF;

A:=VOL*CLOSE;

B:=SUM(A,1)/SUM(VOL,1);

B1:=EMA(B,17);

进:=STICKLINE(((B-B1)*1500/B)>=0 AND 0>=REF(0,1),0,((B-B1)*1500/B),2,1),COLORRED;

出:=STICKLINE(((B-B1)*1500/B)<0 AND 0>=REF(0,1),0,((B-B1)*1500/B),2,1),COLORGREEN;

主力突破:=(B-B1)*1500/B COLORRED,NODRAW;

{100;}

XG:=主力突破>85;

{DRAWICON(主力突破>85 AND NOT(L=H)AND 主力突破>REF(主力突破,1) ,主力突破,24);}

N:=8;

M:=13;

P:=60;

S:=3;

V1:=(C*2+H+L)/4*10;

V2:=EMA(V1,13)-EMA(V1,34);

V3:=EMA(V2,5);

V4:=2*(V2-V3)*5.5;

超大主力吃:= IF(V4>=0,V4,0),COLORYELLOW,LINETHICK3;

超大主力吐:= IF(V4<=0,V4,0),COLOR66FF00,LINETHICK3;

V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;

V6:=EMA(3*V5-2*SMA(V5,18,1),5);

V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;

V8:=(INDEXC*2+INDEXH+INDEXL)/4;

V9:=EMA(V8,13)-EMA(V8,34);

VA:=EMA(V9,3);

VB:=(V9-VA)/2;

超大主力吃线:=28,COLORFF80FF,LINETHICK3;

NN:=35;

MM:=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 TIME<=0933 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 AND XG AND TIME<=0935,0,游资资金*9,0.7,0),COLORMAGENTA;

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

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

DRAWICON(CROSS(主力突破,超大主力吃线)AND TIME<=0935 AND L,L*999,24);};