I understand that you're seeking assistance with creating a macro or program for Excel that interacts with TradingView's website. While I've provided you with a detailed Python script using the selenium library to achieve this functionality, please note that implementing such a solution would require a programming environment and may not directly translate into a macro within Excel.
If you're looking for a solution that can be directly used within Excel as a macro, you might need to consider using VBA (Visual Basic for Applications). VBA allows you to automate tasks within Microsoft Office applications like Excel. However, implementing web interactions and browser automation within VBA might be more complex than using a full programming language like Python and Selenium.
If you're comfortable using Python, I recommend using the provided Python script as it provides a more flexible and powerful solution for your requirements. If you're specifically looking for a VBA solution, I can guide you through some basic VBA code to open a URL and handle simple interactions, but keep in mind that advanced browser automation might not be feasible with VBA alone.