An in-depth guide

How to connect a TradingView alert to TradersPost via webhook

Connect TradingView to TradersPost: the webhook URL, JSON fields, strategy subscription and paper-account checks before orders reach your broker.

Updated:

Read the article

Before you start

You need three things: a TradersPost account, a TradingView account with a script or indicator that generates alerts, and a broker or exchange account supported by TradersPost. It is a good idea to start with a TradersPost Paper account, which supports all asset classes, and move to a live account only after you have seen signals arrive and parse correctly. Automated trading places real orders without manual approval, and trading and investing carry a risk of losing money. Test every setting in a simulated environment before connecting real money.

TradingView requires two-factor authentication for webhook alerts. Use a plan and alert configuration that expose Webhook URL, and keep login credentials and API keys out of the message body. The unique TradersPost strategy URL contains an access secret, so place it in Webhook URL and keep it out of public examples.

Step 1: connect a broker

In the TradersPost dashboard, click Connect Broker in the top right and choose the broker. Confirm that you are authorized to trade the account, then go to the broker's site to log in and authorize TradersPost. After approving, you return to TradersPost and the account appears as connected. At this stage you choose which account at the broker is used for live trading and which for paper trading. According to the docs, TradersPost cannot move money into or out of the account. Check on the connections page that your broker supports the asset class you plan to trade.

Step 2: create a strategy and copy the webhook URL

A strategy in TradersPost holds the webhook URL and the broker connections. When you create a strategy you set its asset class, trading style, ticker and the defaults that subscriptions will inherit. After creating it you get a webhook URL unique to the strategy. According to the docs, the URL format includes a unique identifier and a password, so treat it like a password: anyone holding it can send signals to the strategy. Copy it; you will use it in step 4. The same URL can be used by any system that sends a webhook, not only TradingView.

For a Paper exercise, use Strategies > New Strategy, set a name and asset class, and save. Allow live trading can be disabled to restrict the strategy to paper accounts. The strategy dashboard provides the webhook URL; keep it out of screenshots and public logs.

Step 3: write the JSON message

TradingView sends TradersPost whatever is written in the alert's message field. The docs stress that the JSON structure must be exactly correct, otherwise TradersPost cannot parse it. The ticker and action fields are required, and price is common in the examples. If the alert comes from a TradingView strategy, one alert is enough: the variable strategy.order.action in double curly braces fills in buy or sell, and strategy.market_position indicates long, short or flat. If the alert comes from an indicator, create a separate alert for buying and a separate one for exiting, for example with action set to exit or sentiment set to flat.

Hypothetical Message example for a Paper account only:

json {"ticker":"AAPL","action":"buy","quantity":1,"orderType":"market"}

The example specifies a ticker, action and quantity; it does not recommend buying AAPL. The subscription still determines the destination account and how the quantity is interpreted under its settings. With valid JSON, TradingView sends application/json; an invalid JSON message is sent as text/plain and may not parse in TradersPost.

Step 4: create the alert in TradingView

According to the docs, open the Alerts pane in TradingView and select the condition from your script. Set the alert to trigger on bar close. In the Webhook URL field, paste the strategy's TradersPost webhook URL. In the Message field, paste the JSON you prepared in the previous step. Save the alert. From now on, whenever the condition is met, TradingView sends the message to the URL, and TradersPost receives it as a signal for the strategy. If the message is not structured correctly, TradersPost cannot parse it, so copy the JSON carefully.

Step 5: subscription, testing and delays

A signal that reaches the strategy does not reach the broker without a subscription. The subscription connects the strategy to the broker account and controls which orders are sent. You can connect the same strategy to a paper account and a live account in parallel, with different rules for each. The strategy's Signals view shows every signal received, with ticker, action and timestamp, so you can confirm alerts are arriving. The docs note that TradingView webhooks can be delayed from 2-3 seconds to 60 seconds or more. Factor this delay into time-sensitive strategies.

To locate a failure, start with TradingView’s alert log and its Webhook status column. If delivery succeeded but no signal appears in Signals, compare the URL and message with the strategy configuration. If a signal appears but the account has no order, inspect the subscription, selected account and broker response. These are distinct states; webhook arrival time does not determine the execution price or order-fill time.

Under Subscriptions > New Subscription, select the strategy and Paper account, then Create Subscription. New subscriptions start disabled. Check Connected broker for the intended paper account; with Auto submit unchecked, manual approval is required. Save and use Enable only for the Paper subscription configured for this exercise. A live account with Auto submit enabled can receive real orders.

Hypothetical budget for the TradingView connection and one entry and exit: for a month, assume 50 USD for TradersPost, 20 USD for a TradingView plan that supports the required alert, and 15 USD for its market data. Real-time stock and futures data may require an additional subscription even with a paid TradingView plan. Assume a broker commission of 1 USD on entry and 1 USD on exit, plus a combined spread/slippage reserve of 1 USD. All amounts are teaching assumptions, not current prices. Allocate the full monthly cost to this one example: 50 + 20 + 15 + 1 + 1 + 1 = 88 USD, before undetermined additions.

For one unit in the JSON example, assume invented benchmark prices of 100 USD on entry and 102 USD on exit: (102 − 100) × 1 = 2 USD gross before spread and slippage. After the expense budget, 2 − 88 = −86 USD, before unknown additions. These are neither the current AAPL price nor results of a signal we sent. Broker and execution costs are simulated for the Paper budget even if the paper account does not deduct them; capital to purchase the unit is separate from fees.

Extra broker data charges, exchange, clearing and routing charges, tax and currency conversion are undetermined and must be added for the connection. Do not assume the chart-data subscription also covers the execution account. The reserve does not cap actual spread or slippage. Check the TradersPost plans and TradingView plan/data entitlements before replacing the assumptions.

Which fields are required in the JSON message?

According to the docs, ticker and action are required in every message. Fields such as quantity, orderType, stopLoss and takeProfit are optional.

What values can go in the action field?

The docs list buy, sell, exit, reverse, breakeven, cancel, add and resize.

Why did the signal reach TradersPost but no order was sent?

Check that a subscription connects the strategy to the broker account. The subscription controls which orders are sent; a signal appearing in the Signals view does not by itself confirm that an order reached the broker.

How long does a signal take to arrive?

The docs note that TradingView webhooks can be delayed from 2-3 seconds to 60 seconds or more.

Providers mentioned on this page

About the provider

TradersPost receives signals from TradingView, TrendSpider or a webhook and routes orders to a connected account. Funds stay with the broker or exchange; trading permission allows orders to be placed and cancelled. The 7 days of trial need no card. Start with a Paper subscription, compare Signals with the account order, and treat simulated fills as a routing check rather than proof of live execution or profit.

Starter plan, billed yearly
41.65 USD/month

One live account and one asset class. $41.65 is the monthly equivalent; $499.80 is the amount for the year before coupons or extras.

Premium plan, billed yearly
254.15 USD/month

Six live accounts and all asset classes: stocks, options, futures and crypto. $254.15 is the monthly equivalent; $3,049.80 is the amount for the year before coupons or extras.

Visit TradersPost · Opens in a new tab
Coupon: 20% off the subscription
Read review of TradersPost