天數(shù):=60; 換手:VOL/CAPITAL*100,COLORWHITE,NODRAW; 倍量值:V/REF(V,1),COLORYELLOW,NODRAW; {高量柱} G:=V=HHV(V,天數(shù)); 高:=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,天數(shù)); 低:=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 |
|