% of Nifty 500 stocks above 50EMA

In tradingview or stockcharts we can see the chart of % of S&P 500 stocks above 50/200 DMA. Is there any way to do that for the indian markets from the year 2000? If anyone has any ideas or have done it please share. It would be immensely helpful. It could be N500 or N50.