Trading is definitely risky, we have to trade with the risk in mind. But trading online seems to me to be more risky. If you want to do online trading my advice to you is definitely not to invest too much money. Because if you invest too much money then there will be risk of losing. So first you need to understand about trading by investing small amount of money then you can trade more money step by step. But for a newbie I would say that if he is new to trading then he must first gain knowledge about trading if you don't gain knowledge about trading then you won't get much success. So whether we want to do online or direct trading, our patience is very important. Many times it can be seen that many big traders also lose patience. So if we can do trading with patience and long-term planning. Of course, through this trading we can get enough profit which will encourage us to do more trading.
If by trading online you mean cryptocurrency trading then I'd agree with you that the cryptocurrency market is much more volatile and unpredictable than traditional financial markets such as stocks and forex, and this is the reason why it is considered to be risky, but I would say there are ways to mitigate the risks and be on the safer side, for example, one can only trade in the spot market as a beginner and only buy and sell cryptocurrencies that they know are old and good.
However, this doesn't mean that a person doesn't need knowledge to start. It's easier to trade in the spot market but for someone to begin with it, they must gain basic knowledge about the market, cryptocurrencies, and several trading practices and metrics that they will require when they are making their trades.