I've realized, that whenever something goes wrong, not in the way I wanted, even at work, my confidence drops significantly to the point where I'm closing myself to the outside world and relations with peoeple.

On the other hand, whenever I've success with anything even small, my confidence is at peak and I can do anything - keep firm eye contact, smiling to all people, giving complements, in short I feel that nothing can stop me.

This is terrible for me, since I can't have one firm mindset that allows me to proceed with life, one day it's up, next it's down.

Is there anything I can do to improve at this ? I'm 27 nearly 28, if it matters and have a lot of success generaly at job and self improvement since 2015, but when it comes to confidence it feels like a sinusoid.