均线1:=EMA(C,3);
均线2:=EMA(C,5);
均线3:=EMA(C,7);
均线4:=EMA(C,12);
均线5:=EMA(C,20);
均线6:=EMA(C,30),COLORBLUE;
MA5:MA(CLOSE,5) DOTLINE;
MA10:MA(CLOSE,10) ;
年线:=EMA(C,250);
追涨:=EMA(C,3);
大行情:=(年线-(追涨-年线)),NODRAW;
压力:=MA(LLV(C,9)*1.1,14),COLORBROWN;
支撑:=MA(HHV(C,26)*0.9,14);
多空:=(压力+支撑)/2;
神马:=(压力+支撑)/2,COLORRED;
神牛:=MA(LLV(C,9)*1.1,14),COLOR0099FF;
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;
AA:=C>MA(C,5);
STICKLINE(布局 AND XG AND AA,C,O,2,0),COLORMAGENTA;
DRAWTEXT(布局 AND XG AND AA,L,' ★布局'),COLORYELLOW;
DRAWICON(布局 AND XG AND AA,L-0.04,25);