Script to easily batch test a trading strategy written in pine language in TradingView. It will:
- Open a selenium browser
- Test a Tradingview strategy for each stock or cryptocurrency in a predefined watchlist
- Generate extra metrics
- Save strategy metrics in a CSV file for further revision
- Open your TradingView account
- Apply the strategy to be tested to the active chart
- If multiple charts are open, close all and leave the main chart open
- Open the watchlist to be tested
- Select the time interval
- Save the session and close TradingView
- Run backtesting.py