M1:=3;M2:=5;M3:=7;M4:=13;M5:=15;M6:=21;
Q3:=SMA(Q2, 12, 1);
长趋势:3*Q3-2*Q4,colorwhite,LINETHICK2;
DRAWTEXT(CROSS(趋势线, 长趋势) AND REF(长趋势,1)>88, REF(长趋势,12), '顶'),colorred,LINETHICK5;
买: DRAWTEXT(REF(CROSS(长趋势,趋势线),1) AND 长趋势>0.04*趋势线,趋势线,''),colorred,LINETHICK1;
VAR5:=IF(VAR3=1,2,0);
顶A:IF(顶>REF(顶,1),50,0),colorgreen;
金叉: CROSS(长趋势,趋势线);
VAR1:=LLV(HIGH,240);
VAR3:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;
VAR5:=0;
SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
VARB:=VAR6<20 AND VAR7<23 AND VARA>35;
VARD:=EMA(CLOSE,21)-EMA(CLOSE,8);
VARF:=TROUGHBARS(3,6,1)<4 AND CROSS(VARD,VARE);
VAR9:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND
VAR10:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND
VAR11:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2)
VAR12:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2)
VAR13:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2)
VAR14:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2)
VAR15:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2)
VAR16:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2)
VAR17:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR1B:=2*(VAR17-VAR1A);
VAR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
VAR1F:=(HIGH+LOW+CLOSE)/3;
VAR19:=CROSS(VAR1E,LOW);
组合买:=(VAR9+VAR11+VAR13+VAR15);
黑马线:=IF(YEAR<2098 AND VAR1B>0.1,VAR1C,0);
AND VAR4=0 AND VAR18<(-110);
STICKLINE(组合买,CLOSE,OPEN,1,0),colorblue;
STICKLINE(组合卖,CLOSE,OPEN,1,0),colorgreen;
STICKLINE(选股买点,CLOSE,OPEN,1,0),colorblue;
DRAWTEXT(VAR14,HIGH,'空仓'), LINETHICK3, colorcyan;
LINETHICK3 ;
VAA2:=(ZIG(3,10) > REF(ZIG(3,10),1)) AND (REF(ZIG(3,10),1) < REF(ZIG(3,10),2));
DRAWTEXT(VAA2 AND (DATE < 1070804),LOW,'买入'),coloryellow;
STICKLINE(VAA1 AND (DATE < 1070804),HIGH,LOW,1.5,0),coloryellow;
STICKLINE(VAA2 AND (DATE < 1070804),HIGH,LOW,1.5,0),COLORFF00FF;
半月线:MA(CLOSE,M2),coloryellow;
季度线:MA(CLOSE,M4),colorgreen;
年线:MA(CLOSE,M6),colorblue