均线1:=EMA(C,3);
均线2:=EMA(C,5);
均线3:=EMA(C,7);
均线4:=EMA(C,12);
VAR1:=EMA(EMA(CLOSE,13),13);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
有庄控盘:=控盘>REF(控盘,1) AND 控盘>0;
布局:=有庄控盘 AND crOSS(均线1,均线2) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 OR CROSS(均线1,均线4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 OR CROSS(均线2,均线3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 OR CROSS(均线1,均线3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 AND CROSS(均线1,均线4);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
XG:=MACD>0;
QXS:=NOT(CODELIKE('4'));
QKC:=NOT(CODELIKE('688'));
QST:=IF(NAMELIKE('S'),0,1);
QXX:=IF(NAMELIKE('*'),0,1);
QBJ:=NOT(CODELIKE('8'));
ABCD:=QXS AND QST AND QKC AND QXX AND QBJ;
AA:=C>MA(C,5);
XGG:布局 AND XG AND AA AND ABCD;