Automation

TradingView to Broker Automation: The Complete End-to-End Guide

TradingView to broker automation explained end to end: alerts, webhooks, the bridge with risk rules, broker API, order types, testing in simulation and a pre-live checklist.

WeCore·Published ·10 min read

TradingView to broker automation sounds like one step, but it is really a chain of five or six, and every link can fail on its own. A chart condition fires, a message leaves TradingView, something receives and checks it, a broker API accepts an order, and only then does a position appear in your account. This guide walks the chain and marks the decision at each stage. For the concept of a webhook read automating TradingView alerts with webhooks, and for the product steps read how to connect TradingView alerts with WeCore.

The architecture in one picture

Think of five components, left to right:

  1. Signal source. A strategy or indicator running on a TradingView chart.
  2. Alert. TradingView's alert engine, which decides when to send and what text to send.
  3. Webhook. An HTTPS request from TradingView's servers to an address you chose.
  4. Bridge. Software that receives the message, validates it, applies your risk rules, resolves the contract and sizes the order.
  5. Broker API and account. The interface through which the order reaches your broker or prop-firm account, where the fill actually happens.

TradingView only covers steps 1 to 3. Everything that protects your account lives in steps 4 and 5. WeCore is one such bridge: it is software, not a broker, it never holds your money, and orders are placed in your own account.

Decision 1: indicator alert or strategy alert

Indicator or condition alertStrategy alert
Fires whenA condition on the chart is metThe strategy engine generates an order
Message contentWhatever text you type, or an alert message from Pine codeCan use order placeholders such as `{{strategy.order.action}}` and `{{strategy.order.contracts}}`
Position awarenessNone, the alert does not know your positionKnows `{{strategy.market_position}}` and `{{strategy.position_size}}`
Typical riskDuplicate or missing signals if you do not design exitsBehavior differs from the backtest if settings differ

For an end-to-end design, the strategy-alert facts that matter are that they fire only on real-time orders, run from a server-side copy (so edits need a recreated alert) and stop after 15 triggers in 3 minutes (strategy alerts, checked October 2026). The details and how they interact with trigger frequency are covered in TradingView alerts: types, triggers and setup.

What TradingView requires

Before you design anything, confirm these points on TradingView's own webhook, alerts and pricing pages (checked October 2026):

  • Webhook notifications are a paid-plan feature; they are not part of the free Basic plan.
  • Webhooks require two-factor authentication on your TradingView account.
  • Only ports 80 and 443 are accepted for the URL.
  • A request that takes longer than 3 seconds is cancelled, so the receiver must answer fast and do slow work afterwards.
  • IPv6 is not supported.
  • TradingView notes that webhooks may occasionally fail to reach the URL, so treat delivery as best effort.
  • A valid JSON message is sent as application/json, anything else as text/plain.
  • TradingView publishes the source IP addresses to allowlist on the receiving side: 52.89.214.238, 34.212.75.30, 54.218.53.128 and 52.32.178.7 as of October 2026.
  • Standard alerts expire (the maximum is two months), while Premium and Ultimate allow open-ended alerts. An expired alert simply stops sending.

The delivery status of each webhook is visible in the alert log, the first place to look when nothing arrives.

Decision 2: message design

The message is the contract between TradingView and your bridge. Good messages are explicit and boring.

What a message should carry

For WeCore the alert message is JSON with these fields: `ticker` (or `symbol`), `action` (buy, sell, exit, add, cancel, breakeven or protect), `quantity`, `orderType`, `limitPrice`, and optionally `stopLoss` and `takeProfit` objects with the distance in points. Other bridges use other field names, so always copy the template from the documentation of the one you use.

Two habits help. Make intent explicit: an exit should say it is an exit, not be inferred from "sell" and a position size you assume. And open the alert log, read the message that was actually sent, and compare it field by field with what the bridge recorded. Use placeholders for values that change and constants for the rest.

Decision 3: symbols and contracts

Futures have expiry months. A TradingView continuous symbol such as NQ1! tracks the front contract, but a broker trades a dated contract. Either the bridge translates, or you maintain the alert yourself. WeCore accepts continuous tickers such as MNQ1!, MES1!, MGC1!, NQ1!, ES1! and GC1!, and resolves them to the front month automatically, which spares you an alert update at each roll. See futures contract rollover.

The error that no bridge can fix for you is mini versus micro. NQ and MNQ, or ES and MES, differ by a factor of ten in value per point. Read micro vs mini futures and then write the symbol deliberately; a "ten times too large" position usually traces back to one letter.

Decision 4: order types, stops and exits

Market orders are the simplest and the most exposed to slippage, especially when the message crosses the internet and waits in a queue. A limit order with an explicit price caps the price you accept, at the cost of sometimes not being filled. WeCore recommends limit orders for this reason, and a limit order needs `limitPrice` in the message.

For protection, decide where the stop lives:

  1. In the message, as `stopLoss` and `takeProfit` distances in points, so the protective orders go out with the entry.
  2. As a default on the bridge, set per strategy, with the alert allowed or not allowed to override it.
  3. In your head only. This is the option to avoid, because an automated entry without a stop is a position nobody is watching.

Stop distances are converted to broker ticks only for known futures contracts. For an unknown symbol a careful bridge attaches nothing rather than guessing, so test that your stop really appears at the broker. Exits (close, cancel) should always pass through, even when a risk block would stop a new entry. More on this in risk management for algo traders and position sizing methods.

The risk layer

The bridge is where you write the rules that no chart script will enforce. At a minimum:

  • Maximum daily loss and, where the platform supports it, an automatic close when it is hit.
  • Maximum position size per order, maximum open positions and an allowed-symbol list.
  • Trading-hour restrictions that match your sessions (see futures trading sessions).

