【通达信源码分享】量柱语言【附图】源码(源码请复制创建)
2022-08-08未知 编 辑:掌上指标
发一个【成交量语言】的附图公式,与大家分享!喜欢您就下载,不喜欢就只当走路上看了道风景,多谢!!!
有关成交量的重要性,就用不着我在这里啰嗦了,既然说是成交量语言,那么附图上的文字自然就开口告诉了您它想要说的话,具体说的是什么,请看公式效果图!
当然,只看懂了量柱说的话还不够,还要您自己结合股价所处的位置及运行趋势才能决定买卖操作!
公式源码:
PERIOD5:=COUNT(DATE<>REF(DATE,1),2)=2;
FROMOPEN1:=IF(HOUR<12,60*(HOUR-9)-30+MINUTE,120+60*(HOUR-13)+MINUTE);
VVOL:IF(BARSCOUNT(CLOSE)=1 AND PERIOD5,VOL*240/FROMOPEN,0),LINETHICK0;
STICKLINE(BARSCOUNT(CLOSE)=1 AND PERIOD5,VVOL,0,-1,-1),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
AA:=VOL>REF(V,1)*1.9;
AA1:=VOL<REF(LLV(VOL,13),1);
AA2:=VOL<REF(LLV(VOL,55),1);
STICKLINE(AA,0,V,2,0),COLORYELLOW;
STICKLINE(AA1,0,V,4,0),COLORGREEN;
STICKLINE(AA2,0,V,2,0),COLORMAGENTA;
TJ1:=COUNT(V>REF(V,1)*1.9,4)=1;
TJ2:=COUNT(V<REF(V,1) AND L>MIN(L,4) AND L>REF(L,1),3)=3 ;
TJ3:=TJ1 AND TJ2;
STICKLINE(TJ3,0,V,4,0),COLORRED;
MV2:MA(V,2),COLORWHITE;
MV6:MA(V,6),COLORYELLOW;
MV20:MA(V,20),COLORMAGENTA;
量柱:V/CAPITAL*100,VOLSTICK;
倍量柱:=IF(V/REF(V,1)>1.9 AND C>REF(C,1),1,0);
高量柱:=IF(V=HHV(V,10),3,2);
低量柱:=IF(V=LLV(V,10),9,8);
并肩平量柱:=IF((V/REF(V,1)>0.95 AND V/REF(V,1)<1.05),7,6);
缩量柱:=IF(V<REF(V,1) AND REF(V,1)<REF(V,2) AND REF(V,2)<REF(V,3),25,35);
梯量柱:=IF(V>REF(V,1) AND REF(V,1)>REF(V,2) AND REF(V,2)>REF(V,3),11,10);
DRAWTEXT(倍量柱>0,VOLUME*1.4,'倍'),COLORWHITE;
DRAWTEXT(高量柱>2,VOLUME*0.8,'高'),COLORWHITE;
DRAWTEXT(并肩平量柱>6,VOLUME*0.7,'平'),COLORWHITE;
DRAWTEXT(梯量柱>10,VOLUME*0.55,'梯'),COLORWHITE;
DRAWTEXT(低量柱>8,VOLUME*1.3,'低'),COLORYELLOW;
DRAWTEXT(缩量柱<35,VOLUME*1.8,'缩'),COLORYELLOW;