Most people it takes a few thousand hours, anywhere between 3,000 - 10,000 hours.
What adds a lot of time to the process is that many people spend a lot of time searching for the holy grail, that magic indicator, the magic indicator settings that will make them money.
If you can abandon the search for the holy grail and focus on what works that can shave off 1,000 - 2,000 hours off the learning curve.
Also if you can network and learn from top traders that are already making money and actually follow a lot of what they do that cuts the learning time drastically by 50% or more.
A lot of the learning time is a result of not believing or understanding the fundamentals of trading success. Usually when someone says cut your losses and let your profits run, it is hard for the beginner trader to understand what that exactly means. Also simple trader mindset like accepting the risk , and knowing how to handle losses. Most beginner traders do not really realize what that means, and it can take them months or years to fully understand that and get it into their mindset.
That is why you need access to the best information and best answers to your questions which are specific to your unique situation.