通达信成交量H副图源码
2017-04-05 08:41:00来源:本站整理浏览:181
量:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
VOLUME:量,VOLSTICK;
买量:=IF(CLOSE>OPEN,量*(HIGH-LOW),IF(CLOSE<OPEN,量*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
卖量:=(IF(CLOSE>OPEN,0-量*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-量*(HIGH-LOW),0-VOL/2)))*-1;
总量:=(买量+卖量),VOLSTICK;
净量:=买量-卖量>0;
短量:=量-总量>0;
STICKLINE(买量,0,VOL,0.8,0),COLORRED;
STICKLINE(净量,0,VOL,0.8,0),COLORYELLOW;
STICKLINE(短量,0,VOL,0.8,0),COLORMAGENTA;
净买量黄色:0,COLORYELLOW;
买量红色:0,COLORRED;
短买量:0,COLORMAGENTA;
- 上一篇公式:通达信KDJ RSI MACD三背离必涨公式 源码
- 下一篇公式:通达信天使攻击副图源码