通达信 超级会员专享 【大杀四方】(...
通达信 超级会员专享 【大杀四方】(箱体)指标
源码:
N:=13;
BC:=(H*0.382+L*0.618+O*0.382+C*0.618)/2;
LJ:=IF(INDEXC=C,BC,(BC+AMOUNT/(V*100))/2),COLORGRAY;
HT:=REF((HHV(LJ,N*0.691)+HHV(LJ,N)+HHV(LJ,N*1.309))/3,1),LINETHICK,COLORRED;
LT:=REF((LLV(LJ,N*0.691)+LLV(LJ,N)+LLV(LJ,N*1.309))/3,1),LINETHICK,COLORGREEN;
ZT:=(HT+LT)/2,LINETHICK,COLORYELLOW;
STICKLINE(ISLASTBAR=1 AND LJ<ZT,HT,LT,N*8,0),COLORBLUE;
STICKLINE(ISLASTBAR=1 AND LJ=ZT,HT,LT,N*8,0),COLORGRAY;
STICKLINE(ISLASTBAR=1 AND LJ>ZT,HT,LT,N*8,1),COLORWHITE;
STICKLINE(ISLASTBAR=1,ZT,ZT,N*8,0),COLORWHITE;
箱顶:HT,COLORWHITE,NODRAW;
箱底:LT,COLORWHITE,NODRAW;
箱中:ZT,COLORWHITE,NODRAW;
这是部分源码,指标已经打包好了,需要的可以拿来测试!
赞 (0)