通达信绝版量柱指标公式

通达信清晰趋势主图指标公式

通达信绝版量柱指标公式:

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))));

买卖差:=(买盘 + 卖盘);

DT:=买盘;

KT:=卖盘;

买量20:=SUM(DT,20);

卖量20:=SUM(KT,20);

进出量20:=买量20+卖量20;

stICKLINE(进出量20>=0,0,进出量20,3,1),COLORRED;

STICKLINE(进出量20<0,0,进出量20,3,1),COLORFFFF00;

买量10:=SUM(DT,10);

卖量10:=SUM(KT,10);

进出量10:=买量10+卖量10,COLORRED,LINETHICK2;

STICKLINE(进出量10>=0,0,进出量10,1.8,1),COLORRED;

STICKLINE(进出量10<0,0,进出量10,1.8,1),COLORFFFF00;

买量5:=SUM(DT,5);

卖量5:=SUM(KT,5);

进出量5:=买量5+卖量5,COLORYELLOW,LINETHICK2;

STICKLINE(进出量5>=0,0,进出量5,1,1),COLORRED;

STICKLINE(进出量5<0,0,进出量5,1,1),COLORFFFF00;

买量:=SUM(DT,1);

卖量:=SUM(KT,1);

进出量:=买量+卖量;

STICKLINE(进出量>=0,0,进出量,0.5,0),COLORYELLOW;

STICKLINE(进出量<0,0,进出量,0.5,0),COLORGREEN;

通达信涨停乖离率指标公式