Alert syntax

Autoview · Alert syntax

An Autoview command is one line of key=value pairs that tells Autoview what to trade, which way, and how much. This section documents the parameters one at a time, with a worked example on every page. If you are writing your first command, start with the command reference, which walks the core parameters end to end. Come back here when you need the detail on a specific one.

Order control

Tear down what is resting or open, and preview a command before it trades.

  • Cancelling and closing (c). Cancel resting orders, close open positions, or both, with the cm and cmo limits, the cot flag, and the close keyword.
  • Disabled (d=1). Run a command as a dry run: Autoview logs what it would do without placing a live order. d is Disabled, not dedupe.

Sequencing

Space out, gate, and order the alerts that reach Autoview.

  • Delay (delay). Pause before the next part of an alert runs, measured in seconds, decimals allowed, to space out several orders sent in one alert. Works on the Chrome extension and the stand-alone runner. Not yet enforced on the cloud webhook platform.
  • Alert counting and grouping (ac, acg). Track an ordered sequence of alerts with ac and acg, and run only once the full sequence arrives in order, on the Chrome extension. Not yet enforced on the cloud webhook platform.
  • Dedupe (dedupe). Stop Autoview placing the same order twice on the Chrome extension: it remembers the last value for an alert and skips the rest when that value repeats. Not yet enforced on the cloud webhook platform.

Values

Name a value once and do math in any number field.

  • Custom variables (:name=value). Name a value once with :name=value and reuse it across every command in one alert, referenced inside an [equation].
  • Equations ([ ]). Run a math expression in any number field: wrap it in square brackets and Autoview computes the value before it sends the order.

Writing your first command

These pages cover individual parameters. To see how they fit together into a working command, exchange and symbol, side and size, stops and take-profits, then a safe test, read the command reference. It builds a real command piece by piece and shows how to test it with d=1 before it trades real money.

Read the command reference

Complete parameter reference

Every parameter the Autoview command parser accepts, key by key. The sections above walk through the ones most alerts need; this table adds the rest, sourced from the parser's own definitions.

A default of n/a means the parameter has no preset value: leave it out and it does not apply. For the on-or-off flags, that means the feature stays off unless you set the key to 1.

