How to automate a TradingView strategy with your futures broker.
About 7 minutes · Updated December 2026
Automating a TradingView strategy means letting each signal place a real order at your broker without you clicking anything. It's simpler than it sounds, but every link in the chain has to be right, because a missed or duplicated order costs real money. This guide walks through the pieces, the setup order and the checks that matter.
How the chain works
- The strategy runs on TradingView. A Pine Script strategy or indicator watches the chart and decides when to act.
- An alert fires. When the script's condition is met, a TradingView alert sends a short message, called a webhook, to a web address you choose.
- An order route receives it. A connector service such as TradersPost (for futures brokers) or PineConnector (for MetaTrader 5) reads the message and turns it into an order.
- Your broker executes it. The order, ideally with its protective stop and target attached, goes to your own brokerage or prop account.
Alerts run on TradingView's servers, so nothing needs to stay switched on at home. The weak points are the hand-offs: an alert that expires, a webhook that fails, an order route that's paused, or a broker connection that has logged out.
What you need
- A paid TradingView plan. Webhook alerts aren't available on the free plan. For futures you also need real-time CME data on TradingView; delayed data means delayed decisions.
- An order route. The connector between TradingView and your broker. Check that it supports your broker, your contract (for example MNQ) and orders with attached stops and targets.
- A supported broker or prop account, plus a demo or simulated account to test on first.
- Two-factor authentication on TradingView and the order route. Anyone who can edit your alerts can trade your account.
Set it up in this order
- Connect the order route to a demo account first. Never point a new setup at live money.
- Add the strategy to a clean chart. Use the exact symbol, timeframe and session settings the strategy was built for. A different timeframe or trading session can change every decision.
- Create one alert. Set the condition to the strategy, paste the webhook address from your order route, and set the alert to never expire if your plan allows it. One alert per strategy and account avoids duplicate orders.
- Map the message. Your order route needs to know the symbol, side, quantity, stop and target. Most routes provide a template; check every field.
- Watch a full session. Confirm the alert fired, the order arrived, the stop and target were attached at the broker, and the position closed when it should.
- Run on demo for at least two weeks. Compare every session with the strategy's own record before you consider going live.
Safety checks that matter
- Protection at the broker. Each entry should carry its stop and target as broker-held orders, so a lost connection never leaves a position unprotected.
- A position limit. Set a maximum contract size in the order route or at the broker as a backstop against a mistyped quantity.
- Daily reconciliation. Spend two minutes after the close checking that your account did what the strategy said. Small mismatches found early stay small.
- Alert health. Alerts can stop after errors or plan changes. Check they're active before each trading week.
- Know how to pause. Learn how to pause the strategy in the order route and how to flatten a position at the broker before you ever need to.
Common mistakes
- Two alerts on the same strategy, so every order is sent twice.
- Testing on a different contract month or symbol than the one the alert trades.
- Leaving the chart on a timeframe or session setting other than the one the strategy expects.
- Changing settings in the middle of a drawdown, which breaks the link between your results and the strategy's record.
- Trading a prop account without checking, in writing, that the firm allows automated or third-party strategies.
Education only, not investment advice. Futures trading involves substantial risk of loss and isn't suitable for everyone. TradingView, TradersPost, PineConnector and MetaTrader are trademarks of their owners; Heron Systematic isn't affiliated with them.