[通达信] TDX箱体
整合的指标,加之修改,希望大家喜欢;如有兴趣,请取阅,顺便撒些银两可怜鄙人。
N:=3;A:=5;
KK:=IF(H=HHV(H,N),H,L);
KK0:=CONST(MAX(TROUGHBARS(KK,A,1),PEAKBARS(KK,A,1)));
前期大箱顶:IF(CURRBARSCOUNT<KK0+2,CONST((PEAK(KK,15,1))),DRAWNULL);
前期大箱底:IF(CURRBARSCOUNT<KK0+2,CONST((TROUGH(KK,15,1))),DRAWNULL);
STICKLINE(CURRBARSCOUNT<KK0+2,前期大箱顶,前期大箱底,5,0),COLOR00AA99;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
X:=(C-REF(L,6))*3;
Y:=REF(L,6)+X;
天:CONST(Y),NODRAW,COLORYELLOW;
地:CONST(REF(L,6)),NODRAW,COLOR00FF00;
强:CONST(Y-(Y-REF(L,6))*1/4),NODRAW,COLORFFFF00;
中:CONST(Y-(Y-REF(L,6))*1/2),NODRAW,COLORWHITE;
弱:CONST(Y-(Y-REF(L,6))*3/4),NODRAW,COLOR0099FF;
STICKLINE(C>0,天,天,12,0),COLORYELLOW;
STICKLINE(C>0,地,地,12,0),COLOR00FF00;
STICKLINE(C>0,强,强,12,0),COLORFFFF00;
STICKLINE(C>0,中,中,12,0),COLORWHITE;
STICKLINE(C>0,弱,弱,12,0),COLOR0099FF;
{------------------------------------};
页:
[1]
2