KK:=(DATE < 20341231);
AA:=((WMA(CLOSE,5) - REF(WMA(CLOSE,5),1)) / REF(WMA(CLOSE,5),1));
BB:=((WMA(INDEXC,5) - REF(WMA(INDEXC,5),1)) / REF(WMA(INDEXC,5),1));
CC:=REF(HHV(CLOSE,120),1);
DD:=REF(LLV(CLOSE,120),1);
WW:=((100 * (CLOSE - DD)) / (CC - DD));
今日資金流入值:=(AMOUNT / 100000000);
三日資金流入值:=(EMA(今日資金流入值,5) / REF(EMA(今日資金流入值,5),5));
莊股:=((((((三日資金流入值 >= 2) AND (AA > BB)) AND (WW < 35)) AND KK) AND (BARSCOUNT(CLOSE) > 30)) OR (((((三日資金流入值 >= 2) AND (AA > BB)) AND (WW < 100)) AND KK) AND (BARSCOUNT(CLOSE) < 50)));
莊家顯形:IF(莊股,888,0),LINETHICK0,colorFF00FF;
STICKLINE(莊家顯形,0,30,40,1),colorFFBB88;
STICKLINE(莊家顯形,16,29,38,0),colorFF;
STICKLINE(莊家顯形,1,14,38,0),colorFF;
STICKLINE(莊家顯形,15,15,40,1),colorFFBB88;
STICKLINE(莊家顯形,30,50,10,0),colorFFFF;
STICKLINE(莊家顯形,53,55,10,1),colorFF;
STICKLINE(莊家顯形,57,59,10,1),colorFF;
STICKLINE(莊家顯形,61,63,10,1),colorFF;
STICKLINE(莊家顯形,65,67,10,1),colorFF;
STICKLINE(莊家顯形,69,75,10,0),colorFF00;
DRAWTEXT(莊家顯形,25,'莊家'),ALIGN0,colorFF00;
DRAWTEXT(莊家顯形,11,'已顯形'),ALIGN0,colorFF00;