VarTIME:=IF(YEAR>=2050 AND MONTH>=11 AND DAY>=07,0,1);
VarDTIME:=IF(YEAR=2050 AND MONTH=11 AND DAY=06,1,0);
DRAWTEXT(VarDTIME,115,''),COLOR008000;
DRAWTEXT(VarDTIME,100,''),COLOR008000;
DRAWTEXT(VarDTIME,85,''),COLOR008000;
DRAWTEXT(VarDTIME,70,''),COLOR008000;
DRAWTEXT(VarDTIME,45,''),COLOR008000;
qw1:=(HIGH+LOW+CLOSE*2)/4*VarTIME;
qw3:=EMA(qw1,10)*VarTIME;
qw4:=STD(qw1,10)*VarTIME;
qw5:=(qw1-qw3)*100/qw4*VarTIME;
qw6:=EMA(qw5,5)*VarTIME;
rk7:=EMA(qw6,10)*VarTIME;
涨:EMA(qw6,10)+100/2-5,linethick1,colorred;
跌:EMA(涨,4),linethick1,colorFFFF34;
多线:IF(cross(涨,跌) and 跌<-10,30,0),linethick1,COLORFF00FF;
空线:IF(cross(跌,80),70,100),color0099ff,linethick1;
买1:ema(跌,4)*VarTIME,colorwhite;
买2:ema(买1,4)*VarTIME,colorgreen;
买m3:=ema(买2,4)*VarTIME,coloryellow;
买m4:=ema(买m3,4)*VarTIME,colorcc9900;
-10,pointdot,color888888,linethick2;
80,pointdot,color888888,linethick2;
STICKLINE(涨<REF(涨,1)*VarTIME,涨,MA(涨,3),0,0 ),colorwhite;
STICKLINE(涨<REF(涨,1)*VarTIME,涨,MA(涨,3),8,0 ),COLOR008800;
STICKLINE(涨<REF(涨,1)*VarTIME,涨,MA(涨,3),7,0 ),COLOR009900;
STICKLINE(涨<REF(涨,1)*VarTIME,涨,MA(涨,3),6,0 ),COLOR00AA00;
STICKLINE(涨<REF(涨,1)*VarTIME,涨,MA(涨,3),5,0 ),COLOR00BB00;
STICKLINE(涨<REF(涨,1)*VarTIME,涨,MA(涨,3),4,0 ),COLOR00CC00;
STICKLINE(涨<REF(涨,1)*VarTIME,涨,MA(涨,3),3,0 ),COLOR00DD00;
STICKLINE(涨<REF(涨,1)*VarTIME,涨,MA(涨,3),2,0 ),COLOR00EE00;
STICKLINE(涨<REF(涨,1)*VarTIME,涨,MA(涨,3),1,0 ),COLOR00FF00;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),0,0) ,COLOR00BBFF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),8,0) ,COLOR0011FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),7,0) ,COLOR0022FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),6,0) ,COLOR0044FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),5,0) ,COLOR0066FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),4,0) ,COLOR0088FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),3,0) ,COLOR0099FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),2,0) ,COLOR00AAFF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),1,0) ,COLOR00BBFF;
DRAWICON(多线,30,1),COLORFF00FF;
DRAWICON(cross(跌,80),70,2),colorgreen;
DRAWTEXT(cross(涨,跌) and 跌<20 and 跌>-10,40,'买入'),colorccff99;
DRAWTEXT(多线>0,-20,'看涨'),color0000ff;
Var811:=SUMBARS(VOL,FINANCE(7)*100)*VarTIME;
Var822:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL)*VarTIME;
Var883:=(CLOSE-Var822)/Var822*100*VarTIME;
Var884:=HHV(Var883,Var811)*VarTIME;
Var885:=LLV(Var883,Var811)*VarTIME;
Var886:=(Var883-Var885)/(Var884-Var885)*100*VarTIME;
K:=SMA(Var886,3,1)*VarTIME;
D:=SMA(K,3,1)*VarTIME;
J:=3*K-2*D;
MA1:=MA(J,3)*VarTIME,colorgreen;
STICKLINE(filter(J>MA1 AND J<=3,5)=1 and 跌<0,涨,涨+20,6,0),coloryellow;
DRAWTEXT(filter(J>MA1 AND J<=3,5)=1 and 跌<0,60,'考虑买进'),colorffffff;
Var1:=MA(CLOSE,152);
Var2:=MA(CLOSE,194);
Var3:=Var2+2*STD(CLOSE,170);
Var4:=Var1+2*STD(CLOSE,170);
顶:(CLOSE>Var3)*13*10,colorblue,linethick2;
Var6:=EMA(HHV(HIGH,500),21);
Var7:=EMA(HHV(HIGH,250),21);
Var8:=EMA(HHV(HIGH,90),21);
Var9:=EMA(LLV(LOW,500),21);
VarA:=EMA(LLV(LOW,250),21);
VarB:=EMA(LLV(LOW,90),21);
VarC:=EMA((Var9*0.96+VarA*0.96+VarB*0.96+Var6*0.558+Var7*0.558+Var8*0.558)/6,21);
VarD:=EMA((Var9*1.25+VarA*1.23+VarB*1.2+Var6*0.55+Var7*0.55+Var8*0.65)/6,21);
VarE:=EMA((Var9*1.3+VarA*1.3+VarB*1.3+Var6*0.68+Var7*0.68+Var8*0.68)/6,21);
VarF:=EMA((VarC*3+VarD*2+VarE)/6*1.738,21);
Var10:=REF(LOW,1);
Var11:=SMA(ABS(LOW-Var10),3,1)/SMA(MAX(LOW-Var10,0),3,1)*100;
Var12:=EMA(IF(CLOSE*1.35<=VarF,Var11*10,Var11/10),3);
Var13:=LLV(LOW,30);
Var14:=HHV(Var12,30);
Var15:=IF(MA(CLOSE,58),1,0);
Var16:=EMA(IF(LOW<=Var13,(Var12+Var14*2)/2,0),3)/618*Var15;
Var17:=IF(Var16>50,50,Var16)/3.82*6;
Var18:=HHV(HIGH,30);
Var19:=LLV(LOW,30);
NL:=EMA((CLOSE-Var19)/(Var18-Var19)*100,5)/8*10,coloryellow,linethick2;
Var1A:=(EMA(AMOUNT,5)/EMA(VOL,5)/100-EMA(AMOUNT,125)/EMA(VOL,125)/100)/(EMA(AMOUNT,5)/EMA(VOL,5)/100)<-0.4;
Var1B:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
Var1C:=SMA(Var1B,3,1);
Var1D:=SMA(Var1C,3,1);
Var1E:=(-100)*(HHV(HIGH,52)-CLOSE)/(HHV(HIGH,52)-LLV(LOW,52));
Var1F:=COUNT(Var1A,5)>=1 AND (Var1E<-99.9 OR Var1D<15 AND Var1C<12);
Var20:=VOL/FINANCE(7);
Var21:=100*WINNER(CLOSE);
Var22:=MA(Var21,3);
Var23:=MA(Var20,34);
Var24:=Var22<Var23*100 AND Var21<Var20;
Var25:=SUM(IF(CLOSE>REF(CLOSE,1),1,0),0);
Var26:=SUMBARS(VOL,CAPITAL);
Var27:=IF(CLOSE>LLV(CLOSE,Var26),1,-1)*IF(Var25>LLV(Var25,Var26),1,-1);
Var28:=COUNT(IF(Var27=-1,1,0)=1,8)>2;
Var29:=(CLOSE-DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,13)/(AMOUNT/VOL/100)/100)))/DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,13)/(AMOUNT/VOL/100)/100))*100<-18;
Var2A:=(CLOSE-MIN(REF(CLOSE,5)*0.865,REF(CLOSE,21)*0.772))/CLOSE<0.01;
Var2B:=Var28 AND Var29 AND Var2A;
Var2C:=VOL/CAPITAL>=0.02 AND VOL/CAPITAL<=0.2 AND OPEN=1.105;
Var2D:=Var2C AND COUNT(Var2C,5)=1;
Var2E:=Var2B OR Var2C;
Var2F:=REF(CLOSE,1);
Var30:=SMA(MAX(CLOSE-Var2F,0),7,1)/SMA(ABS(CLOSE-Var2F),7,1)*100;
Var31:=SMA(MAX(CLOSE-Var2F,0),13,1)/SMA(ABS(CLOSE-Var2F),13,1)*100;
Var32:=Var30<20 AND Var31<25;
Var33:=Var32;
Var34:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),0-VOL,0)),0);
Var35:=IF(CLOSE>LLV(CLOSE,Var26),1,-1);
Var36:=IF(Var34>LLV(Var34,Var26),1,-1);
Var37:=Var35*Var36;
Var38:=IF(Var37=-1,1,0);
Var39:=Var38 AND CLOSE=LLV(CLOSE,120) AND Var21<Var20;
Var3A:=IF(FILTER(Var1F AND Var24 AND Var2E AND Var33 AND Var39>0,4),70,0);
DRAWTEXT(FILTER(Var24 AND Var2E AND Var33 OR Var33 AND Var39,1),Var2*4-13,'抄底'),colorred;
STICKLINE(IF(Var24 AND Var2E AND Var33 OR Var33 AND Var39,35,0),0,Var2*4-4,15,0);
Var3B:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
Var3C:=SMA(Var3B,3,1);
Var3D:=SMA(Var3C,3,1);
Var3E:=SMA(Var3D,3,1);
Var3F:=CROSS(Var3D,Var3E) AND Var3D<20;
Var40:=CROSS(Var3E,Var3D) AND Var3D>80;
Var41:=5;
DRAWTEXT(CROSS(Var41,NL),30,'★做底'),colorwhite;
Var42:="RSI#WEEK"(12,12,12);
Var43:="RSI#WEEK"(55,55,55);
Var44:=REF(CLOSE,1);
Var45:=SMA(MAX(CLOSE-Var44,0),6,1)/SMA(ABS(CLOSE-Var44),6,1)*100;
Var46:=FILTER(Var40,5)=1 AND BARSLAST(CROSS(Var42,Var43) AND Var42<=60)>=20;
STICKLINE(CROSS(Var42,Var43) AND Var42<=60,0,Var2*15+5,3,0),colormagenta;
DRAWTEXT(CROSS(Var42,Var43) AND Var42<=60,(Var2*12+3)/1,'加仓'),colormagenta;
STICKLINE(CROSS(84,Var45),0,Var2*15+3,5,1),colorgreen;
STICKLINE(Var46,Var2*15+10,10,6,0.3),colorgreen ;
{IF(CROSS(84,Var45),DRAWTEXT(CROSS(84,Var45),80,'防空警报'),IF(Var46,DRAWTEXT(Var46,100,'减仓'),0)),colorgreen ,;}
DRAWTEXT(CROSS(84,Var45),80,'防空警报'),colorgreen ,;
DRAWTEXT(Var46,100,'减仓'),colorgreen ,;
Var47:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5);
Var48:=(CLOSE-LLV(CLOSE,126))/(HHV(CLOSE,126)-LLV(CLOSE,126))*100;
Var49:=EMA(CLOSE,2)-EMA(CLOSE,150);
Var4A:=EMA(Var49,100);
Var4B:=2*(Var49-Var4A);
Var4C:=POW(Var4B,3)*0.1+POW(Var4B,1);
Var4D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
Var4E:=EMA(Var4D*0.97,3);
Var4F:=(HIGH+LOW+CLOS |