In WeCore these are set per account under Risk, and live trading cannot be switched on until they have been saved at least once. On prop accounts keep them inside the firm's own limits; see daily loss limits explained.

Testing in simulation

Every WeCore broker account starts in Simulation: signals are received, checked and recorded, but nothing is sent to the broker. Rehearse the whole chain. Over several trading days, confirm:

  • Every alert that fired in TradingView has a matching recorded signal.
  • Action, direction and quantity match the message.
  • The contract resolved to the month you expect.
  • The risk rules blocked what you expected them to block, and said why.

Simulation tests plumbing and rules, not real fills or latency, so the first live days should still use the smallest size. See backtesting vs live trading.

Monitoring and failure modes

Automation fails quietly, so list the failures before they happen.

FailureWhat you seeWhere to look
Alert expired or stoppedNo signals at allTradingView alert list and alert log
Webhook not deliveredAlert fired, nothing at the bridgeAlert log delivery status, URL, 2FA
Duplicate messageTwo orders for one ideaTrigger frequency, two alerts on one chart
Rejected by risk rulesSignal recorded, no orderBridge activity log reason
Broker disconnectedOrders not acknowledgedBroker connection status
Wrong size or productPosition ten times offMini versus micro in the message
Leaked webhook URLOrders you did not sendRegenerate the URL, update every alert

Set notifications on a channel you read, and check the connection status each session. Rithmic allows one active login per username, so a second platform using the same credentials can disconnect the bridge.

Prop-firm policy check

Being able to connect an account is not permission to automate it. Policies differ widely and change, so read the firm's own page for the account stage you hold, including rules on remote servers and high-frequency trading. The sourced comparison is in prop firms that allow automation, and the broader rule structure in Apex, Topstep and Lucid rules overview. If unclear, ask the firm in writing.

Pre-live checklist

CheckDone when
TradingView prerequisites2FA on, plan supports webhooks, alert not near expiry
Alert type chosenIndicator or strategy alert chosen on purpose, recreated after any edit
MessageValid JSON, explicit action, correct symbol and size, reviewed in the alert log
Webhook URLSecret, stored safely, IP allowlist considered
Order typeLimit with a price, or market chosen knowingly
Stop and targetConfirmed to appear at the broker in a test
Risk rulesSaved: daily loss, size, positions, symbols, hours
SimulationSeveral days, every alert matched to a signal
MonitoringNotifications on, connection checked each session
Prop-firm policyRead for your account stage, written answer saved

Where to go from here

If you want a ready-made starting point instead of writing your own strategy, look at WeAlgo ready-made strategies, which run on your own trading server with your own broker data. If you prefer to connect your own TradingView alerts, you can view the plans and pricing or create an account and run a first alert in Simulation. A 7-day trial starts with a $5 (refunded immediately) card verification, and nothing goes live until you save risk rules and switch Simulation off yourself.

A worked example: the cost of the chain

Every link adds a small delay, and delay becomes price when you use market orders. Take one Micro E-mini S&P 500 (MES) contract. CME Group's specifications give $5 per index point and a 0.25-point tick, or $1.25 per tick.

ScenarioSlippage per sideRound trip per contract20 round trips a month
Limit order that fills at its price0 ticks$0$0 (but some signals will not fill)
Market order, quiet market1 tick2 x $1.25 = $2.50$50
Market order, fast market3 ticks6 x $1.25 = $7.50$150

These are slippage costs only; your broker's or prop firm's commissions and fees come on top. On the mini ES, at $50 per point, the same ticks cost ten times as much. The table is why the order-type decision belongs in the design, not in the troubleshooting, and why the first live weeks should compare intended prices with actual fills. The tick counts are illustrations, not measured results.

Common mistakes

  • Designing the alert first and the risk layer last. Rules written after the first live day are written under pressure.
  • Assuming one broker login can be shared by the bridge and a second platform; with Rithmic, the second session can disconnect the first.
  • Testing the entry in simulation but never the exit or the stop at the broker.
  • Using market orders by default without pricing the slippage shown above.
  • Treating "the account connects" as "the firm allows automation".

Watch it on video

To see the full chain on screen, start with TradingView alerts to your account, then the full connection guide and risk rules and news protection. For Rithmic-based prop accounts, the video on connecting Apex, Lucid, MFFU or TPT via Rithmic covers the broker step.

FAQ

Can TradingView send orders directly to a broker?

TradingView alerts send a message to a web address; they do not place orders by themselves. Some brokers integrate with TradingView directly for manual trading, but alert-driven automation normally needs a bridge between the webhook and the broker's API.

Do I need a paid TradingView plan for webhooks?

TradingView's help center says webhooks require two-factor authentication on the account, and webhook availability depends on your plan. Check TradingView's current pricing and alert pages before you build.

Why did my alert fire but no order appear?

Check the delivery status in the TradingView alert log first, then the bridge's activity log. Common causes are a risk rule that blocked the order, an account still in Simulation, a broker disconnection or a malformed message.

Should I use market or limit orders?

A limit order caps the price you accept but may not fill; a market order fills but can slip. WeCore recommends limit orders with an explicit price. Choose deliberately and test how your orders fill in the first live sessions.

Is automating a prop-firm account allowed?

It depends on the firm and the account stage. Some firms prohibit automation, others allow it with conditions. Read the firm's official page and ask support in writing before you automate.

This article is general information, not investment advice, and does not promise any result. TradingView requirements were checked on its help pages in October 2026 and may change. Futures trading carries a high risk of loss.

Sources and further reading

Automation