Why do I miss my ex but at the same time I hope I never hear from him again?

I don't understand why. A lot of times I feel like I don't want to hear from my ex because it can ruin my days sometimes. And other days I'm happy to hear from him and I miss him. Sometimes I think about how we used to talk to each other so much and watched things together and I get kind of sad because I don't have someone to do that with anymore. He's given me so many nicknames that I love a lot and no one calls me by them. He still calls me by one of them but that's it.

I feel like I really like one of the friends but at the same time I still like my ex a lot. And my ex says he liked two girls and sometimes he thinks about me so I guess that makes it three. I hate that I miss him randomly sometimes. A lot of times I just open up my iPhone notes and just type out whatever I want to say to him but I never send it. I get this feeling like once every two weeks, particularly on Sundays. Is there a way to stop it? We don't even text everyday, just whenever he texts or on the weekend which is just about 2-3 times a week.

I miss him but I don't want to tell him that.cause I think that's exactly how he wants me to feel. Because one of my friends likes me, he questioned a lot and he suddenly brought up some random girl he likes. I think he wants me to miss him and I do but I refuse to tell him. What should I do?

Why did you guys break up?
Why do you think he wants you to miss him?
Manipulation?
Do you think he still wants to be with you?
Do you still want to be with him?
So many unanswered questions

Get over him already, there are plenty of fish in the ocean, and besides, if he isn't interested in you, why bother? Spend your time on things that matter and not about the things that passed. Closure is the best thing for now