DRAWTEXT_FIX(1,0.1,0.1,0,'监控主力机构'),COLORRED;
大单买量 := SUM(IF(CLOSE >= REF(CLOSE, 1) AND VOL >= 500, VOL, 0), FROMOPEN);
大单卖量 := SUM(IF(CLOSE < REF(CLOSE, 1) AND VOL >= 500, VOL, 0), FROMOPEN);
大单净额 := 大单买量 - 大单卖量;
大单净额占比 := 大单净额 / SUM(VOL, FROMOPEN) * 100;
主力存在 := 大单净额占比 > 20;
庄家判断 := MA(VOL, 5) > 2 * MA(VOL, 20) AND TIME <= 0932;
DRAWGBK(庄家判断 AND 主力存在 AND TIME <= 0932, RGB(50, 50, 50), RGB(50, 50, 50), 0, 0, 1);
DRAWTEXT(庄家判断 AND 主力存在 AND TIME <= 0932, H, '庄家参与'),COLORYELLOW;
STICKLINE(庄家判断 AND 主力存在 AND TIME <= 0932, LOW, HIGH, 8, 0),COLORRED;