It is better not to have confidence and not trade if not following the trading rules.
If you're a newbie, confidence is the result of backtesting your strategy.
If you're an intermediate trader, consistency will give you confidence.
If someone says that he is confident but didn't backtest and encounter many loses, he probably lying to himself.
Your level of confidence will decrease as you lose more money trading.