动态读盘{通达信、主副均可、源码、贴图}
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买盘:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主动卖盘:=IF(CLOSE>OPEN,AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,AA*(HIGH-LOW),VOL/2));
买卖比:=主动买盘/主动卖盘;
WJ:=(HIGH+LOW+CLOSE)/3;
VD1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
VD2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ);
VD3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
VD4:=IF(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN));
VD5:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
VD6:=(VD1*VD5);
VD7:=(VD2*VD5);
VD8:=(VD3*VD5);
VD9:=(VD4*VD5);
买入量:=(VD9+VD8);
卖出量:=(VD6+VD7);
买入资金:=买入量*CLOSE/100;
卖出资金:=卖出量*CLOSE/100;
DRAWNUMBER_FIX(1,0.11,0.08,0,CONST(VOL)),COLOR00FFFF;
DRAWNUMBER_FIX(1,0.11,0.15,0,CONST(主动买盘)),COLORFF00FF;
DRAWNUMBER_FIX(1,0.11,0.22,0,CONST(主动卖盘)),COLORFFFFFF;
DRAWNUMBER_FIX(1,0.11,0.29,0,CONST(买卖比)),COLOR00FF00;
DRAWNUMBER_FIX(1,0.11,0.36,0,CONST(买入资金)),COLOR00FFFF;
DRAWNUMBER_FIX(1,0.11,0.43,0,CONST(卖出资金)),COLORRED;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
AA赋值:成交量/((最高价-最低价)*2-收盘价-开盘价的绝对值)
主动买盘赋值:IF(收盘价>开盘价,AA*(最高价-最低价),IF(收盘价<开盘价,AA*((最高价-开盘价)+(收盘价-最低价)),成交量/2))
主动卖盘赋值:IF(收盘价>开盘价,AA*((最高价-收盘价)+(开盘价-最低价)),IF(收盘价<开盘价,AA*(最高价-最低价),成交量/2))
买卖比赋值:主动买盘/主动卖盘
WJ赋值:(最高价+最低价+收盘价)/3
VD1赋值:IF(最高价=最低价,1,最高价-开盘价和收盘价较大值)
VD2赋值:IF(最高价=最低价,1,收盘价和开盘价较大值-WJ)
VD3赋值:IF(最高价=最低价,1,开盘价和收盘价的较小值-最低价)
VD4赋值:IF(最高价=最低价,1,WJ-收盘价和开盘价的较小值)
如果最高价=最低价返回4否则返回最高价-最低价
VD6赋值:(VD1*VD5)
VD7赋值:(VD2*VD5)
VD8赋值:(VD3*VD5)
VD9赋值:(VD4*VD5)
买入量赋值:(VD9+VD8)
卖出量赋值:(VD6+VD7)
买入资金赋值:买入量*收盘价/100
卖出资金赋值:卖出量*收盘价/100
DRAWNUMBER_FIX(1,0.11,0.08,0,CONST(成交量)),COLOR00FFFF
DRAWNUMBER_FIX(1,0.11,0.15,0,CONST(主动买盘)),COLORFF00FF
DRAWNUMBER_FIX(1,0.11,0.22,0,CONST(主动卖盘)),COLORFFFFFF
DRAWNUMBER_FIX(1,0.11,0.29,0,CONST(买卖比)),COLOR00FF00
DRAWNUMBER_FIX(1,0.11,0.36,0,CONST(买入资金)),COLOR00FFFF
DRAWNUMBER_FIX(1,0.11,0.43,0,CONST(卖出资金)),画红色