Taxation happens when you either receive a dividend or incur capital gains. You will be taxed as per the laws in the country where you reside when you either incur capital gains or receive dividends.
There might be a case where you are an NRI right now but after 5 years you become a Resident Indian citizen (tax payer in India) and incur capital gains. Then you need to pay taxes as per Indian rules.