以下是同花顺量柱源码
{m1 2 500 5 ; m2 2 500 60}
VOLUME:VOL,VOLSTICK;
MAVOL1:MA(VOLUME,M1);
MAVOL2:MA(VOLUME,M2);
II:COUNT(CLOSE>REF(CLOSE,1),2)==2 AND COUNT(VOL
STICKLINE(II,0,V,3,0),COLORGREEN;
DRAWTEXT(II,VOL*1.5,’降’),COLORGREEN;
T:=DYNAINFO(8)>0;
VO:VOL==LLV(VOL,100) AND T;
地量柱:T AND VO,COLORBLUE;
STICKLINE(地量柱,0,V,3,0),COLORBLUE;
DRAWTEXT(地量柱,VOL*2.5,’地’),COLORBLUE;
BLZ:=VOL>REF(V,1)*1.9;
BLZ1:=VOL
BLZ2:=VOL
STICKLINE(BLZ,0,V,3,0),COLORYELLOW;
倍量柱:BLZ,COLORYELLOW;
DRAWTEXT(倍量柱,VOL*1.3,’倍’),COLORYELLOW;
HJZ:=(3*C+H+L+O)/6;
HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36;
HJZ3:=VOL==HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>HJZ2 AND C>O;
黄金柱:FILTER(HJZ3,5),STICK,COLORRED,LINETHICK4;
STICKLINE(黄金柱,0,V,3,0),COLORRED;
DRAWTEXT(黄金柱,VOL*1.6,’黄’),COLORRED;
价涨量缩:II,COLORGREEN;
FLZ:=V>REF(V,1)*0.98 AND V
STICKLINE(FLZ,0,V,3,0),COLORMAGENTA;
DRAWTEXT(FLZ,VOL*1.5,’平’),COLORMAGENTA;
平量柱:FLZ,COLORMAGENTA;
评论(0)