How do I (M 27) get out of my feeling of depression from constant rejection or failed attempts?

It's a snowball effect as the opposite sex feels my negative energy from being depressed and goes the opposite way.

How am I suddenly suppose to feel happy?

Meditate? Read a book?

It's like telling a hungry person to ride a bike when they need food.

I'm over 6ft, slim and don't dress too bad but I have low social energy because it feels like an act most of the time.

What should I do?