TDX1:=BARSLAST(ABS(REF(C,1)*1.1-C)<=0.01);
TDX2:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);
TDX3:=C>MA(C,5) AND O<MA(C,5);
TDX4:=C>MA(C,10) AND O<MA(C,10);
TDX5:=C>MA(C,30) AND O<MA(C,30);
TDX6:=(3*C+L+O+H)/6;
TDX7:=20*TDX6+19*REF(TDX6,1)+18*REF(TDX6,2)+17*REF(TDX6,3);
TDX8:=16*REF(TDX6,4)+15*REF(TDX6,5)+14*REF(TDX6,6)+13*REF(TDX6,7);
TDX9:=12*REF(TDX6,8)+11*REF(TDX6,9)+10*REF(TDX6,10);
TDX10:=9*REF(TDX6,11)+8*REF(TDX6,12)+7*REF(TDX6,13)+6*REF(TDX6,14);
TDX11:=5*REF(TDX6,15)+4*REF(TDX6,16)+3*REF(TDX6,17)+2*REF(TDX6,18);
TDX20:=(TDX7+TDX8+TDX9+TDX10+TDX11+REF(TDX6,20))/210;
TDX21:=(CROSS(C,(1+11/100)*MA(C,5)) AND H=C);
ZM:=C>MA(C,60);
XG:=TDX21 AND ZM;
STICKLINE(XG,0,3,2,0)COLOR00FFFF;