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;

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;

B:=COST(30 );

成本30:=MA(B,13),LINETHICK02;

D:=COST(50 );

成本50:=MA(D,13),LINETHICK02;

E:=COST(70 );

成本70:=MA(E,13),LINETHICK02;

F:=COST(90 );

成本90:=MA(F,13),LINETHICK02;

MA5:=MA(C,5),COLORYELLOW;

MA10:=MA(CLOSE,10),COLORFF00FF;

MA20:=MA(CLOSE,20), COLORWHITE,LINETHICK01;

DRAWICON(CROSS(C,成本90) AND TIME<=0935 AND L,L,38);

STICKLINE(C/REF(C,1)>=1.03 AND TIME<=0935 ,O,C,2,0),COLORYELLOW;

X_0:=HHV(H,480),LINETHICK1,COLORCYAN;

X_1:=DATETODAY(DATE)-DATETODAY(REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT))+1;

X_2:=BARSLAST((X_1-REF(X_1,1))!=WEEKDAY-REF(WEEKDAY,1) OR TOTALBARSCOUNT-CURRBARSCOUNT=0)+1;

X_3:=REF(C,X_2);

X_4:=REF(X_3,X_2);

X_5:=REF(X_4,X_2);

X_6:=REF(X_5,X_2);

X_7:=REF(X_6,X_2);

X_8:=REF(X_7,X_2);

X_9:=REF(X_8,X_2);

X_10:=REF(X_9,X_2);

X_11:=REF(X_10,X_2);

X_12:=MAX(DYNAINFO(3),DYNAINFO(5));

X_13:=MIN(DYNAINFO(3),DYNAINFO(6));

X_14:=X_12-X_13;

X_15:X_13+X_14*8/9,COLORLIRED,DOTLINE;

X_16:X_13+X_14*0.5/9,COLORGREEN,DOTLINE;

X_17:=IF(BETWEEN(C/(SUM(AMOUNT,0)/SUM(VOL*100,0)),1.05,0.95)=0,MA(C,0),(SUM(AMOUNT,0)/SUM(VOL*100,0))),COLORYELLOW,DOTLINE;

X_18:=(EMA(CLOSE,12)-EMA(CLOSE,26))+DYNAINFO(3);

X_19:=EMA(X_18,9);

X_20:=10*(X_18-X_19);

X_21:=EMA(X_20,2);

{STICKLINE(X_20>=X_21 AND X_20>=0,DYNAINFO(3),X_20+DYNAINFO(3),0,-1),COLORLIGRAY;

STICKLINE(X_20<X_21 AND X_20>0,DYNAINFO(3),X_20+DYNAINFO(3),0,-1),COLORLICYAN;

STICKLINE(X_20>=X_21 AND X_20<0,DYNAINFO(3),X_20+DYNAINFO(3),0,-1),COLORLIGRAY;

STICKLINE(X_20<X_21 AND X_20<0,DYNAINFO(3),X_20+DYNAINFO(3),0,-1),COLORLIGREEN;}

X_22:=SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(V*100,BARSCOUNT(CLOSE));

X_23:=EXPMA(CLOSE/X_22,20);X_24:=EXPMA(CLOSE/X_22,60);X_25:=EXPMA(CLOSE/X_22,120);

X_26:=1;1.022,NODRAW;X_27:=1.033;

{DRAWTEXT(CROSS(X_23,1.02),C*0.999,' 拉'),COLORMAGENTA,LINETHICK9;

DRAWICON(CROSS(X_23,1.04),C,45);

DRAWTEXT(CROSS(X_23,1.04),C*0.999,' 冲'),COLORRED,LINETHICK9;}

X_28:=(VOL/CLOSE)/3;

X_29:=SUM((IF(((X_28>40) AND (CLOSE>(REF(CLOSE,1)))),X_28,0)),0);

X_30:=SUM((IF(((X_28>40) AND (CLOSE<(REF(CLOSE,1)))),X_28,0)),0);

X_31:=SUM((IF(((X_28<40) AND (CLOSE>(REF(CLOSE,1)))),X_28,0)),0);

X_32:=SUM((IF(((X_28<40) AND (CLOSE<(REF(CLOSE,1)))),X_28,0)),0);

X_33:=((X_29+X_30)+X_31)+X_32;

X_34:=IF((BARSTATUS=2),((100*X_29)/X_33),0);

X_35:=((IF((BARSTATUS=2),((100*X_30)/X_33),0)));

X_36:=((IF((BARSTATUS=2),((100*X_31)/X_33),0)));

X_37:=((IF((BARSTATUS=2),((100*X_32)/X_33),0)));

DRAWTEXT(LONGCROSS(X_16,C,2),C-0.01,'满仓买入'),COLORRED,LINETHICK9;

{DRAWICON(LONGCROSS(X_16,C,2),C-0.01,34);}

STICKLINE(LONGCROSS(X_16,C,2),C,X_15,0,-1),COLORCYAN;

{DRAWTEXT(LONGCROSS(C,X_15,2),C+0.01,'卖出'),COLORGREEN,LINETHICK9;}

{DRAWICON(LONGCROSS(C,X_15,2),C+0.01,45);}

{DRAWICON(CROSS(X_17,X_16) AND L,L,34);

DRAWICON(CROSS(C,X_17) AND L,L,34);}

STICKLINE(C/REF(C,1)>=1.03 AND TIME<0935 ,O,C,2,0),COLORYELLOW;

金牛:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),DOTLINE,COLORYELLOW;

金钻趋势:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK2,COLORRED;

金牛2:=EMA(金钻趋势,25)COLORCYAN,LINETHICK2;

{STICKLINE(金钻趋势>LOW AND 金钻趋势<HIGH,金钻趋势,MIN(MIN(OPEN,CLOSE),金钻趋势),20,0),COLORYELLOW;

STICKLINE(金钻趋势>MIN(C,O) AND 金钻趋势<MAX(C,O),金钻趋势,MIN(OPEN,CLOSE),2,0),COLORYELLOW;

STICKLINE(金钻趋势>HIGH,OPEN,CLOSE,2,0),COLORYELLOW;

STICKLINE(金钻趋势>HIGH,HIGH,LOW,0,0),COLORYELLOW;}

VAR23:=100*XMA(XMA((C-REF(C,1)),6),6)/XMA(XMA(ABS((C-REF(C,1))),6),6);

回调买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23<0,2) AND CROSS(VAR23,MA(VAR23,2));

XGG:=金钻趋势>HIGH AND 回调买 AND L<=金钻趋势;

DRAWTEXT(XGG AND TIME>=1430,L+2,'▲买'),COLORGREEN;

{V2Z:=SMA(AMOUNT/V,2,1)/100;

V5Z:=SMA(V2Z,5,1);

V10Z:=SMA(V5Z,5,1);

V20Z:=SMA(V10Z,5,1);

V40:=SMA(V20Z,5,1);

当日实量:=V,NODRAW;

DRAWICON(CROSS(C,REF(V2Z,1)*1.02)*0.95 AND CROSS(C,REF(V5Z,1)*1.03),REF(V2Z,1)*0.95,9);};