That's a very sensitive and personal topic but I'm glad you're feeling good enough to have it shared online!
To me one of the thoughts which helps me cope with the lack of romantic affection is to remind myself that affection is not just romantic. One can find this feeling in his or her relationships with family and friends; no one is really alone on this world, there is always someone caring for us; whether he or she be a family member or a member of our social group, we do matter to someone. Even a pet can give affection, sometimes even more than humans.
Romantic love is not the only kind of love we can receive but all kinds of love need a bit of effort to flourish and develop, just like anything living on this pale blue dot if ours.
Keep on trying to feel better everyday that goes by and don't be afraid to be open to people about yourself and how you feel, if you can. Little by little and with some exercise you'll get better at this game we call life that we are all playing.
Best of luck for your future and a big virtual hug <3