It's ok to be confident in yourself even when you're struggling. Don't do your opponents' job for them by letting yourself have a defeated mindset. Give your mind permission to expect great things to happen!
Confidence. Sure it's a team game, but it's also a one on one game. As a player, it's okay to have a chip on your shoulder when the pitcher walks you. "I am about to hit something really hard." Good stuff!