ACB1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
ACB2:=REF(ACB1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
ACB3:=REF(ACB2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
ACB4:=REF(ACB3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
ACB5:=REF(ACB4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
ACB6:=REF(ACB5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
ACB7:=REF(ACB6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
ACB8:=REF(ACB7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
ACB9:=REF(ACB8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
ACBA:=REF(ACB9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
ACBB:=REF(ACBA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
ACBC:=REF(ACBB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
ACBD:=CLOSE< REF(CLOSE,1) AND CLOSE< REF(CLOSE,2);
ACBE:=REF(ACBD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
ACBF:=REF(ACBE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
ACB10:=REF(ACBF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
ACB11:=REF(ACB10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
ACB12:=REF(ACB11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
ACB13:=REF(ACB12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
ACB14:=REF(ACB13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
ACB15:=REF(ACB14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
ACB16:=REF(ACB15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
ACB17:=REF(ACB16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
ACB18:=REF(ACB17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
ACB19:=REF(ACBD OR ACBE OR ACBF OR ACB10 OR ACB11 OR ACB12 OR ACB13 OR ACB14 OR ACB15 OR ACB16 OR ACB17 OR ACB18,1) AND ACB1;
ACB1A:=REF(ACB1 OR ACB2 OR ACB3 OR ACB4 OR ACB5 OR ACB6 OR ACB7 OR ACB8 OR ACB9 OR ACBA OR ACBB OR ACBC,1) AND ACBD;
CHIGU:=ACB1 OR ACB2 OR ACB3 OR ACB4 OR ACB5 OR ACB6 OR ACB7 OR ACB8 OR ACB9 OR ACBA OR ACBB OR ACBC;
CHIBI:=ACBD OR ACBE OR ACBF OR ACB10 OR ACB11 OR ACB12 OR ACB13 OR ACB14 OR ACB15 OR ACB16 OR ACB17 OR ACB18;
K线买入:=ACB19 ;
ABC1:=(100-((90*(HHV(H,14)-C))/(HHV(H,14)-LLV(L,14))));
ABC2:=(100-MA(((100*(HHV(H,6)-C))/(HHV(H,6)-LLV(L,6))),34));
波段买入:=CROSS(ABC1,MA(ABC2,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);
J:=3*K-2*D;
KDJ买入:=CROSS(K,D);
AA:=K线买入 AND 波段买入;
BB:=K线买入 AND MACD买入;
CC:=K线买入 AND KDJ买入;
DD:=波段买入 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 DD OR EE OR FF OR (MACD买入 AND REF(波段买入,1) ) AND XG AND AA6 ;
STICKLINE(精品四合一,0,4,3,0),COLOR0000FF;
STICKLINE(精品四合一,0,4,2,0),COLOR001235;
STICKLINE(精品四合一,0,4,1,0),COLOR002266;
STICKLINE(精品四合一,0,4,0.5,0),COLOR003378;
DRAWICON(精品四合一,4,9);
DRAWICON(精品四合一,3,5);
DRAWICON(精品四合一,2,25);
DRAWICON(精品四合一,1,34);
DRAWTEXT(精品四合一,3.6,' ★四合一'),COLORMAGENTA;