通达信绝版量柱指标公式
2020/11/24 19:00:15
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;
投股票 网 w ww.tou18.cn
股市公式下载推荐