It seems you are probably having androgenetic alopecia
along with seborrheic dermatitis
To treat the same
Use a ketoconazole
and tar based shampoo every other day( konaz ct shampoo). Once the dandruff
clears off, use it once a week
Do not oil your hair as it flares dandruff
5 percent solution over scalp
. You may also consider taking finesteride tablet for better response. The time required for response to be seen is usually between four to 6 months. Once response is seen, treatment is needed to be continued for prolonged period. These medicines are prescription drugs and should be taken under a doctor's follow up.
Hope that solves your query.