Tradovate ATM (Scale-Out Brackets)
Tradovate webhooks build a broker-native multibracket order strategy: one entry with any number of scale-out target and stop tiers. CrossTrade manages profit-triggered trail activation, durable high/low replay, and target-fill breakeven on top of that bracket.
What Tradovate provides vs. what CrossTrade adds
| Capability | Owner | What that means |
|---|---|---|
| Entry, scale-out targets, fixed stops, and OCO relationships | Tradovate native | The orders are hosted and executed by Tradovate after submission. |
Continuous trailing from entry (atm_trail=true with no trigger) | Tradovate native | Tradovate receives trailingStop=true and manages the trail. |
| Named ATM Template library | CrossTrade configuration | The reusable template is stored in CrossTrade, not Tradovate or NinjaTrader. CrossTrade expands it into the order fields at signal time. |
Profit-triggered trail activation (atm_trail_trigger + atm_trail_offset) | CrossTrade-exclusive | CrossTrade tracks the highs and lows of its own live pricing while the fixed stop remains active. Once the trigger is reached, CrossTrade keeps tightening that stop so it follows the trade's best price by your offset. The stop only ever moves in your favor. |
| Trigger memory across restarts | CrossTrade-exclusive | The highs and lows CrossTrade observed are saved and restored from the entry fill, so a brief service restart doesn't erase an observed trigger touch. |
| Target-fill breakeven | CrossTrade-exclusive | CrossTrade watches the target fill and modifies surviving stops. Tradovate AutoBracket exposes no native breakeven field. |
Open Tradovate Webhooks → ATM Templates to create a CrossTrade template, then reference its name with strategy=My Template; or atm_strategy=My Template;. This is not a Tradovate-saved or NinjaTrader desktop ATM template. CrossTrade resolves it when the signal arrives, so saved changes apply immediately to the next signal. Named templates cannot be combined with inline atm_* fields in the same payload.
Fields
| Field | Required | Ownership | Meaning |
|---|---|---|---|
atm_targets | Yes | Tradovate native | Comma-separated profit-target offsets, one per tier (scale-out). |
atm_stops | Yes | Tradovate native | Stop offset(s). One value applies to every tier, or give one per tier. |
atm_qtys | No | Tradovate native | Contracts per tier. Must sum to qty. If omitted, qty is split evenly with the remainder on the last tier. |
atm_trail | No | Tradovate native without a trigger | Per-tier trailing toggle. Without trigger/offset fields, Tradovate trails continuously from entry. |
atm_trail_trigger | No | CrossTrade-exclusive | Profit distance that activates a trailing tier. Until CrossTrade's live pricing reaches it, the Tradovate-native fixed stop stays in place. Set with atm_trail_offset. |
atm_trail_offset | No | CrossTrade-exclusive | How far behind the trade's best price the stop follows once the trigger is reached. Set with atm_trail_trigger. |
atm_breakeven | No | CrossTrade-exclusive | Target tier whose confirmed fill moves the remaining stops to breakeven. |
atm_breakeven_offset | No | CrossTrade-exclusive | Ticks or points past entry for the managed breakeven stop. Default 0. |
Example: named template
If an active template named Two Target Runner is saved in CrossTrade:
key=your-secret-key;
command=place;
account=your-tradovate-account;
instrument=ES1!;
action=buy;
qty=2;
order_type=market;
atm_strategy=Two Target Runner;
destination=tradovate;
The template's atm_* fields are substituted before validation. If the template defines atm_qtys, those quantities must sum to the signal's qty. Disabled, deleted, missing, or invalid templates fail closed and no order is sent.
Units and direction
Offsets are distances from the entry price, not absolute prices. A bare number or a tick suffix means ticks; a pt suffix means points. On ES (tick size 0.25), atm_targets=20 is 20 ticks (5.00 points) and atm_targets=5pt is 5.00 points. Direction is automatic from the order side, so always give positive numbers: a long targets above and stops below the entry, and a short is the mirror image.
My indicator outputs absolute prices. Can I use those for multiple targets?
Not directly in atm_targets or atm_stops. Calculate the distances before sending the webhook:
target ticks = abs(target price - signal entry price) / instrument tick size
stop ticks = abs(signal entry price - stop price) / instrument tick size
For an illustrative MNQ long signal with entry 20000.00, stop 19990.00 and targets 20005.00, 20010.00, 20015.00 and 20020.00, the tick size is 0.25. The distances are atm_targets=20,40,60,80; atm_stops=40; atm_qtys=1,1,1,1; qty=4;. These are fields to add to a complete entry command, not a complete payload themselves.
TradingView's editable Message box substitutes supported placeholders but does not subtract two price placeholders. If the distances vary per signal, your Pine script must calculate them, the indicator author must expose precomputed distances, or your own middleware must calculate them. A saved ATM template works for fixed distances; it cannot perform per-signal arithmetic on your indicator's plots.
Tradovate applies the offsets to the actual entry fill. Converting from a signal's entry price therefore does not guarantee the original absolute stop and target levels: a different fill shifts every level. Even a limit order can receive price improvement. For a single absolute target and stop, use take_profit and stop_loss; four independent single-target brackets do not become one managed four-tier ATM.
Can breakeven trigger at a price without taking a partial exit?
atm_breakeven names a target tier whose actual fill triggers the move. It is not a tick-distance trigger and a zero-contract tier is not a workaround. A one-contract position cannot split into a target exit plus a surviving runner. Profit-triggered trailing is a separate mechanism, described below; it should not be presented as identical to a one-time breakeven move.
Do not combine target-fill breakeven with a trailing tier after its trigger. Choose a supported configuration from the examples and limits below rather than combining every field into one payload.
Example: two-target scale-out with a trailing runner
Enter 2 contracts, scale out 1 at 20 ticks and 1 at 40 ticks, each protected by a 15-tick stop, and let the runner trail:
key=your-secret-key;
command=place;
account=your-tradovate-account;
instrument=ES1!;
action=buy;
qty=2;
order_type=market;
atm_targets=20,40;
atm_stops=15;
atm_qtys=1,1;
atm_trail=false,true;
destination=tradovate;
A bare atm_trail=true tier trails continuously from the moment of entry, at the stop's own distance. To hold the plain stop until the trade earns a profit milestone first, add a trail trigger (next section).
Example: trail activation after a profit trigger
Give the runner from the previous example a 15-tick stop that stays put until the trade is 30 ticks in profit, then trails 10 ticks behind price:
key=your-secret-key;
command=place;
account=your-tradovate-account;
instrument=ES1!;
action=buy;
qty=2;
order_type=market;
atm_targets=20,40;
atm_stops=15;
atm_qtys=1,1;
atm_trail=false,true;
atm_trail_trigger=30;
atm_trail_offset=10;
destination=tradovate;
Both fields take the same one-or-per-tier CSV shape as the other atm_* fields, in ticks or points (5pt). A single value arms every trailing tier and leaves the non-trailing tiers alone, which is what the example above does. A full per-tier list is for when trailing tiers need different numbers, and it may leave blank slots for tiers that should not be managed: on a three-tier ATM, atm_trail_trigger=,30,45 manages tiers 2 and 3 only. The two fields must be set together, and only on tiers where atm_trail=true.
CrossTrade sends a native trailingStop toggle for continuous trails and manages these triggered trails itself. Once CrossTrade's live pricing has moved atm_trail_trigger in the trade's favor, the tier arms: CrossTrade then keeps moving the tier's ordinary stop so it stays atm_trail_offset behind the trade's best price, confirming each move with the broker, until the stop or its target executes. No conversion to a native trailing order takes place. The trail never loosens protection: a stop already tighter than the computed price (for example one you moved by hand) is left alone.
If CrossTrade's service restarts, it restores the trigger history from the confirmed entry-fill timestamp before evaluating the trigger, so a touch observed just before a restart is not lost. If fresh, reliable pricing isn't available, CrossTrade does not substitute a Tradovate quote, a single user's quote, or a direct GetQuote response. The fixed stop remains in place, the watcher retries during its 24-hour lifetime, and CrossTrade raises a degraded-management alert after repeated misses.
CrossTrade-exclusive triggered trailing requires CrossTrade's own live pricing to observe the trigger and to keep following the trade afterward. The user dashboard, browser, TradingView, NinjaTrader, and Tradovate market-data entitlement are not required.
If CrossTrade cannot evaluate the trigger (no trusted quote) or the broker refuses a stop adjustment, it leaves the existing stop at its last confirmed price and raises a Stop Adjustment Not Confirmed alert. Check the stop's current broker state and quantity; do not assume the requested move succeeded or that an order can never be rejected, cancelled or filled while management is running.
Example: breakeven after the first target
Move the remaining stop to breakeven (plus 2 ticks) once the first target fills:
key=your-secret-key;
command=place;
account=your-tradovate-account;
instrument=ES1!;
action=sell;
qty=2;
order_type=market;
atm_targets=20,40;
atm_stops=15;
atm_qtys=1,1;
atm_breakeven=1;
atm_breakeven_offset=2;
destination=tradovate;
Breakeven is target-fill-triggered: the remaining stops move only after target tier 1 fully fills, not merely when price moves that far. CrossTrade watches the target fill, moves the surviving stop orders, and re-reads them to confirm the new price was retained.
The watcher refreshes Tradovate's child-order links and does not begin breakeven processing until it has discovered the entry plus every configured target and stop tier. It does not freeze or act on an early partial snapshot.
Tradovate may accept the ATM before CrossTrade starts its breakeven watcher. If the watcher cannot start, the ATM remains live at Tradovate but automatic breakeven management is degraded. CrossTrade returns a warning on the leader alert; for a copied follower ATM, it also marks the follower result as degraded and writes a warning to the Copy Log. If a running watcher repeatedly cannot discover the child orders or confirm the stop move, CrossTrade sends a Breakeven stop not confirmed alert (Stop adjustment not confirmed when the ATM trails its stop). Do not assume breakeven is active when either warning appears.
Some execution providers may reject a stop adjustment; if that happens, the stop remains working at its last confirmed price and CrossTrade raises a degraded-management alert.
Where it works
atm_* is valid on place, flatplace, and reverseposition. On flatplace the same-instrument position is flattened first. On reverseposition, the existing position is flattened and the ATM is sized from the explicit replacement entry. Bare reverse derives a market entry from the live position and accepts only account and instrument, matching NT8.
Limits (v1)
- A stop is required (
atm_stops). A target-only ATM is rejected. Verify the resulting broker orders after placement. atm_*cannot be combined withtake_profit/stop_loss(use one bracket style, not both) or withcancel_after.- A managed
atm_trail_triggermust be closer than that tier's profit target; otherwise the target would close the tier before trailing could activate. atm_breakevencannot point at the final tier (there is no remaining stop to move), and cannot be combined with a trailing tier after the trigger.- CrossTrade-managed breakeven and triggered trailing require a Day entry. GTC/GTD entries are rejected because the durable watcher has a 24-hour safety lifetime.
- Trigger history contains every price observation CrossTrade received. It cannot reconstruct a market move that occurred while CrossTrade had no fresh, reliable pricing; the fixed stop remains the safety fallback.
- To cancel the whole ATM, send
command=cancel;with the sameorder_idyou set on the entry alert. Modifying a running ATM (change) is not supported yet, so cancel and re-send. - Signal-mode copiers replicate the native ATM to followers, re-sized with the same scale-out proportions. Execution-mode copiers see the resulting fills and copy them as market orders rather than recreating the ATM structure.
- Order-mode copiers copy the orders the ATM puts on the leader account: the entry first, then, once the leader's entry fills, each tier's target and stop on every follower that received the entry. Followers hold these as separate orders, not as an ATM of their own. The targets and stops are sized to the follower's own entry with the leader's scale-out proportions, the same way signal mode sizes a follower ATM, so a follower too small for every tier (one contract on a two-tier ATM, for example) gets the first tier only. Changes and cancels to the leader's orders are copied, including a stop CrossTrade moves for breakeven or a triggered trail.
For a single target and stop (no scale-out), the simpler take_profit / stop_loss bracket also works on Tradovate.