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));

STICKLINE((活跃度比>=99) ,L,L*999,1000,0),COLORMAGENTA;

DRAWTEXT_FIX(1,0.20,0.75,1,STRCAT(STRCAT('活跃:',CON2STR(活跃度比,2)),'%')),COLORYELLOW;

RSI:=SMA(MAX(C-REF(C,1),0),8,1)/SMA(ABS(C-REF(C,1)AND TIME<=0935),8,1)*100>50,COLORWHITE;

STICKLINE((RSI) AND TIME<=0932 ,L,L*444444444,2,0),COLORYELLOW;

买线:=EMA(C,2);

卖线:=EMA(SLOPE(C,21)*20+C,42);

V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);

HY1:=REF(EMA(V1,3),1);

DRAWTEXT(CROSS(CLOSE,HY1),LOW,'Ⅲ'),COLORWHITE;

SHORT:=12;

LONG:=26;

M:=9;

DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);

DEA:=EMA(DIFF,M);

MACD:=2*(DIFF-DEA);

低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;

{DRAWTEXT(低位金叉,L*0.92,'低位金叉'),COLORF00FF0;}

A1:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));

X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);

Y:=EMA(CLOSE,10);

{DRAWTEXT(CROSS(Y,X),(LOW * 0.95),'安全C级');}

VAR1:=LLV(LOW,21);

VAR2:=HHV(HIGH,21);

AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);

AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);

DD:=EMA(((0.667 REF(AK1,1)) + (0.333 AK1)),2);

VAR3:=LLV(LOW,55);

VAR4:=HHV(HIGH,34);

VAR5:=EMA((((CLOSE - VAR3) / (VAR4 - VAR3)) * 100),3);

VAR6:=((AK + VAR5) / 2);

VAR7:=EMA(((0.667 REF(VAR5,1)) + (0.333 AK1)),2);

VAR8:=EMA(VAR6,5);

BB:=EMA(((0.667 REF(VAR8,1)) + (0.333 VAR8)),2);

AB:=CROSS(AK1,AK);

BB1:=(CROSS(AK1,BB) AND (BB < 30));

CD:=(BB1 * 0.6);

{DRAWTEXT((CD = 0.6),(LOW * 0.95),'安全A级');

DRAWTEXT((AB = 1),(LOW * 0.97),'安全 B 级'),COLOR33CC99;}

DRAWTEXT(CROSS(MA(CLOSE,9),MA(CLOSE,20))AND TIME<=0933,LOW*99,'好机会'),COLORYELLOW;

操盘:=MA(CLOSE,9),COLORCYAN,LINETHICK2;

界点:=MA(CLOSE,20),COLORMAGENTA,LINETHICK2;