This comes from the following post regarding connecting TradingView alerts to IBKR with Python
BUT ALAS, there is a slight hiccup in the plans. This don’t auto-trade
How to autotrade using Pine Script strategies
Strategy trading is limited to the backtesting mode only. Automated strategy trading with a brokerage account is not available on TradingView yet. We are considering implementing this in the future.
ARRGHH!!! This means you will need to set up an alert to manually trade it which is delivered by SMS or Email. You could post to a HTTP to trigger an event which will then execute the trade.
The latest status:
Here is a solution from someone
Here is the Python source code which is not proper to the video
https://github.com/hackingthemarkets/tradingview-interactive-brokers/tree/main/templatesNOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!