大盘资金进出统计副图通达信指标 副图 源码附图
M:=36;
N1:=13;
N:=100;
P1:=5;
SHORT:=21;
LONG:=44;
MID:=11;
N2:=11;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
成交:=VOL,POINTDOT;
主买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-
LOW)),VOL/2)),COLORWHITE,POINTDOT;
主卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-
VOL/2)),COLOR00FF00,POINTDOT;
流入:=IF((主买盘)-(-主卖盘)>0,(主买盘)-(-主卖盘),DRAWNULL),POINTDOT,COLORYELLOW;
流出:=IF((主买盘)-(-主卖盘)<0,(主买盘)-(-主卖盘),
DRAWNULL),POINTDOT,COLOR00FF00;
五日净量:SUM(流入,5),LINETHICK2,COLORFFFFFF;
十日净量:SUM(流入,10),LINETHICK2,COLOR007800;
二十日净量:SUM(流入,20),LINETHICK2,COLOR0000AD;
六十日净量:SUM(流入,60),LINETHICK2,COLORFF0000;
总涨家数:"SH000001$ADVANCE"+"SZ399001$ADVANCE",POINTDOT,COLORWHITE;
总跌家数:"SH000001$DECLINE"+"SZ399001$DECLINE",POINTDOT,COLOR00FF00;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
M赋值:36
N1赋值:13
N赋值:100
P1赋值:5
SHORT赋值:21
LONG:=44
MID:=11
N2:=11
VAR1赋值:成交量/((最高价-最低价)*2-收盘价-OPEN的绝对值)
成交赋值:成交量,POINTDOT
主买盘赋值:IF(收盘价>OPEN,VAR1*(最高价-最低价),IF(收盘价
主卖盘赋值:IF(收盘价>OPEN,0-VAR1*((最高价-收盘价)+(OPEN-最低价)),IF(收盘价
流入赋值:IF((主买盘)-(-主卖盘)>0,(主买盘)-(-主卖盘),DRAWNULL),POINTDOT,画黄色
流出赋值:IF((主买盘)-(-主卖盘)<0,(主买盘)-(-主卖盘),
DRAWNULL),POINTDOT,COLOR00FF00
输出五日净量:5的流入日累和,LINETHICK2,COLORFFFFFF
输出十日净量:10的流入日累和,LINETHICK2,COLOR007800
二输出十日净量:20的流入日累和,LINETHICK2,COLOR0000AD
六输出十日净量:60的流入日累和,LINETHICK2,COLORFF0000
输出总涨家数:"SH000001$ADVANCE"+"SZ399001$ADVANCE",POINTDOT,画白色
输出总跌家数:"SH000001$DECLINE"+"SZ399001$DECLINE",POINTDOT,COLOR00FF00