T:=180;
T1:=10;
买入价:=10;
MA5:"MA.MA1#WEEK"(5),COLORCYAN,LINETHICK2;
MA10:"MA.MA2#WEEK",COLORWHITE,LINETHICK2;
IF(MA5>REF(MA5,5),MA5,DRAWNULL),COLOR0000CC,LINETHICK3;
IF(MA10>REF(MA10,5),MA10,DRAWNULL),COLORRED,LINETHICK3;
周DIF:=100*"macd.DIF#WEEK"COLORGREEN;
周DEA:=100*"MacD.DEA#WEEK",COLORCYAN,LINETHICK1;
周J:="kdj.J#WEEK",COLORGREEN,DOTLINE;
周D:="kdJ.D#WEEK",COLORYELLOW,DOTLINE;
周K:="KDJ.K#WEEK",COLORCYAN;
空仓:MA5<=MA10 AND 周DIF<=周DEA AND 周J<=周D,NODRAW;
满仓:MA5>=MA10 AND 周DIF>周DEA AND 周J>周D,NODRAW;
总涨跌比:DYNAINFO(60)/(DYNAINFO(60)+DYNAINFO(61))*100,COLORCYAN,NODRAW;