通达信量柱六种形态指标(源码)
公式源码
天数:=60;
VOL,VOLSTICK;
换手:VOL/CAPITAL*100,COLORWHITE,NODRAW; 倍量值:V/REF(V,1),COLORYELLOW,NODRAW;
{高量柱} G:=V=HHV(V,天数); 高:=IF(G,G,0);
STICKLINE(高 ,0,V,-1,0),COLORRED;
DRAWTEXT( 高,(高+V)*1.3,'高'),COLORRED;
{倍量柱} 倍量柱:=V/REF(V,1)>1.9 AND C>REF(C,1);
STICKLINE( 倍量柱 ,0,V,1,0),COLORYELLOW,LINETHICK2;
DRAWTEXT( 倍量柱, (倍量柱+ V)*1.05,'倍'),COLORYELLOW;
{平量柱} 平量柱:=V/REF(V,1)>=0.96 AND V/REF(V,1)<=1.04;
{或 平量柱:=ABS((V-REF(V,1))/REF(V,1)*100)<0.05;}
STICKLINE(平量柱,0,V,1,0),COLORWHITE;
DRAWTEXT(平量柱, (平量柱+V)*1.05,'平'),COLORWHITE;
{梯量柱} 梯量柱:=V>REF(V,1) AND REF(V,1)>REF(V,2);
STICKLINE( 梯量柱,0,V,1,0), COLOR66CCFF;
DRAWTEXT( 梯量柱, ( 梯量柱+V)*1.2,'梯'),COLOR66CCFF;
{低量柱} D:=V=LLV(V,天数); 低:=IF(D, D,0);
STICKLINE( 低 ,0,V,1,0),COLORGREEN;
DRAWTEXT( 低, (低+V)*1.08,'低'),COLORGREEN;
{缩量柱} S:=V/REF(V,1)<0.95; 缩量柱:=SUM(S,3)=3;
STICKLINE( 缩量柱 ,0,V,1,0),COLORWHITE,LINETHICK1;
DRAWTEXT( 缩量柱, ( 缩量柱+V)*1.05,'缩'),COLORWHITE;
下面为通达信量柱六种形态指标公式演示图片
- 上一篇公式:通达信胜庄之宝指标(源码)
- 下一篇公式:通达信MACD分时主图指标(源码)