TORONTO — Canada's main stock index gained almost 200 points Friday, led by strength in energy, tech and base metals, while U.S. markets also rose. The S&P/TSX composite index closed up 194.33 points at 24,162.83.