DATA FOR NIFTY INDEX FUTURE

where can iget the data for nifty index future that is minute data for the past 5 years. the second doubt is how to calculate volume profile means which price has maximum volume like we see in the hoizontal histogram in the volume profile indicator plzz help with these so i could backtest the strategy 

You can refer to this article on how to get minute level data using yfinance in intraday section. However, this data would be limited to the last 7 days.



https://blog.quantinsti.com/stock-market-data-analysis-python/#intraday



Generally, daily data is free to get but to get a minute level data you can use paid sources such as GDFL and quandl.



I hope this helps.