通达信绝版量柱指标公式
指标源码:
三一:HIGH-(HIGH-LOW)*0.333,NODRAW;
二一:HIGH-(HIGH-LOW)*0.5,NODRAW;
三二:HIGH-(HIGH-LOW)*0.666,NODRAW;
实体三一:OPEN+(CLOSE-OPEN)*0.666,NODRAW;
实体腰线:OPEN+(CLOSE-OPEN)*0.5,NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,DYBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,GNBLOCK);
STICKLINE(REF(LOW,1)>HIGH,HIGH,REF(LOW,1),5,0),COLORGRAY;
STICKLINE(REF(HIGH,1)<LOW,LOW,REF(HIGH,1),5,0),COLORGRAY;
C_:CONST(CLOSE),POINTDOT,COLORLIRED;
XA_1:=MA(CLOSE,5);
MA5角度:ATAN((XA_1/REF(XA_1,1)-1)*100)*180/3.1416,NODRAW;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
XA_2:=REF(CLOSE,1);
XA_3:=IF(CLOSE>=1,10000,100000);
XA_4:=1.1*XA_2-49/XA_3;
XA_5:=1.05*XA_2-49/XA_3;
XA_6:=0.9*XA_2+51/XA_3;
XA_7:=0.95*XA_2+51/XA_3;
XA_8:=NAMELIKE(8) OR NAMELIKE(9);
XA_9:=IF(XA_8,CLOSE>=XA_5,CLOSE>=XA_4);
XA_10:=IF(XA_8,CLOSE<=XA_7,CLOSE<=XA_6);
XA_11:=IF(XA_8,HIGH>=XA_5,HIGH>=XA_4);
XA_12:=IF(XA_8,LOW<=XA_7,LOW<=XA_6);
STICKLINE(XA_11,HIGH,MAX(CLOSE,OPEN),0,0),COLORYELLOW;
STICKLINE(XA_12,LOW,MIN(CLOSE,OPEN),0,0),COLORBLUE;
XA_13:=CLOSE>OPEN AND (CLOSE>=XA_5 OR CLOSE>1.05*OPEN-51/XA_3) OR (CLOSE>1000 AND CLOSE>XA_2*1.024);
STICKLINE(XA_13,OPEN,CLOSE,1,0),COLOR0000BB;
XA_14:=CLOSE<OPEN AND (CLOSE<=XA_7 OR CLOSE<0.95*OPEN+49/XA_3) OR (CLOSE>1000 AND CLOSE<XA_2*0.976);
STICKLINE(XA_14,OPEN,CLOSE,1,0),COLORLIGREEN;
STICKLINE(XA_9,OPEN,CLOSE,1,0),COLORYELLOW;
STICKLINE(XA_10,OPEN,CLOSE,1,0),COLORBLUE;
XA_15:=CLOSE<OPEN AND CLOSE>REF(CLOSE,1);
STICKLINE(XA_15,OPEN,CLOSE,0,0),COLORRED;
XA_16:=CLOSE>OPEN AND CLOSE<REF(CLOSE,1);
STICKLINE(XA_16,OPEN,CLOSE,0,0),COLORGREEN;
XA_17:=PERIOD=5 AND NAMELIKE(53) AND (ABS(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.025 OR ABS(CLOSE-OPEN)>=60);
STICKLINE(XA_17,(HIGH+LOW)/2,(HIGH+LOW)/2,2,0),COLORYELLOW;
STICKLINE(XA_13 OR XA_14 OR XA_9 OR XA_10 AND BETWEEN(CLOSE,1,500),LOW+(HIGH-LOW)/2,LOW+(HIGH-LOW)/2,1,0),COLORYELLOW;
日数:=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;
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;
评论(0)