Good idea. Here are the trait codes
1 Logistic Wizard
2 Defensive Doctrine
4 Offensive Doctrine
8 Winter Specialist
16 Trickster
32 Engineer
64 Fortress Buster
128 Panzer Leader
256 Commando
512 Old Guard
E.g. you want Engineer and trickster -> 32 + 16 = 48. So 48 would be the trait for him. Guderian: OD,PL,TR,ENG -> 4 + 128 + 16 + 32 = 180