ANSWER:
Trading in stocks is permissible providing that the line of work of such companies is halal and that they don’t finance their projects with riba nor deal in riba.
If you buy stocks on the condition that you sell it on the same day, this is prohibited as it is a form of gambling.
But if you buy it and can keep it as much as you want this is permissible providing there is no interests involved and that the stocks are halal and the line of work of such a company is not financed by riba.