Connect TradingView Strategy to Your Broker
If you have an automated strategy on Trading view and you have backtested it, the next step is to connect it to your broker for automatic execution of your trades. Unfortuntely, TradingView doesn’t support native connection between your strategy and broker trading orders. We are here to establish this connection.
Configuration
Trading View
Login to your Trading View
search the security you would like to trade in search bar and open chart
3. insert your strategy and add it to chart
4. create a new Alert.
5. Enter message for Alert as below
Broker
On the Broker side, you must generate an API Key and Secret for connection to TradingView. The steps are dependant on the broker software. But the steps should be similar. we give example below.
Alpaca.markets Broker
Login to your Trading account
Open Profile settings
Tab “Manage Accounts“
click “generate New Keys”
5. fill in the API Key and Secret in below and submit.
6. we will do connection on Backend and will email you once connection is established to confirm. The process takes maximum 24 hours.
where:
“Your Broker Name“: replace it with the name of your Broker without quotation
”Your Broker Account name” : replace with your trading account name “example: paper trading or options trading“ without quotation
”Quantity in percentage”: quantity to trade in percentage of total assets or money value. example: 25%. 100%. remove quotation
”security name”: name of securtiy to trade. example: AAPL for apple, MSFT for microsoft. remove quotation.
6. in notifications tab, activate webhook, and enter following value:
https://shorturl.at/tW0M5
Note: if you don’t have premium account, webhook will not be activated. in this case, contact us and we will help you.
6. in message tab, create your message as per below syntax