Cessna Stationair/Turbo Stationair 6
Flight Crew Instrument; Flight Crew Private
Communication Breakdown; Confusion; Distraction; Workload
Conflict NMAC
Air Traffic Control Issued New Clearance; Air Traffic Control Provided Assistance; Flight Crew Took Evasive Action
Human Factors; Procedure; Weather
Upon departure from ZZZ was initially given heading of 360 and transferred to ZZZ departure. Shortly after contacting departure was given clearance to continue climb to 6;000 ft. and notified of traffic. Not sure what my altitude was at that time but would guess at 2;500 - 3;000 ft. I was in IMC but had traffic on my ADSB screen. ATC turned me several times to left to avoid traffic. 1st plane was somewhat close but the ATC vectors got me clear. Then a second aircraft [appeared] on ADSB and ATC alerted me to was closing from my right same altitude. ATC gave me new vector. Other plane continued to close to extremely close range per the ADSB. this was all in IMC conditions. ATC called and had me immediately turn left (270 degrees I believe) if traffic not in sight which I did at an aggressive turn rate to avoid potential collision. The other aircraft had made a turn directly toward me. ATC then apologized to me and said that they were not talking to the other traffic and said they saw he had turned directly into me. I saw on my ADSB screen the tail number of the traffic but I failed to write it down. Both other planes were operating dangerously in IMC conditions without talking to ATC. Controller was very helpful and on top of the problem.
Pilot reported a NMAC with two unidentified aircraft in IMC.