Eghhh..
This topic has been disected countless times. My conlcusion is that various factors effect hair loss after masturbation. While there isn't countless studies to prove this, it is clear there's a correlation. Studies have shown that Prolactin which is released to control Dopamine increases for up to 2 weeks after ejaculation. Prolactin also increases DHT. So theres a link right there. But, it is neccessary to ejaculate and it's healthy. Just wait and see how long it take you to have a wet dream, then you can ejaculate that many days. For example, when I abstain it takes 4 days until I have a wet dream, therefore I should masturbate every 4 days.