通达信非常好的VOL
N:=5;
M:=13;
收益: FINANCE(33), POINTDOT,COLORFFCC66;量比:DYNAINFO(17),COLORYELLOW,NODRAW;
成交量:VOL,COLORRED,NODRAW;
YE:=(HIGH+LOW+CLOSE)/3;
YE1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
YE2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-YE);
YE3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
YE4:=IF(HIGH=LOW,1,YE-MIN(CLOSE,OPEN));
YE5:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
{}
YE6:=SUM((YE1*YE5),1);
YE7:=SUM((YE2*YE5),1);
YE8:=SUM((YE3*YE5),1);
YE9:=SUM((YE4*YE5),1);
STICKLINE((YE9+YE8)>0,(YE9+YE8),0,2.5,0),COLOR0000AA;
STICKLINE((YE9+YE8)>0,(YE9+YE8),0,1.7,0),COLOR0000CC;
STICKLINE((YE9+YE8)>0,(YE9+YE8),0,0.9,0),COLOR0000DD;
STICKLINE((YE9+YE8)>0,(YE9+YE8),0,0.04,0),COLOR0000FF;
STICKLINE((YE6+YE7)>0,(YE6+YE7)+(YE9+YE8),(YE9+YE8),2.5,0),COLOR998855;
STICKLINE((YE6+YE7)>0,(YE6+YE7)+(YE9+YE8),(YE9+YE8),1.7,0),COLORBBAA77;
STICKLINE((YE6+YE7)>0,(YE6+YE7)+(YE9+YE8),(YE9+YE8),0.9,0),COLORDDCC99;
STICKLINE((YE6+YE7)>0,(YE6+YE7)+(YE9+YE8),(YE9+YE8),0.04,0),COLORFFEEBB;
买盘:=(YE9+YE8);
卖盘:=(YE6+YE7)*(-1);
买卖差:=(YE9+YE8)-(YE6+YE7);
成交量增减:(100*((VOL/REF(VOL,1))-1)),NODRAW;
STICKLINE(买卖差>0,0,买卖差,2.5,0),COLOR00AAAA;
STICKLINE(买卖差>0,0,买卖差,1.7,0),COLOR00CCCC;
STICKLINE(买卖差>0,0,买卖差,0.9,0),COLOR00EEEE;
STICKLINE(买卖差>0,0,买卖差,0.04,0),COLOR00FFFF;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N赋值:5
M赋值:13
输出
收益: FINANCE(33), POINTDOT,COLORFFCC66
输出量比:DYNAINFO(17),画黄色,NODRAW
输出
成交量:成交量,画红色,NODRAW
YE赋值:(最高价+最低价+收盘价)/3
YE1:=IF(最高价=最低价,1,最高价-OPEN和收盘价较大值)
YE2:=IF(最高价=最低价,1,收盘价和OPEN较大值-YE)
YE3:=IF(最高价=最低价,1,OPEN和收盘价的较小值-最低价)
YE4:=IF(最高价=最低价,1,YE-收盘价和OPEN的较小值)
如果最高价=最低价返回4否则返回最高价-最低价
{}
YE6:=SUM((YE1*YE5),1)
YE7:=SUM((YE2*YE5),1)
YE8:=SUM((YE3*YE5),1)
YE9:=SUM((YE4*YE5),1)
STICKLINE((YE9+YE8)>0,(YE9+YE8),0,2.5,0),COLOR0000AA
STICKLINE((YE9+YE8)>0,(YE9+YE8),0,1.7,0),COLOR0000CC
STICKLINE((YE9+YE8)>0,(YE9+YE8),0,0.9,0),COLOR0000DD
STICKLINE((YE9+YE8)>0,(YE9+YE8),0,0.04,0),COLOR0000FF
STICKLINE((YE6+YE7)>0,(YE6+YE7)+(YE9+YE8),(YE9+YE8),2.5,0),COLOR998855
STICKLINE((YE6+YE7)>0,(YE6+YE7)+(YE9+YE8),(YE9+YE8),1.7,0),COLORBBAA77
STICKLINE((YE6+YE7)>0,(YE6+YE7)+(YE9+YE8),(YE9+YE8),0.9,0),COLORDDCC99
STICKLINE((YE6+YE7)>0,(YE6+YE7)+(YE9+YE8),(YE9+YE8),0.04,0),COLORFFEEBB
买盘赋值:(YE9+YE8)
卖盘赋值:(YE6+YE7)*(-1)
买卖差赋值:(YE9+YE8)-(YE6+YE7)
输出成交量增减:(100*((成交量/1日前的成交量)-1)),NODRAW
当满足条件买卖差>0时,在0和买卖差之间画柱状线
当满足条件买卖差>0时,在0和买卖差之间画柱状线
当满足条件买卖差>0时,在0和买卖差之间画柱状线
当满足条件买卖差>0时,在0和买卖差之间画柱状线
AA赋值:成交量/((最高价-最低价)*2-收盘价-OPEN的绝对值)