As A2 and Learner have sort of mentioned, if you're going to twist wires, you should:
1. Twist your motor wires (per coil) as well as your endstop wires.
2. Twist the endstop wires the opposite direction to your motor wires.
This should reduce interference between the motors and endstops. Also, by twisting the motor wires "per coil" you keep the motor twisted pairs 'balanced".
Unless someone can explain it simpler, I suggest we add this text to the wiki page.
1. Twist your motor wires (per coil) as well as your endstop wires.
2. Twist the endstop wires the opposite direction to your motor wires.
This should reduce interference between the motors and endstops. Also, by twisting the motor wires "per coil" you keep the motor twisted pairs 'balanced".
Unless someone can explain it simpler, I suggest we add this text to the wiki page.