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;

JJCJL:=DYNAINFO(15)/DYNAINFO(4)/100;

JJJEDW:=IF(DYNAINFO(15)>10000,'','元');

JJJE:=IF(DYNAINFO(15)>10000,CON2STR(DYNAINFO(15)/10000,1),CON2STR(DYNAINFO(15),1));

JJJE1:=STRCAT(JJJE,JJJEDW);

JJ:=STRCAT('',STRCAT(CON2STR(JJCJL/10000,2),''));

JJ1:=STRCAT(JJ,'');

DRAWTEXT_FIX(1,0.25,0.15,0,STRCAT(JJ,0))COLORCYAN;

K2:=EMA(C,5);

K3:=EMA(C,10);

K5:=EMA(C,30);

KK5:=EMA(INDEXC,30);

A10:=EMA(C,10);

K6:=2*(K2-K5);K7:=2*(K2-K3);K8:=2*(K7+K6);

VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));

VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));

VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));

年:=MA(CLOSE,26),COLORGREEN,LINETHICK0;

箱底:=LLV(MA((LOW),5),30),POINTDOT,COLORGREEN,LINETHICK1;

长箱底:=LLV(MA((LOW),5),60),POINTDOT,COLORFF33FF,LINETHICK1;

长长箱底:=LLV(MA((LOW),5),100),POINTDOT,COLORYELLOW,LINETHICK1;

长长箱顶:=HHV(MA((HIGH),6),120),POINTDOT,LINETHICK1;

长箱顶:=HHV(MA((HIGH),6),60),COLORRED,LINETHICK1;

箱顶:=HHV(MA((HIGH),6),30),COLOR00AAFF,LINETHICK2;

中间:=(箱顶+箱底)/2,COLORFF00FF,LINETHICK3;

WX:=EMA(C,5),COLORWHITE,LINETHICK2;

{STICKLINE(CROSS(WX,中间) ,中间+0.08,中间-0.08,0,0),COLORWHITE;}

STICKLINE(CROSS(WX,长箱顶) AND TIME<=0935,长箱顶-0.8,长箱顶*999,0.8,0) ,COLORYELLOW,LINETHICK2;

{STICKLINE(CROSS(WX,箱顶),箱顶-0.5,箱顶+0.5,0.1,0) ,COLORGREEN;}

启动线:EMA(C,2),COLOR00FF00,LINETHICK5;

{STICKLINE(WX<中间,WX,中间,0,0),COLORFF00FF;

STICKLINE(WX>中间,WX,中间,0,0),COLOR00FF00;

DRAWKLINE(HIGH,OPEN,LOW,CLOSE);};

DI:=EMA(C,3)-EMA(C,13);

DE:=EMA(DI,9);

MACD1:=2*(DI-DE)*10;

DI2:=EMA(C,5)-EMA(C,26);

DEA2:=EMA(DI2,9);

MACD2:=2*(DI2-DEA2)*10;

DIFF3:=EMA(C,7)-EMA(C,89);

DEA3:=EMA(DIFF3,21);

MACD3:=2*(DIFF3-DEA3)*10;

MMACD5:=MA(MACD3,3);

M3:=IF(MACD3<0,-MACD3,DRAWNULL)LINETHICK4,COLOR646400;

M2:=IF(MACD2<0,-MACD2,DRAWNULL)LINETHICK4,COLOR333333;

M1:=IF(MACD1<0,-MACD1,DRAWNULL);

MM3:=IF(MACD3>0,MACD3,DRAWNULL);

MN1:=HHV(MM3,250);

MN2:=HHV(M3,250);

MMM:=CONST(MAX(MN1,MN2));

{DRAWBAND(MMM,RGB(50,80,50),-MMM,DRAWNULL);

DRAWBAND(MMM,RGB(150,150,150),0,DRAWNULL);

DRAWBAND(M3,RGB(00,100,100),0,DRAWNULL);

DRAWBAND(M2,RGB(100,100,100),0,DRAWNULL);

DRAWBAND(M1,RGB(80,80,00),0,DRAWNULL);

DRAWBAND(MM3,RGB(0,200,0),0,DRAWNULL);}

{STICKLINE(MACD2>=0,0,MACD2,4,0),COLOR009900;

STICKLINE(MACD1>=0,0,MACD1,4,0),COLOR006600;}

MM:=-M3*0.3;

{DRAWBAND(0,RGB(0,0,0),-MM3*0.3,DRAWNULL);

DRAWBAND(0,RGB(0,0,0),MM,DRAWNULL);}

IF(MACD3>0,-3,DRAWNULL),COLORFFFF00,POINTDOT;

IF(C>0,-2,-2),COLORFFFF00,POINTDOT;

小花:IF(MACD1>=0 AND REF(MACD1,1)<0,1,DRAWNULL),CROSSDOT,LINETHICK9,COLORFF33FF;

IF(MACD1>=0 AND REF(MACD1,1)<0,1,DRAWNULL),POINTDOT,LINETHICK4,COLOR00CCFF;

红帆:=STICKLINE(CROSS(MACD3,MMACD5) AND MACD3<0,MACD3*1.1,MACD3*1.1-0.5,16,0),COLOR3366CC;

{STICKLINE(CROSS(MACD3,MMACD5) AND MACD3<0,MACD3*1.1+4,MACD3*1.1+0.3,5,0),COLOR0000FF;}

春雪:=IF(CROSS(MMACD5,MACD3) AND MACD3>0,MACD3*1.2,DRAWNULL),CROSSDOT, LINETHICK2,COLORFFFFFF;

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

DRAWTEXT_FIX(01,0.01,0.01.0,0,CJL),COLOR0099FF;