VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));
卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));
bb:=ema(SUM(卖盘,5)+SUM(卖盘,2)+SUM(卖盘,4)+SUM(卖盘,3)+SUM(卖盘,1),3);
cg:=ema(SUM(买盘,5)+SUM(买盘,4)+SUM(买盘,3)+SUM(买盘,2)+SUM(买盘,1),3);
aa:=(cg+bb);
cc:=ref(sum(买盘,30),5);
mm:=ref(sum(卖盘,30),5);
dd:=(sum(aa,20))/10000;
TGLXS:=aa,COLORSTICK;
STICKLINE(TGLXS>0,0,TGLXS,5,0),COLOR5544ff;
STICKLINE(TGLXS<0,0,TGLXS,5,0),COLOR00FF00;
换手率1:V/CAPITAL*100;
盘:CAPITAL/1000000;
STICKLINE(TGLXS>cc,0,TGLXS,5,0),COLOR11FFFF;
STICKLINE(TGLXS>cc*2,0,TGLXS,5,0),COLORRED;
买卖差:1*(买盘+卖盘)/10000,colorff00ff;