Foreigners were net buyers of South African stocks Tuesday.