VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100;
VAR3:=EMA(IF(CLOSE*1.3,VAR2*10,VAR2/10),3);
VAR4:=LLV(LOW,30);
VAR5:=HHV(VAR3,30);
VAR6:=IF(MA(CLOSE,58),1,0);
VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6;
VAR8:=IF(VAR7>100,100,VAR7);
STICKLINE(VAR8>(-150),0,VAR8,3,1),COLORMAGENTA;
VAR9:=MA(AMOUNT,5)/MA(VOL,5)/100;
VAR10:=(VAR9-MA(AMOUNT,125)/MA(VOL,125)/100)/VAR9;
VAR11:=MA((LLV(LOW,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45))*100,3);
VAR12:=CLOSE/MA(CLOSE,60)-1;
NOTEXT小顶:IF(CROSS(VAR11,(-95)) AND VAR12<0.35 AND VAR12>=0.2,50,100),COLORCYAN,LINETHICK2;
NOTEXT大顶:IF(CROSS(VAR11,(-95)) AND VAR12>=0.35,20,100),COLORGREEN,LINETHICK2;
NOTEXT小底:IF(CROSS((-5),VAR11) AND VAR10<(-0.25) AND VAR10>(-0.4),50,0),COLORYELLOW,LINETHICK3;
NOTEXT大底:IF(CROSS((-5),VAR11) AND VAR10<(-0.4),98,0),COLORRED,LINETHICK3;
VAR13:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;
VAR14:=HHV(VAR13>20,10);
NOTEXT顶:STICKLINE(VAR14 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR13+20,98,2,3),COLORGREEN;
VAR15:=MA(CLOSE,5);
VAR16:=(CLOSE-VAR15)/VAR15*100;
VAR17:=MA(CLOSE,30);
VAR18:=(CLOSE-VAR17)/VAR17*100;
VAR19:=COUNT(CROSS(VAR16,0),3)>=1 AND VAR18>REF(VAR18,1) AND VAR15>REF(VAR15,1) AND (CLOSE/REF(CLOSE,1)-1)*100>5 AND REF(CLOSE,1)<VAR17;
VAR20:=IF(FILTER(VAR19,10),10,0);
VAR21:=KDJ.K#MONTH;
VAR22:=KDJ.D#MONTH;
VAR23:=KDJ.K#WEEK;
VAR24:=KDJ.D#WEEK;
VAR25:=KD.K;
VAR26:=KD.D;
VAR27:=IF(CROSS(VAR25,VAR26),20,0);
VAR28:=IF(CROSS(VAR23,VAR24),30,0);
VAR29:=IF(CROSS(VAR21,VAR22),40,0);
NOTEXT萧啸:(-10),COLORRED;
VAR30:=HHV(HIGH,9);
VAR31:=LLV(LOW,9);
VAR32:=(VAR30-VAR31)/100;
VAR33:=(CLOSE-VAR31)/(VAR30-VAR31)*100;
VAR34:=SMA(VAR33,3,1);
VAR35:=SMA(VAR34,3,1);
VAR36:=3*VAR34-2*VAR35;
VAR37:=VAR34*VAR32+VAR31;
VAR38:=VAR35*VAR32+VAR31;
VAR39:=VAR36*VAR32+VAR31;
VAR40:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR41:=EMA(VAR40,9);
VAR42:=2*(VAR40-VAR41);
VAR43:=1.25*VAR40-0.25*VAR41;
VAR44:=(VAR43*13*27-27*11*EMA(CLOSE,12)+13*25*EMA(CLOSE,26))/28;
VAR45:=(VAR40*13*27-27*11*EMA(CLOSE,12)+13*25*EMA(CLOSE,26))/28;
VAR46:=(VAR41*13*27-27*11*EMA(CLOSE,12)+13*25*EMA(CLOSE,26))/28;
VAR47:=(VAR44+VAR46)/2;
VAR48:=ATAN((VAR45-REF(VAR45,1))/REF(VAR45,1)*100)*180/3.14159;
VAR49:=VAR44;
VAR50:=VAR45;
VAR51:=VAR47;
VAR52:=VAR46;
VAR53:=EMA(VAR49,3);
VAR54:=EMA(VAR49,2);
VAR55:=EMA(VAR52,3);
VAR56:=EMA(VAR49,40);
VAR57:=EMA(VAR56,60);
DRAWICON(CROSS(VAR55,VAR52) AND VAR49>VAR51,10,38);
DRAWICON(CROSS(VAR52,VAR55),10,2);
DRAWICON(VAR49>VAR54 AND REF(VAR49>VAR54,1)=0 AND VAR49>VAR51,0,1);
IF(VAR49>VAR51,0,DRAWNULL),COLORRED,LINETHICK3;
NOTEXT买卖:IF(VAR49<VAR51,0,DRAWNULL),COLORGREEN,LINETHICK3;