Prayer in logic doesn't work for anything at all. Don't get me wrong, I am not saying you shouldn't be religious, of course be religious if you want to and there is nothing wrong with that, it's definitely something that makes sense for you.
However, that doesn't mean that you are going to get a result out of it, praying is only there to make sure you feel better about it, not so that it would work. Just imagine if prayers work for everyone, there would be chaos in the world, because many people pray for the same things, and both can't happen at the same time. What if someone prays that the price goes down and the other prays that it goes up, we are looking at who was a better person for god to accept a prayer? Of course not. So prayers are not working in trading, or anything else.
There's nothing wrong with praying while trading because it reflects their faith and belief in God. However, prayer will not be effective without knowledge, plan and discipline. Because the market does not operate based on religious beliefs, but rather on market psychology, money flow and macroeconomic factor. Therefore, without knowledge, prayer becomes meaningless.
Just like in real life, if we want to become rich or have a happy life. We need to make an effort, take action, and make the right decision based on our understanding. We cannot become rich simply by praying and waiting for God to bring money to our doorstep without doing anything. Similarly, in trading, we need knowledge and action, we can not just pray and wait for result