Aided by strong buying interests of foreign institutions, Qatar Stock Exchange gained 47 points to inch near the 10,000 mark.