Prepare subscription and a main account that you use to login to TradingView
Create a new Gmail address dedicated for the bots. (important step, because using your main email for this would cause lots of inconvenience)
Enable [https://myaccount.google.com/lesssecureapps "Less secure apps"] in your new account (make sure that you are logged in the correct Gmail account when doing this)
Make sure IMAP is enabled as a service in your Gmail settings.
Add the dedicated email credentials as a provider in Settings - Email Providers:
Name of this Email Provider (can be anything)
Your new Gmail address (e.g. [email protected])
The password of Gmail account above
Sender emails which are allowed to be used as signals (e.g. [email protected]) (if left empty, emails from any sender will be used as potential signals)
Create a filter on your main email account to forward emails from TradingView to your new dedicated account.
Restart the HTS.
You are ready to setup alerts and bots.