{在K线图上显示倍量柱}
倍量:=DRAWICON((VOL>REF(V,1)*2.0 OR VOL=REF(V,1)*2.0) AND C>REF(C,1),H+0.2,26);
STICKLINE(倍量,OPEN,CLOSE,2,0),COLORYELLOW;
{VAR2:=0.0001*AMOUNT,VOLSTICK;
百日地量LV(VAR2,100)=VAR2,STICK,COLORMAGENTA,NODRAW;}
N3:=100;
百日地量:= V=LLV(V,N3) AND V>0 AND BARSCOUNT(V)>=N3;
STICKLINE(百日地量,OPEN,CLOSE,1.8,0),COLORMAGENTA;
N1:=13;
N2:=55;
地量10日:= V=LLV(V,N1) AND V>0 AND BARSCOUNT(V)>=N1;
地量50日:= V=LLV(V,N2) AND V>0 AND BARSCOUNT(V)>=N2;
STICKLINE(地量10日,OPEN,CLOSE,1.8,0),COLORWHITE;
STICKLINE(地量50日,OPEN,CLOSE,1.8,0),COLORWHITE;
G2:=REF(C,1);
涨停:=IF((C-G2)*100/G2>=(10-0.01*100/G2),1,0);
STICKLINE(涨停,OPEN,CLOSE,-1,0),COLORMAGENTA;
{STICKLINE(涨停,H,L,0,0),COLORMAGENTA;}
跌停:=IF((G2-C)*100/G2>=(10-0.01*100/G2),1,0);
STICKLINE(跌停,OPEN,CLOSE,-1,0),COLORBLUE;
STICKLINE(跌停,H,L,0,1),COLORBLUE;
涨家数:INDEXADV,NODRAW,COLORLIMAGENTA ;
跌家数:INDEXDEC,NODRAW,COLORGREEN;
本文来自: 股海明灯 详细文章参考:http://www.178448.com/thread-399725-1-1.html |