《》变形
日涨幅:=(c-ref(c,1))/ref(c,1)*100;
三日涨幅:=(c-ref(c,3))/ref(c,3)*100;
换手:=VOL/CAPITAL*100;
三日换手:=SUM(换手,3);
DIF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);
庄股:=COUNT(MACD<0,10)=10;
多头:=COUNT(MA(CLOSE,20)>MA(CLOSE,10),10)=10;
GX:=MAX(MA(CLOSE,5),MAX(MA(CLOSE,20),MA(CLOSE,10)));
DX:=MIN(MA(CLOSE,5),MIN(MA(CLOSE,20),MA(CLOSE,10)));
粘合:=ABS(GX/DX-1)*100<=15;
目标:=IF(多头 AND 粘合 AND 庄股,5,0);
买:CROSS(0.1,目标) AND CROSS(MACD,0)
AND 日涨幅<8 AND 三日涨幅<10 AND 三日换手<8 ;