周DIF:="macd.DIF#WEEK";
周DEA:="MacD.DEA#WEEK";
周maCD:="MACD.MACD#WEEK";
AA4:=周DIF>REF(周DIF,1);
周K:="kdj.K#WEEK";
周D:="kdJ.D#WEEK";
周J:="KDJ.J#WEEK";
AA2:=周K>REF(周K,1);
AA6:=周J>REF(周J,1);
YH1:=C>MA(C,2) AND REF(C,1)<MA(C,2) OR C>MA(C,13) AND REF(C,1)<MA(C,13) OR C>MA(C,29) AND REF(C,1)<MA(C,29) AND AA4;
YH2:=C>MA(C,2) AND REF(C,1)<MA(C,2) OR C>MA(C,6) AND REF(C,1)<MA(C,6) OR C>MA(C,26) AND REF(C,1)<MA(C,26) AND AA2;
买入:YH1 AND YH2,COLORRED;