Flight Crew Air Transport Pilot (ATP); Flight Crew Multiengine; Flight Crew Instrument
Conflict Airborne Conflict; Deviation - Track / Heading All Types; Deviation / Discrepancy - Procedural Clearance; Deviation / Discrepancy - Procedural Published Material / Policy
Air Traffic Control Issued New Clearance; Air Traffic Control Separated Traffic; Flight Crew Took Evasive Action
Airspace Structure; Procedure
We took off from runway 4L in Newark. Prior to starting our right turn via the SID we became aware of another aircraft off our right side so we continued straight ahead. I was about to command a left turn when ATC told the other aircraft to make an immediate right turn and told us to maintain runway heading. At that point we entered IMC and followed ATC instructions. None of us heard the other aircraft announce he was going around.
B777 pilot reported deviating from SID heading due to traffic; moments after ATC gave conflicting traffic evasive clearance.