自用VOL指标公式(附图+说明)(附通达信源码)
-
相关简介:该公式中的多、空量是以股票当天实时的分价分量图形为计算模式,一般情况下该种图形是以三角形的形态分布,所以计算时借用了三角形面积的计算方法,是以当天最高价、最低价、均价为三角形的三个角,以收盘价的位置为多、空量面积的分界线,计算出各自面积,再以多、空量面积的比例计算出当天的多、空量,当然这种计算方法也还是一种估算,但通过游子用其它方法计算对比,个人感觉该方法还是比较接近实际,特别是对喜欢短线操作的朋友来说,有一定的参考价值。该方法借用了前人的理论,在此谢谢他! C/C++ Code 复制内容到剪
-
文章来源:择股网作者:股海网发布时间:2009-09-22浏览次数:
该公式中的多、空量是以股票当天实时的分价分量图形为计算模式,一般情况下该种图形是以三角形的形态分布,所以计算时借用了三角形面积的计算方法,是以当天最高价、最低价、均价为三角形的三个角,以收盘价的位置为多、空量面积的分界线,计算出各自面积,再以多、空量面积的比例计算出当天的多、空量,当然这种计算方法也还是一种估算,但通过游子用其它方法计算对比,个人感觉该方法还是比较接近实际,特别是对喜欢短线操作的朋友来说,有一定的参考价值。该方法借用了前人的理论,在此谢谢他!
C/C++ Code复制内容到剪贴板
- 【自用VOL】
- DRAWGBK((CLOSE > 0),COLORRGB(0,0,0),COLORRGB(0,0,0),1);
- 量:VOL,LINETHICK,Color00FFFF;
- STICKLINE(CLOSE>REF(CLOSE,1),量,0,8,0),Color0054A8;
- STICKLINE(CLOSE<=REF(CLOSE,1),量,0,8,0),Color999900;
- 预量:IF(ISLASTBAR AND DATATYPE=6 ,VOL*240/OPENMINUTES(CURRENTTIME),0),ColorFF00FF,LINETHICK;
- 预量增:预量-REF(V,1),LINETHICK,COLORGRAY;
- CB:=IF(CAPITAL>1,AMOUNT/VOL/100,(HIGH+LOW+2*CLOSE)/4);
- 空1:=IF((HIGH-LOW)>0 AND CLOSE>CB, ((HIGH-CLOSE)/(HIGH-CB))*((HIGH-CLOSE)/(HIGH-CB))*((HIGH-CB)/(HIGH-LOW)*VOL) ,0);
- 多1:=IF((HIGH-LOW)>0 AND CLOSE>CB, VOL-空1 ,0);
- 多2:=IF((HIGH-LOW)>0 AND CLOSE<=CB, ((CLOSE-LOW)/(CB-LOW))*((CLOSE-LOW)/(CB-LOW))*((CB-LOW)/(HIGH-LOW)*VOL) ,0);
- 空2:=IF((HIGH-LOW)>0 AND CLOSE<=CB, VOL-多2 ,0);
- 多3:=IF((HIGH-LOW)=0 AND CLOSE>REF(CLOSE,1), VOL,0);
- 空3:=IF((HIGH-LOW)=0 AND CLOSE<=REF(CLOSE,1), VOL,0);
- 多方量:多1+多2+多3,LINETHICK,Color0000FF;
- 空方量:空1+空2+空3,LINETHICK,Color00B000;
- STICKLINE(空方量,量,O,6,0),COLOR005a00;
- STICKLINE(空方量,量,O,5,0),COLOR006600;
- STICKLINE(空方量,量,O,4,0),COLOR006b00;
- STICKLINE(空方量,量,O,3,0),COLOR007700;
- STICKLINE(空方量,量,O,2,0),COLOR007b00;
- STICKLINE(空方量,量,0,1,0),COLOR009900;
- STICKLINE(多方量,多方量,O,6,0),COLOR000066;
- STICKLINE(多方量,多方量,O,5,0),COLOR000077;
- STICKLINE(多方量,多方量,O,4,0),COLOR000099;
- STICKLINE(多方量,多方量,O,3,0),COLOR0000bb;
- STICKLINE(多方量,多方量,O,2,0),COLOR0000dd;
- STICKLINE(多方量,多方量,O,1,0),COLOR0000ff;
- 多方线:EMA(多方量,3),Color00A8A8,LINETHICK2;
- 空方线:EMA(空方量,3),Color484800,LINETHICK2;
下面的源码通达信软件可以使用
C/C++ Code复制内容到剪贴板
- 【自用VOL】
- 量:VOL,LINETHICK,COLOR00FFFF;
- STICKLINE(CLOSE>REF(CLOSE,1),量,0,3.5,0),COLOR0054A8;
- STICKLINE(CLOSE<=REF(CLOSE,1),量,0,3.5,0),COLOR999900;
- 预量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),COLORFF00FF,LINETHICK;
- 预量增:预量-REF(V,1),LINETHICK,COLORWHITE;
- CB:=IF(CAPITAL>1,AMOUNT/VOL/100,(HIGH+LOW+2*CLOSE)/4);
- 空1:=IF((HIGH-LOW)>0 AND CLOSE>CB, ((HIGH-CLOSE)/(HIGH-CB))*((HIGH-CLOSE)/(HIGH-CB))*((HIGH-CB)/(HIGH-LOW)*VOL) ,0);
- 多1:=IF((HIGH-LOW)>0 AND CLOSE>CB, VOL-空1 ,0);
- 多2:=IF((HIGH-LOW)>0 AND CLOSE<=CB, ((CLOSE-LOW)/(CB-LOW))*((CLOSE-LOW)/(CB-LOW))*((CB-LOW)/(HIGH-LOW)*VOL) ,0);
- 空2:=IF((HIGH-LOW)>0 AND CLOSE<=CB, VOL-多2 ,0);
- 多3:=IF((HIGH-LOW)=0 AND CLOSE>REF(CLOSE,1), VOL,0);
- 空3:=IF((HIGH-LOW)=0 AND CLOSE<=REF(CLOSE,1), VOL,0);
- 多方量:多1+多2+多3,NODRAW,COLORRED;
- 空方量:空1+空2+空3,NODRAW,COLORGREEN;
- 多量线:EMA(多方量,3),COLOR00A8A8,NODRAW;
- 空量线:EMA(空方量,3),COLOR484800,NODRAW;
- STICKLINE(空方量,量,O,3,0),COLOR005A00;
- STICKLINE(空方量,量,O,2.5,0),COLOR006600;
- STICKLINE(空方量,量,O,2,0),COLOR006B00;
- STICKLINE(空方量,量,O,1.5,0),COLOR007700;
- STICKLINE(空方量,量,O,1,0),COLOR007B00;
- STICKLINE(空方量,量,0,0.5,0),COLOR009900;
- STICKLINE(多方量,多方量,O,3,0),COLOR000066;
- STICKLINE(多方量,多方量,O,2.5,0),COLOR000077;
- STICKLINE(多方量,多方量,O,2,0),COLOR000099;
- STICKLINE(多方量,多方量,O,1.5,0),COLOR0000BB;
- STICKLINE(多方量,多方量,O,1,0),COLOR0000DD;
- STICKLINE(多方量,多方量,O,0.5,0),COLOR0000FF;
- 多量线,COLOR00A8A8,LINETHICK2;
- 空量线,COLOR484800,LINETHICK2;
下载链接:( 说明:股海资源如需解压密码的请输入本站域名:www.guhai.com.cn请仔细输入!)
|
上一篇:正版的破解指标—超级黑马早发现
下一篇:通吃指标破解--飞狐版本及选股