D1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
DD:=CLOSE< REF(CLOSE,1) AND CLOSE< REF(CLOSE,2);
DE:=REF(DD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
DF:=REF(DE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
D10:=REF(DF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
D11:=REF(D10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
D12:=REF(D11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
D13:=REF(D12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
D14:=REF(D13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
D15:=REF(D14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
D16:=REF(D15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
D17:=REF(D16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
D18:=REF(D17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
D19:=REF(DD OR DE OR DF OR D10 OR D11 OR D12 OR D13 OR D14 OR D15 OR D16 OR D17 OR D18,1) AND D1;
k线买入:=D19;
C1:=(100-((90*(HHV(H,14)-C))/(HHV(H,14)-LLV(L,14))));
C2:=(100-MA(((100*(HHV(H,6)-C))/(HHV(H,6)-LLV(L,6))),34));
波段买:=crOSS(C1,MA(C2,6));
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd买入:=CROSS(DIF,DEA);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
kdj买入:=CROSS(K,D);
AA:=K线买入 AND 波段买;
BB:=K线买入 AND MACD买入;
CC:=K线买入 AND kdJ买入;
DD1:=波段买 AND MACD买入;
EE:=波段买 AND KDJ买入;
FF:=MACD买入 AND KDJ买入;
DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:=EMA(DIF1,9);
MACD1:=(DIF1-DEA1)*2;
XG:=MACD1>0;
AA6:=C>MA(C,60);
四象合涨:AA OR BB OR CC OR DD1 OR EE OR FF OR (MACD买入 AND REF(波段买,1) ) AND XG AND AA6;