summary: stage 3 of 4. connect your broker, create a strategy, create the TradingView alert that sends each trade to edgeful, prove it all on a demo account, then go live. this is where edgeful starts placing real orders, so do it in order.
haven't done stages 1 and 2? start with stage 1: setting up algos. the full path is in edgeful algos: start here.
video walkthrough
prefer to watch first? this 11-minute walkthrough covers the dashboard, connecting a broker, creating a strategy and the TradingView alert. it's also on start here in the algos sidebar.
how the chain works
your algo takes a trade on your TradingView chart → the TradingView alert sends it to your edgeful strategy's webhook → edgeful places the order with your broker.
your broker connects to edgeful, never to TradingView. each link is separate, which is what makes problems easy to trace in stage 4.
before you start
your algo settings are done (stages 1 and 2).
CME real-time data is active on TradingView. without it, alerts fire late. → enabling real-time CME futures data on TradingView
your TradingView plan is a paid one. the free plan has no webhook field, so it can't send trades to edgeful.
you have a demo, sim or evaluation account at a supported broker to test on. TradingView's own paper trading doesn't send webhooks, so it can't test this. → which broker accounts work with edgeful algo automation?
step 1: connect your broker
in edgeful, open algos → dashboard and click add broker.
pick your platform and follow its sign-in and approval steps. Tradovate and NinjaTrader use your broker login. ProjectX prop firms (like TopstepX) use a ProjectX API key.
connect your demo or sim account first, and check it shows as connected.
step-by-step for each platform: → Tradovate and NinjaTrader broker setup guide · TopstepX broker setup guide
heads up: deleting a broker in the dashboard also deletes every strategy attached to it. to refresh a connection, use add broker again instead.
step 2: create a strategy
a strategy links one broker account to one webhook. click create strategy on the dashboard.
the first time, you'll see the terms of service, automated trading. read them through to the end to continue.
give it a clear name, like "NQ IB SIM", and add a description.
pick the demo or sim broker account you just connected.
choose your order types, then save.
the strategy appears in the dashboard table with its own webhook URL and alert message. copy the URL with the copy icon next to view webhook, never from the shortened preview.
one strategy per broker account: 3 accounts means 3 strategies and 3 alerts. → using edgeful algos with prop firms and multiple accounts
step 3: put your chart on the right contract
you backtested on the continuous contract (like NQ1!). your live alert has to be on the contract your broker expects:
Tradovate and NinjaTrader: the current front-month contract, like NQZ2026. you'll switch to the new contract, and recreate the alert, every quarterly rollover.
ProjectX (TopstepX and other ProjectX prop firms): the continuous contract, like NQ1!.
the wrong contract is the most common reason an automated algo silently doesn't trade. → futures contract rollovers
step 4: create the TradingView alert
on your chart, with the algo on it, the right contract and the chart timeframe your settings were built for, open the alert window (the alert icon in the toolbar, or Alt + A) and fill it in:
condition: pick your edgeful algo ("edgeful - algos - IB strategy"), not price.
message: once you pick the algo, TradingView fills the message in for you. keep it. if the field is empty, paste the alert message shown with your strategy on the dashboard.
expiration: TradingView sets this about a month out. push it as far out as your plan allows, and diary a reminder before it runs out.
notifications: tick webhook URL and paste your strategy's webhook URL. the URL goes here, not in the message.
alert name: use your strategy name, so you can match alerts to strategies at a glance.
click create.
one alert per strategy, and a new alert every time you change the algo's settings (the rule from stage 2). every alert field explained, plus common alert questions: → setting up TradingView alerts for algo automation
step 5: test it on your demo account
wait for the algo to take a real trade. don't try to force one. depending on the algo, this can take a session or two.
open algos → trade log. it shows one day at a time; filter by your strategy and use the status chips (all, working, closed, rejected, cancelled) to find the trade.
check your demo account at the broker and confirm the position is really there.
let the trade finish. the take-profit or stop-loss exit should show in the trade log too, and the position should close at the broker.
if the trade doesn't show up, go to stage 4: troubleshooting algos and work through the 4 checkpoints. what each trade log status means: → understanding the algo trade log
a week of clean demo trades, including at least one loss, is a sensible bar before you go live.
step 6: go live, then size up
connect your live account with add broker, if it isn't already.
create a new strategy pointed at the live account. don't reuse the demo strategy: its webhook keeps sending trades to the demo account.
create a new alert with the live strategy's webhook URL, and delete the demo alert if you're done with it.
start with 1 contract for your first few live trades and check the fills and slippage.
scale up by raising default order size on the algo's properties tab, then recreate the alert.
position size is set only on the algo, in TradingView. → position sizing and how edgeful uses strategy position size
automating your own TradingView strategy
already code your own strategies in TradingView? you can automate them through edgeful the same way you automate an edgeful algo: connect your broker, create a strategy in the dashboard, then create the TradingView alert on your strategy with that strategy's webhook URL.
the key difference: your script has to tell edgeful what each order is. use the alert message from the dashboard exactly as it is, and set the alert to order fills only. the first line of that message gets filled in by your script, from the alert_message you set on each order. edgeful's own scripts do this for you. in your own script, you add it yourself.
what your script's alert_message must contain
exactly 2 key-value pairs, with no braces around them and no comma at the end:
"ticker": "ESZ2026", "action": "buy"
ticker: the dated contract, for example ESZ2026. in Pine, syminfo.current_contract gives you this.
action: buy for a long entry, sell for a short entry, and exit for every close (take-profit, stop, breakeven stop, end-of-session close). partial exits send exit too. the dashboard message adds the quantity, so your script doesn't send it.
rules that break the alert if you miss one
every strategy.entry, strategy.exit, strategy.close and strategy.close_all call needs an alert_message. an order without one sends a message edgeful can't read.
don't use TradingView placeholders (the ones in double curly braces) inside alert_message. TradingView only fills those in the alert's message box.
an entry's action has to match the fill: buy on a long, sell on a short. closes always send exit.
don't add a sentiment field. the current message format rejects alerts that include one.
enter only when you're flat. close the position before you enter the other way, rather than flipping long to short in one order.
set the alert to order fills only and keep the dashboard message unchanged.
a minimal example
this is the same pattern edgeful's scripts use. swap in your own entry conditions and your own TP and stop levels:
contract = (na(syminfo.current_contract) or syminfo.current_contract == "") ? syminfo.ticker : syminfo.current_contract
edgefulMsg(string action) => '"ticker": "' + contract + '", "action": "' + action + '"'
strategy.entry("Long", strategy.long, alert_message = edgefulMsg("buy"))
strategy.exit("Long TP1", "Long", qty_percent = 50, limit = tp1, stop = sl, alert_message = edgefulMsg("exit"))
strategy.exit("Long TP2", "Long", limit = tp2, stop = sl, alert_message = edgefulMsg("exit"))
strategy.close_all(alert_message = edgefulMsg("exit"))
then build the alert the same way you would for an edgeful algo: paste your strategy's webhook URL and the dashboard message, and run it on a sim account before you go live. full walkthrough: → setting up TradingView alerts for algo automation.
want to see it done? the pro tip on the algo dashboard (algos → dashboard) links to a walkthrough video.
one limit to know: the algo optimizer and algo templates only work with edgeful's algos. you can't upload your own Pine script to the optimizer.
you're done when
a trade from your demo account shows as filled in the trade log, its exit closed the position at your broker, and
you know which contract your alert has to be on, and when the next rollover is.
common mistakes at this stage
alert on the wrong contract for your broker (front-month vs continuous).
webhook URL pasted into the message, or the webhook box left unticked.
alert condition left on price instead of the algo.
testing with TradingView paper trading: it never sends the webhook. use a broker demo account.
reusing the demo webhook for live: the trades keep going to the demo account.
no CME real-time data: alerts fire late and entries land behind the market.
go deeper
next: stage 4
you're automated. last stage: how to keep it running, and how to find the problem fast when a trade doesn't happen: → stage 4: troubleshooting algos




