Because the bar with your second arrow on it is not a reversal bar.
So DTX is not necessary to be in the same direction
it must have a reversal TX within 5 ticks of the previous reversal TX to be a double TX they must be in the same reversal bar direction
this is what i think: