VAR11:=(2*C+O+H+L)/5;
VAR12:=VOL;
M8:=SUM(VAR11*VAR12,8)/SUM(VAR12,8);
M13:=SUM(VAR11*VAR12,13)/SUM(VAR12,13);
M21:=SUM(VAR11*VAR12,21)/SUM(VAR12,21);
R1:=C;
R2:=LLV(LOW,45);
R3:=HHV(HIGH,45);
Y1:=C;
Y2:=LLV(LOW,144);
Y3:=HHV(HIGH,144);
RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV1,3,1),LINETHICK1,COLORFF00FF;
D:=SMA(K,3,1),LINETHICK2,COLORYELLOW;
RSVR:=((R1-R2)/(R3-R2))*100;
KR:=SMA(RSVR,3,1),COLORRED;
DR:=SMA(KR,3,1),COLORYELLOW;
RSVY:=((Y1-Y2)/(Y3-Y2))*100;
KY:=SMA(RSVY,3,1),COLORCCEE33;
DY:=SMA(KY,3,1),COLORYELLOW;
X1:=M8;
X2:=M13;
X3:=M21;
XX:=C>X2 AND C>X2 ,;
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),8,1)/SMA(ABS(CLOSE-LC),8,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),21,1)/SMA(ABS(CLOSE-LC),21,1)*100,;
DIFF:= EMA(CLOSE,8) - EMA(CLOSE,21);
DEA:= EMA(DIFF,8);
MACD:= 2*(DIFF-DEA);
J13:=M8-M21,;
K13:=SMA(J13,3,1), ;
D13:=SMA(K13,3,1), ;
MACD13:=4*(K13-D13);
JS:= MACD>0 AND K>D AND RSI1>50 AND DR< 60 AND DY< 60 AND XX>0 AND MACD13>0 AND MACD13>REF(MACD13,1);
XG:= JS>0 AND CROSS(K,D) AND CROSS(MACD,0)AND MA(V,5)>MA(V,40);
短:=D,COLOR00FF00,LINETHICK1;
短1:=REF(D,1),COLORRED,LINETHICK1;
中:=DR,COLORYELLOW,LINETHICK1;
中1:=REF(DR,1),COLORF0F000;
长:=DY,COLORFF00FF,LINETHICK1;
长1:=REF(DY,1),COLORFF00FF,LINETHICK1;
AAA:=CROSS(D,REF(D,2))AND 短1< 50 AND DR>REF(DR,1)AND DY>REF(DY,1) AND D< 30 AND DR< 20 AND DY < 20 ;
黄金令:STICKLINE(AAA>0,0,50,6,0),,COLORYELLOW;
白银令:STICKLINE(XG>0,0,50,6,0),COLORWHITE;
短期主力:D,COLOR00FF00,LINETHICK1;
中期主力:DR,COLOR0099FF,LINETHICK1;
长期主力:DY,COLORFF00FF,LINETHICK1;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(LLV(LOW,58),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
VAR5X:=LLV(LOW,75);
VAR6X:=HHV(HIGH,75);
VAR7X:=(VAR6X-VAR5X)/100;
VAR8X:=SMA((CLOSE-VAR5X)/VAR7X,20,1);
VARA:=3*VAR8X-2*SMA(VAR8X,15,1);
VAR26:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
VAR28:=SMA(VAR26,3,1);
波段王:=SMA(VAR28,3,1);
STICKLINE(VAR9>-150,0,VAR9,3,0),COLORFF00FF;
底部吸筹指标:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLOR00FF00;
STICKLINE(VAR8,0,VAR8,6,1),COLORRED;
底部吸筹:IF(VAR8,VAR8,1),COLORRED;
乖离线:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLORFFFF00;
STICKLINE(CROSS(16.5,底部吸筹指标),40,0,4,0),COLORF00FF0;
STICKLINE(CROSS(40,底部吸筹指标),40,0,4,0),COLORF00FF0;
STICKLINE(CROSS(20,底部吸筹指标),40,0,4,0),COLORF00FF0;
先知: (CLOSE-LLV(LOW,40))/LLV(LOW,40)*100,COLORYELLOW;
主力线: (CLOSE-MA(LLV(LOW,40),40))/MA(LLV(LOW,40),40)*100,COLOR00FF00;
放量拉升: IF(CROSS(底部吸筹指标,-5.4),(8+底部吸筹指标)*10,0),COLORFFFFFF;
DRAWTEXT(CROSS(底部吸筹指标,-5.4) AND (8+底部吸筹指标)*10>=29,15,'拉升'),COLOR00EEAA;
DRAWTEXT(CROSS(16.5,底部吸筹指标),10,'注意'),COLORRED;
DRAWTEXT(CROSS(40,底部吸筹指标),15,'注意'),COLORRED;
DRAWTEXT(CROSS(20,底部吸筹指标),20,'注意'),COLORRED;