{STICKLINE(18,100,0,5,0),COLORBLUE;}

VAR01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5);

VAR02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);

VAR03:=CROSS(VAR02,VAR01);

VAR04:=REF(VAR02,2);

VAR05:=COUNT(VAR03,7)>0 AND VAR04;

VAR06:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);

VAR07:=SMA(ABS(LOW-VAR06),13,1)/SMA(MAX(LOW-VAR06,0),10,1);

VAR08:=EMA(VAR07,10);

VAR09:=EMA(C,5);

VAR10:=LLV(LOW,33);

VAR11:=EMA(IF(LOW<=VAR10,VAR09,0),3)*40;

VAR12:=IF(VAR11>100,VAR11*0.312,VAR11);

底部爆发:=VAR12,COLORWHITE;

{STICKLINE(VAR12>0,0,VAR12,3,0),COLORWHITE;

STICKLINE(VAR12>0,0,VAR12,2,0),COLOR555555;

STICKLINE(VAR12>0,0,VAR12,1,0),COLORWHITE;}

STICKLINE(VAR02>0,0,VAR02,5,0),COLOR3A7841;

海岸:VAR02,COLORGREEN;

{浪花:VAR01,COLORCYAN;

STICKLINE(VAR05 AND COUNT(VAR05,5)=1,0,VAR12,4,0),COLORRED;

XG:IF(VAR05 AND COUNT(VAR05,5)=1,1,0)*99,LINETHICK9,COLORRED;}

VAR1Z:=1;

VAR2Z:=1/WINNER(CLOSE);

VAR3Z:=MA(CLOSE,13);

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

VAR5:=LLV(LOW,75);

VAR6:=HHV(HIGH,75);

VAR7:=(VAR6-VAR5)/100;

VAR8:=SMA((CLOSE-VAR5)/VAR7,21,1);

VAR9:=SMA((OPEN-VAR5)/VAR7,21,1);

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

VARB:=3*VAR9-2*SMA(VAR9,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 TIME<=0935 AND L,L*9,23);