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

多头线:=EMA(C,3),COLORYELLOW;

空头线:=EMA(C,5),COLOR00FF00;

均衡线:=EMA(空头线,5),COLORWHITE,;

IF(多头线>=REF(多头线,1) AND 多头线>=空头线,多头线,DRAWNULL),COLORRED,LINETHICK3;

VAR1:=IF(CLOSE/REF(CLOSE,1)>1.040 AND HIGH/CLOSE<1.010 AND IF(CLOSE>REF(CLOSE,1),88,0)>0, 91, 0);

STICKLINE(VAR1>90 ,L,L*999,2.0,0),COLORFF00FF;

DRAWTEXT(VAR1>90,LOW*0.92,'买'),COLORFF00FF;

VAR2:=REF(EMA(DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.09),0.9),3),1);

DRAWTEXT(CROSS(CLOSE,VAR2),LOW,'S'),COLORYELLOW;

STICKLINE(CROSS(VAR2,CLOSE),H*1.05,H,0.1,0),COLORWHITE;

DRAWTEXT(CROSS(VAR2,CLOSE),HIGH*1.05,'卖'),COLORWHITE;

VAR3:=REF(CLOSE,1);

VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100; DRAWTEXT(CROSS(84,VAR4),H*1.03,'逃顶'),COLORYELLOW ;

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

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

VAR7:=EMA(VAR6,10);

VAR8:=LLV(LOW,33);

VAR9:=EMA(IF(LOW<=VAR8,VAR7,0),5);

主力进场:=FILTER(VAR9>REF(VAR9,1),5);

{DRAWTEXT(FILTER(V AR9>REF(V AR9,1),5),LOW*0.995,'↑'),COLOR0000FF;}

DRAWTEXT(FILTER(VAR9>REF(VAR9,1),5),LOW*0.96,'主力进场'),COLOR0000FF;

{STICKLINE(FILTER(VAR9>REF(VAR9,1),5),CLOSE,L*999,9,0),COLORYELLOW;}

STICKLINE(FILTER(VAR9>REF(VAR9,1),5),LOW,HIGH,1,0),COLOR0000FF;

{DRAWTEXT(FILTER(VAR5>REF(VAR5,1),5),LOW*1.08,'主力出场'),COLOR70DB93;}

STICKLINE(FILTER(VAR5>REF(VAR5,1),5),LOW,HIGH,1,0),COLOR70DB93;