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.96,26);

DRAWICON(CROSS(CLOSE,MF1),LOW*0.92,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;};