TSX starts October with a gain but extends weekly losing streak