NameKeyDefaultValuesDescription
Accounta*Anything (excluding special characters)The alias for the API credentials this command uses -- which connected account to trade on. Pair it with aid to pick a specific sub-account when a connection exposes more than one.
Auto Borrowabn/a0, 1Borrows funds automatically to cover a margin order that would otherwise fail from insufficient balance. KuCoin and Gate.io only, both on their spot-margin path.
Auto Break Evenaben/aNumber or %, or a random range (#-#, %-%)The profit offset added past your entry price once break-even fires, on a Tradovate bracket order. Tradovate only. Use a plain number -- a percent value silently resolves to 0, not a percentage of price.
Auto Break Even Trigger Priceabexn/aNumber or %, or a random range (#-#, %-%)The trigger distance that arms break-even on a Tradovate bracket order -- pairs with abe. Tradovate only, with the same percent caveat: use a plain number.
Alert Countacn/aFraction (e.g. 1/3)Marks this alert's position in an ordered sequence -- pairs with acg. Chrome extension only; not enforced on the cloud webhook platform.
Alert Count Groupacgn/aAnythingNames the group an ac sequence belongs to, so more than one sequence can run at once. Only takes effect together with ac, and shares its Chrome-extension-only support.
Account Identifieraidn/aAnythingSelects a specific sub-account within the credential set a points to, for connections that expose more than one account. a picks the connection, aid picks the account inside it.
Auto Margin Replenishmentamrn/a0, 1Parsed by the command parser but not currently read anywhere in the product. Reserved for future use.
Auto-Trail Frequencyatfn/aNumber or %, or a random range (#-#, %-%)How often an auto-trail stop loss re-checks price, on a Tradovate bracket order. Tradovate only, and required alongside atx/fatx and atsl/fatsl once any of the three is present. A percent value is not supported -- use a plain number.
Auto-Trail Stop Lossatsln/aNumber or %, or a random range (#-#, %-%)The stop loss distance an auto-trail order keeps behind price, on a Tradovate bracket order.
Auto-Trail Stop Loss Valueatslvn/an/a -- see descriptionReserved as a future unit hint for atsl (price/pips/ticks), mirroring slv's role for sl. Not currently wired into the command parser -- sending it has no effect.
Auto-Trail Trigger Priceatxn/aNumber or %, or a random range (#-#, %-%)The price that starts an auto-trail stop loss trailing, on a Tradovate bracket order.
Auto-Trail Trigger Valueatxvn/an/a -- see descriptionReserved as a future unit hint for atx, mirroring atslv's role for atsl. Not currently wired into the command parser.
Auto Repayarn/a0, 1Repays a loan automatically once the order finishes, on the spot-margin path. Gate.io only.
Bookbn/abuy, long; sell, short; flat (Tradovate)The side of the market for this order: buy/long, sell/short, or flat to close everything -- flat fully completes on Tradovate only; elsewhere it's recognized but errors instead of closing.
Blind Carbon Copybccn/a0, 1Relays this command to your configured endpoint only, without sending it to the exchange. Chrome extension only.
Cancel / Closecn/aorder, position, all (Tradovate only)Cancels open orders (c=order) or closes open positions (c=position) instead of placing a new order. c=all does both together as a full liquidate -- Tradovate only; other exchanges recognize the value but don't act on it.
Callback Ratecbrn/aNumberSets the percentage callback distance on a native trailing-stop order -- only takes effect alongside ts/fts. Binance Futures and Binance Delivery only.
Carbon Copyccn/a0, 1Relays this command to both your configured endpoint and the exchange. Chrome extension only.
Closeclosen/a0, 1Marks an order as a closing order rather than an opening one -- what that does is left to each exchange. Bitget, BitMEX, OANDA, and TradeStation only.
Cancel / Close Maximumcm100%Number or %, or a random range (#-#, %-%)Limits how many orders are cancelled or how much of a position is closed -- see cmo for the order. Applies universally wherever cancelling or closing is supported.
Cancel / Close Maximum Ordercmooldestnewest, oldest; lowest, highest; smallest, biggest; randomSets which orders or positions cm applies to first: newest/oldest, lowest/highest, smallest/biggest, or random. A given exchange may not support every criterion -- check your exchange's own guide if one doesn't seem to apply.
Collateral Balancecollateraln/a0, 1Sizes an order against your collateral wallet balance instead of your coin wallet. ByBit only, new-order path only.
Close On Triggercotn/a0, 1Tells the exchange this order should reduce or close a position when it triggers, rather than open or add to one. ByBit only.
Disableddn/a0, 1Runs the command as a dry run: Autoview logs what it would do without placing a live order. Universally honored wherever an action would otherwise be taken.
De-duplicationdedupen/aAnythingRemembers the last value seen for an alert and skips the command when that value repeats. Chrome extension only.
Delaydelayn/a> 0 (seconds)Pauses this many seconds before the next part of an alert runs. Chrome extension and the stand-alone runner only -- not the cloud webhook platform.
Date/Timedtn/ae.g. 2020-09-14Sets a Good-Til-Date expiry on the order, sent to your broker in whatever format it expects. Supported on a handful of exchanges -- check your exchange's own guide.
Exchangeen/aBinance, Kraken, ...Chrome extension only, and required there -- tells the extension which connected exchange to route the alert to. On the cloud webhook platform and the stand-alone runner, the exchange is already fixed by the webhook or zone, so leave this out there.
Edit Ordereditn/a0, 1Re-prices a resting order in place instead of cancelling and replacing it. Kraken and ByBit only, each with its own mechanism -- see your exchange's guide.
Extended Hoursehn/a0, 1Allows the order to fill during premarket or after-hours sessions. Alpaca, Charles Schwab, and TradeStation only -- the US equities/options brokers; crypto trades 24/7 and Tradovate has its own separate extended-session model.
Expiration Timeetn/a> 0 (seconds)Sets a trigger order's expiration window in seconds -- only takes effect alongside px/fpx. Gate.io spot and futures only, defaulting to 30 days when omitted.
Fixed Auto Break Even Trigger Pricefabexn/aNumber, or a random range (#-#)Meant as abex's fixed-value counterpart, mirroring fatx/fatsl's relationship to atx/atsl. Not currently wired into any integration -- sending it has no effect.
Fixed Auto-Trail Stop Lossfatsln/aNumber, or a random range (#-#)The literal stop loss distance an auto-trail order keeps behind price, on a Tradovate bracket order.
Fixed Auto-Trail Trigger Pricefatxn/aNumber, or a random range (#-#)The literal price that starts an auto-trail stop loss trailing, on a Tradovate bracket order.
Fixed Guaranteed Stop Lossfgsln/aNumber, or a random range (#-#)The literal price for a guaranteed stop loss. OANDA reads the number and attaches a true guaranteed stop; Capital.com only checks whether it's present and flags the order as guaranteed -- the stop level there still comes from fsl/sl.
Fixed Pricefpn/aNumber, or a random range (#-#)The literal order price, overriding p's percent-based version when both are set -- also usable as a match filter excluding resting orders or positions outside this price on a cancel-and-close. Supported everywhere except BitgetMixCopy, whose order-placement path doesn't reach price resolution.
Fixed Price Boundfpbn/aNumber, or a random range (#-#)The literal worst price the order is allowed to fill at before it's cancelled. OANDA only.
Fixed Trigger Pricefpxn/aNumber, or a random range (#-#)The literal price that triggers a stop order -- the fixed sibling of px. Supported on most exchanges -- check your exchange's guide if it doesn't seem to apply.
Fixed Stop Lossfsln/aNumber, or a random range (#-#)The literal stop-loss price, overriding sl's percent-based version when both are set. Supported on most exchanges; a handful of mostly non-margin brokers don't read it -- check your exchange's own guide.
Fixed Stop Loss Trigger Pricefslx0Number, or a random range (#-#)Meant as slx's fixed-value counterpart, but a parser gate bug means it never actually takes effect anywhere today -- sending it changes nothing, on any exchange.
Fixed Take Profitftpn/aNumber, or a random range (#-#)The literal take-profit price, overriding tp's percent-based version when both are set. Supported on most exchanges -- check your exchange's guide if it doesn't seem to apply.
Fixed Take Profit Trigger Priceftpx0Number, or a random range (#-#)Meant as tpx's fixed-value counterpart, but the same parser gate bug as fslx means it never takes effect anywhere today.
Fixed Trailing Stopftsn/aNumber, or a random range (#-#)The literal trailing-stop distance, the fixed sibling of ts -- only takes effect alongside ts. Supported on most exchanges; a few read the number differently -- check your exchange's own guide for the exact meaning there.
Fixed Trailing Stop Trigger Priceftsxn/aNumber, or a random range (#-#)The literal trigger price that arms a trailing stop -- the fixed sibling of tsx. ByBit only, and only takes effect alongside ts/fts.
Guaranteed Stop Lossgsln/aNumber or %, or a random range (#-#, %-%)A guaranteed stop loss, price or distance. OANDA reads the value and places a true guaranteed stop; Capital.com only checks whether it's present -- the stop level there still comes from sl/fsl.
Hidden/Iceberghn/aNumber or %, or a random range (#-#, %-%)How much of the order stays visible -- 0 hides it entirely, a larger amount shows more (iceberg). Supported on a handful of exchanges, with some differences in how the threshold is read -- check your exchange's own guide.
Hedge Modehedgen/a1Targets the matching hedge-mode position slot. ByBit, Binance Futures, and Binance Delivery only.
Identifieridn/aUp to 26 characters [a-z0-9.:-_]A tag you choose for the order, used to find or act on it later. Supported on most exchanges, with some differences in exactly what gets tagged and whether it's also used to match an order for cancellation -- check your exchange's guide.
Leverageln/a>= 0Sets leverage for the order. Supported on most exchanges; a few brokers have no per-order leverage API and use it only to size the order locally rather than raising real margin risk -- check your exchange's own guide.
Leverage Typeltn/across, isolatedChooses cross or isolated margin. Supported on many exchanges, with a few different mechanisms behind it depending on venue -- check your exchange's own guide.
Take Profit / Stop Loss Modemoden/apartial, full (exchange-specific, e.g. ByBit)Chooses partial or full fill for an attached stop-loss/take-profit. ByBit only, and only on its main order-placement path -- not on a position close using the default edit behavior.
One Cancels the Otherocon/a0, 1Combines a limit order with a stop-limit order so filling one cancels the other. Supported on a handful of exchanges -- check your exchange's own guide.
Opposite On Closeopposite10, 1When closing a position, places the closing order on the opposite side of the book by default.
Order Sends Orderoson/a0, 1Parsed by the command parser but not currently acted on anywhere. Use a bracket, or oco for a standalone stop-and-target pair, instead.
One Triggers Otheroton/a0, 1Places a linked order that activates once the first order fills. Alpaca only.
Pricep0Number or %, or a random range (#-#, %-%)The order price, as a relative offset from the current reference price. fp (Fixed Price) overrides it when both are set. Supported everywhere except BitgetMixCopy, whose order-placement path doesn't reach price resolution.
Price Boundpbn/aNumber or %, or a random range (#-#, %-%)The worst market price the order is allowed to fill at before it's cancelled. OANDA only.
Pricepricen/aNumber or %, or a random range (#-#, %-%)An explicit reference or override price, depending on venue -- check your exchange's guide for which. Important: a % suffix is accepted without error here but produces a silently wrong price, not a percentage -- always use a plain number for this field.
Price Sourcepsn/alast, positionChanges the reference price used for p. ps=position prices off your position's own average price instead of a fresh quote. Supported everywhere except BinanceUS, Coinbase, and Gemini. ps=last (last traded price) is Bitfinex only, on new orders.
Price Valuepvn/aprice, ticks, points (exchange-specific, e.g. Tradovate)On most exchanges, just being present changes how a ps=position close prices itself -- the value itself isn't read. Tradovate is the one exception where the value matters, converting p by ticks or points.
Trigger Pricepxn/aNumber or %, or a random range (#-#, %-%)Sets the price that triggers a stop order. Supported on most exchanges -- check your exchange's guide if it doesn't seem to apply. fpx (Fixed Trigger Price) is its literal-value sibling.
Trigger Price Sourcepxsn/alast, mark, indexChooses last, mark, or index as the trigger's price source. Supported on a handful of exchanges, and not all of them recognize all three values -- check your exchange's own guide.
Quantityq100%Number or %, or a random range (#-#, %-%)A percentage is read against your account balance when opening or adding to a position, and against the position itself when closing (c=position or c=all). There is no way to size an opening or adding command as a percentage of a position you already hold.
Reduce Onlyron/a0, 1Tells the exchange to only reduce an existing position, never increase it. Supported on most exchanges as a plain flag; a couple handle it differently -- check your exchange's own guide.
Order Routerouten/aA route name from your broker (exchange-specific, e.g. TradeStation)Picks a specific order-routing destination from your broker. TradeStation only -- validated live against your broker's own route list; an unrecognized name throws rather than falling back.
Symbolsn/aBTCUSD3M, LTCUSD, PINKBTC, ...The exchange's market this command trades.
Stop Losssln/aNumber or %, or a random range (#-#, %-%)Sets a protective stop-loss price, as a relative offset. fsl (Fixed Stop Loss) overrides it when both are set. Supported on most exchanges, applied differently by venue -- check your exchange's own guide for exactly how it's placed.
Stop Loss Price Sourceslsn/alast, mark, indexSets the trigger source for the stop-loss leg specifically, separate from pxs. ByBit only -- its ByBit Copy copy-trading integration reuses pxs instead.
Stop Loss Valueslvn/aprice, pips, ticks, points (exchange-specific, e.g. Tradovate)Picks the unit sl/fsl is expressed in -- price, pips, ticks, or points -- inside a Tradovate bracket order leg. Tradovate only.
Stop Loss Trigger Priceslx0Number or %, or a random range (#-#, %-%)The actual stop-loss trigger price, with sl becoming the order's limit price. The three Huobi derivative venues only.
Order Typetlimitlimit, market, fok, ioc, post, close, open, settleThe order type: limit (the default) and market work everywhere. fok, ioc, and post are supported on most exchanges but not all -- check your exchange's guide for which types it accepts.
Testingtestingn/a0, 1An account-level mode toggle, not a per-command switch: turning it on forces every later command into a dry run until you turn it off. Chrome extension only; the stand-alone runner explicitly rejects it, and the cloud webhook platform has no command-execution loop to read it from.
Time In Forcetifn/afok, ioc (Alpaca also accepts gtc, day, cls, opg)Sets time-in-force (fok, ioc, plus Alpaca's own gtc/day/cls/opg). Alpaca, ByBit, Crypto.com, and OANDA only -- an unrecognized value is rejected rather than ignored. Elsewhere, similar FOK/IOC behavior often comes from t=fok/t=ioc instead.
Take Profittpn/aNumber or %, or a random range (#-#, %-%)Sets a take-profit price, as a relative offset. ftp (Fixed Take Profit) overrides it when both are set. Supported on most exchanges; sending sl and tp together is handled differently by venue -- check your exchange's own guide.
Take Profit Price Sourcetpsn/alast, mark, indexSets the trigger source for the take-profit leg specifically, separate from pxs. ByBit only -- ByBit Copy reuses pxs instead.
Take Profit Valuetpvn/aprice, pips, ticks, points (exchange-specific, e.g. Tradovate)Picks the unit tp/ftp is expressed in -- price, pips, ticks, or points -- inside a Tradovate bracket order leg. Tradovate only.
Take Profit Trigger Pricetpx0Number, or a random range (#-#)The actual take-profit trigger price, with tp becoming the order's limit price -- mirrors slx's role on the stop-loss side. The three Huobi derivative venues only.
Trailing Stoptsn/aNumber or %, or a random range (#-#, %-%)How far behind the market price a trailing stop follows once armed. Supported on most exchanges; a few convert the number internally rather than reading it as a raw distance -- check your exchange's own guide for the exact meaning there.
Trailing Stop Trigger Pricetsxn/aNumber or %, or a random range (#-#, %-%)The actual price that arms a trailing stop before it starts trailing. ByBit only, and only takes effect alongside ts/fts.
Unitucontractscontracts, currencyThe unit a non-percentage q is expressed in -- contracts or currency. Changes what q is measured in, not what it's a percentage of. Supported everywhere except ByBit Spot and Bitget Mix Copy.
Versionvn/aUnknownParsed by the command parser but not currently read anywhere in the product. Reserved for future use.
Walletwn/aAnythingLists the currency codes to move on a wallet-transfer command (paired with y=); y picks the direction, w picks the asset(s). Supported on a subset of exchanges; sending it where it's not implemented throws rather than silently doing nothing -- check your exchange's own guide.
Yieldybalancebalance, equity, margin, spot, borrow, repay, futures, delivery, spot-futures, spot-delivery, contract, investment, spot-contract, spot-investmentOn a wallet-transfer command (paired with w=), chooses what happens to your balance: hold it, move it, or borrow/repay against it. On a plain order, y=equity sizes a percent q= against your full account equity instead of available balance. Support for the equity switch varies -- check your exchange's own guide.