What Autoview supports on Tradovate
This page answers one question per order action: does Autoview do it on Tradovate, and what do you send? It covers brackets, cancelling, closing, editing a working order, and FIFO. It comes from a read of the Autoview integrations code, and every command below was checked against the same command parser the trading engine uses. We did not place these orders live for this page, so test your own line with d=1 first. Everything here applies to Tradovate and Tradovate Simulation alike; the Simulation connection runs the same code against Tradovate's demo host.
The examples use s=ESZ6. Use your own contract. On a webhook, the account is the one linked to the webhook. On the Chrome extension, add e=TRADOVATE or e=TRADOVATESIM.
| Action | Status | Command |
|---|---|---|
| Bracket on a new entry | Works | s=ESZ6 b=buy t=market q=1 price={{close}} & sl=10 tp=20 |
| Stop and target for a position you hold (OCO) | Works | s=ESZ6 b=buy t=market q=1 oco=1 fpx=5990 ftp=6020 |
| Cancel working orders | Works | s=ESZ6 c=order |
| Close a position at market | Works | s=ESZ6 c=position t=market |
| Close and cancel everything on a contract | Works | s=ESZ6 c=all |
| Edit a working order | Works | s=ESZ6 c=order edit=1 fp=6010 |
| FIFO or lot selection | No setting | None |
Brackets
A bracket is an entry with a stop loss and a take profit attached. Write the entry, an &, then sl= and tp= in that one section:
s=ESZ6 b=buy t=market q=1 price={{close}} & sl=10 tp=20- One order strategy. Autoview sends the entry and all of its brackets to Tradovate in a single request, as one order strategy. Each
§ion becomes one bracket. - Distances, not prices.
sl=10andtp=20are distances in points. Autoview ignores their sign and puts the stop on the losing side and the target on the winning side, based onb=.slv=andtpv=switch the unit toticksorpips. - Keep the stop and the target in one section.
& sl=10 & tp=20is two sections, so it builds two brackets: one with only a stop and one with only a target. - Size per section. A section with its own
q=uses that size. A section without one uses the entry'sq=. That is how a scale-out works:
s=ESZ6 b=buy t=market q=2 price={{close}} & q=1 sl=10 tp=10 & q=1 sl=10 tp=20A bracket line needs a reference price. If you send price=, Autoview uses it. If you leave it off, Autoview asks Tradovate for a quote first, and that lookup fails on an account with no market-data feed. TradingView's {{close}} placeholder fills it in for you.
Auto-trail (atf=, atx=, atsl=) goes inside a section too, and all three are needed. Leave one out and Autoview refuses the line before sending anything. The Tradovate command reference has the full bracket syntax, including break-even.
OCO for a position you already hold
oco=1 places a stop and a limit together as a one-cancels-other pair, with no entry.
s=ESZ6 b=buy t=market q=1 oco=1 fpx=5990 ftp=6020b= is the side of the position you are protecting, so both orders go out on the other side: for a long, a sell stop at 5990 and a sell limit at 6020. The line needs a trigger (fpx= or px=) and a target (ftp= or tp=), and a stop-loss price too unless it is t=market. oco=1 only works on a line with no & section. With a section present, Autoview builds a bracket and does not read oco=.
Cancel
s=ESZ6 c=orderThis cancels the working orders on that contract in the linked account. You can narrow it:
- One side:
s=ESZ6 c=order b=sellcancels only sell orders. - Some of them:
s=ESZ6 c=order cm=1 cmo=newestcancels only the newest one. On Tradovatecmo=takesoldest,newestorrandom, and the default isoldest. The other sorts stop with "does not support sort method". See cancel the oldest or newest orders. - By tag: Autoview compares
id=with the tag it set on the order when it placed it. Whether Tradovate's order list sends that tag back is not confirmed, so check withd=1first. "No open orders." in your log means nothing matched. See cancel orders by id=.
t=, sl= and tp= do not filter a Tradovate cancel. A cancel by price (fp=) is not confirmed either; see cancel orders by price.
Close
s=ESZ6 c=position t=marketc=position closes your position on that contract with one order on the other side, sized to the whole position. b=buy limits it to a long position and b=sell to a short one.
Send t=market if you want the close to happen now. Without it the close takes the default order type, which is limit. A limit close is priced at the current quote on the far side: a sell to close a long rests at the ask, and a buy to close a short rests at the bid. With ps=position the limit is priced at your position's average entry price instead. Either way it is a resting order that may not fill. t=market sends a market order and does not need a quote, so it also works on an account with no market-data feed.
s=ESZ6 c=allc=all asks Tradovate to close the position and cancel the working orders on that contract in one request. When it succeeds, your log reads "Canceled and closed All on" followed by the symbol. A TradingView strategy that sends b=flat gets the same thing, because Autoview turns b=flat into c=all.
Reversing takes two alerts: the close, then a new entry. See close or reverse a position.
Edit a working order
Live. Order edits on Tradovate shipped in the November 2026 Autoview releases, on the servers and in the Chrome extension from version 1.42.8. An older Chrome extension reads a c=order edit=1 line as a plain c=order and cancels the orders it matches, so update it before you send edits from there.
c=order edit=1 changes a working order in place instead of cancelling it:
s=ESZ6 c=order edit=1 fp=6010- New limit price:
fp=6010sets the price.p=-2moves it two points from the order's current price. On an edit,fp=is the new price, not a filter. - New size:
s=ESZ6 c=order edit=1 q=3sets the quantity to 3.q=50%halves the current quantity. A size that rounds to 0 is refused. - New stop price:
s=ESZ6 c=order edit=1 fpx=5980moves the trigger of a stop or stop-limit order.fsl=does the same, andpx=andsl=move it by a distance from the current stop price. - The rest stays. The order type, time in force and the other price carry over from the order as it stands.
Every working order the line matches gets the same edit, so narrow it the same way as a cancel: b=, id=, cm= and cmo=. After sending the change, Autoview reads the order back from Tradovate. If the order did not change, your log shows an error instead of a success line.
Some edits are refused:
- Trailing stops (
ts=,fts=) and take-profit keys (tp=,ftp=) stop the whole line. A take profit is a limit order, so change its price withfp=orp=. - Both a trigger and a stop loss in one line (
px=withsl=), andu=currencysizing, stop the whole line. - Per order, Autoview skips a new limit price on an order that has none (a stop), and a new stop price on a limit order or a trailing stop. The log names the order.
Try it with d=1 first. Autoview lists each order it would edit and sends nothing:
s=ESZ6 c=order edit=1 b=sell fp=6010 d=1How edits work on the other exchanges: editing open orders by exchange.
FIFO
Autoview has no FIFO setting for Tradovate, and none for lot selection. The Tradovate connection reads one net position per contract for the account and closes it with one order on the other side, sized to the net quantity. It does not track or pick individual fills. We searched the Tradovate connection and the shared close code for any FIFO handling and found none.
An order on the other side of an open position is sent as an ordinary order. Autoview does not look at your position first, unless you add ef= (see enter when flat). ro=1 (reduce-only) is not read on Tradovate. How Tradovate applies an order to your position follows Tradovate's own rules, which this page does not cover. To leave a position, send c=position or c=all rather than a plain opposite order, so a repeated alert has nothing left to close.