Shares rise for a third day on fresh money inflows