I made a method to export from c# algo running on local lean engine to autocreate tradingview charts that can load client side in your browser. Trades are exported by symbol and you will need to customise according to your folder directories.

main.html is a template that is auto filled with bar and trade data to generate the chart.

the output json files dont need to be kept after the html is created but i just leave them for other analysis if i need them. 

the chart files are very small, even when using 10+ years of data to show all trades on a single chart, you can use the server side library to customise the full experience if you want.

excuse my terminology, i have never used html or js before.

196206_1689841932.jpg