area_trade_trader was indeed the issue. I checked their behaviours and copies these values from defend_job to trader_job;
scene_toughness_threshold = hardest
flee_scene_threat_style = hardest
loot_flee_threshold = hardest
Now traders do not instantly run away from fights(I think) but run when their hull drop down to 75%. But I get to keep trader NPCs without them retreating all the time. Thanks guys!