Dynamic prediction in survival analysis with binary non-reversible time-dependent treatment indicator