Turn TradingView alerts into broker orders

Send TradingView strategy and indicator alerts to a TradersPost webhook, and TradersPost places the orders in the broker accounts you connect.

By continuing, you agree to the TradersPost Terms of Service and Privacy Policy. This site is protected by reCAPTCHA.

Open TradingView account (opens in a new tab)
  • Free 7-day trial
  • Set-up in 3 minutes
  • Paper account for testing
A TradingView chart of AAPL with moving averages and a strategy tester

Alert webhookReceived

{
  "ticker": "AAPL",
  "action": "buy"
}
  • Market Buy Sent AAPL · 10 shares · Alpaca Live
  • Market Buy Sent AAPL · 10 shares · Tradier Paper
A TradingView alert reaches TradersPost and becomes orders in the connected broker accounts. The ticker, quantity and accounts are examples.

See TradingView become an order

1. Signal source

TradingView Chart alert (fixed for this page)

2. Sends orders to
TradingView / Chart alert

TradingView · Create alert

Message

{
  "ticker": "{{ticker}}",
  "action": "{{strategy.order.action}}"
}
TradersPost / via webhook Live

3 orders from one signal

AccountOrderStatus
Alpaca account 1Buy 10 AAPLSent
Alpaca account 2Buy 10 AAPLSent
Tradier accountBuy 10 AAPLSent

A TradingView alert for AAPL reaches TradersPost and becomes a market buy for 10 shares on 2 Alpaca accounts and 1 Tradier account.

TradingView at a glance

What you build on the TradingView side and what TradersPost does with each alert.

Connects with
Alert webhook
Paste the strategy's webhook URL into the alert
Script types
Strategies and indicators
Alerts per ticker
One for a strategy
An indicator needs one per condition
Message
JSON
The same for every connection
Position state
Long, short or flat
Set with the sentiment field
Destinations
Any connection
Each broker accepts its own asset classes
Delivery
2 to 60 seconds or more
Not designed for sub-minute strategies
Test first
Paper broker
Run the alert there before live

Strategy or indicator: pick your template

The message is a short JSON payload pasted into the TradingView alert. Which one you need depends on what your script is.

Alert message JSON in the docs

Pine Script strategy

One alert per ticker. TradingView fills in the order the strategy just generated, so entries, exits and reversals all come through the same alert.

{
    "ticker": "{{ticker}}",
    "action": "{{strategy.order.action}}",
    "sentiment": "{{strategy.market_position}}",
    "quantity": "{{strategy.order.contracts}}",
    "price": "{{close}}"
}

The sentiment field tells TradersPost what the position should be after the order: long, short or flat.

Indicator

One alert per condition. An indicator has no orders of its own, so each signal you want to trade gets its own alert and message.

{
    "ticker": "{{ticker}}",
    "action": "buy",
    "price": "{{close}}"
}

Create another alert with "action": "sell", or "exit", for the other side.

TradingView: 3 things to know

  • Limits Alerts are not instant

    TradingView webhooks can arrive from 2 or 3 seconds to a minute or more late, and TradingView considers 25 to 45 seconds normal. Build the strategy on a timeframe longer than the delay. TradersPost is not designed for sub-minute strategies.

    Alert webhooks delay (opens in a new tab)
  • Orders Some scripts repaint

    A script can change a signal during the live bar, or use data a past bar did not have, so a trade on the chart may never produce a live alert. Read the repainting notes before you send a script to a broker, and run the alert on a paper broker first.

    Pine Script repainting (opens in a new tab)
  • Sizing A strategy can send its own quantity

    The strategy message can carry the quantity of the order the script generated, as in the template above.

    Strategy alerts (opens in a new tab)

Connect TradingView alerts in three steps

Every signal that fires becomes a real order in your broker account.

In TradingView

Create the alert in TradingView

Step 01

In TradingView

Paste the webhook and message

Step 02

In TradersPost

Connect your broker to the strategy

Step 03
  1. Create the alert in TradingView

    Pick your strategy as the condition and turn on the Webhook URL option.

  2. Paste the webhook and message

    Paste your TradersPost webhook URL and the JSON message into the alert.

  3. Connect your broker to the strategy

    Link your Tradovate account. Every TradingView signal now places an order.

Ready to send TradingView alerts to your broker?

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

By continuing, you agree to the TradersPost Terms of Service and Privacy Policy. This site is protected by reCAPTCHA.