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.
- 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.
- Dedupe (dedupe). Stop Autoview placing the same order twice: it remembers the last value for an alert and skips the rest when that value repeats.
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.
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.
| Name | Key | Default | Values | Description |
|---|---|---|---|---|
| Account | a | * | Anything (excluding special characters) | The alias for the API credentials this command uses. |
| Auto Borrow | ab | n/a | 0, 1 | Borrows funds automatically to cover an order that would otherwise fail from insufficient balance. |
| Auto Break Even | abe | n/a | Number or %, or a random range (#-#, %-%) | Moves the stop loss to break even once price moves this far in profit (Tradovate bracket orders). |
| Auto Break Even Trigger Price | abex | n/a | Number or %, or a random range (#-#, %-%) | Sets the trigger price that moves the stop loss to break even (Tradovate bracket orders). |
| Alert Count | ac | n/a | Fraction (e.g. 1/3) | Marks this alert's position in an ordered sequence; pairs with acg. |
| Alert Count Group | acg | n/a | Anything | Names the group an ac sequence belongs to, so more than one sequence can run at once. |
| Account Identifier | aid | n/a | Anything | Selects a specific account when more than one is available under the same credentials. |
| Auto Margin Replenishment | amr | n/a | 0, 1 | Moves available balance into a position's margin automatically. |
| Auto-Trail Frequency | atf | n/a | Number or %, or a random range (#-#, %-%) | How often an auto-trail stop loss re-checks price (Tradovate bracket orders). |
| Auto-Trail Stop Loss | atsl | n/a | Number or %, or a random range (#-#, %-%) | The stop loss distance an auto-trail order keeps behind price (Tradovate bracket orders). |
| Auto-Trail Trigger Price | atx | n/a | Number or %, or a random range (#-#, %-%) | The price that starts an auto-trail stop loss trailing (Tradovate bracket orders). |
| Auto Repay | ar | n/a | 0, 1 | Repays a loan automatically once the order finishes. |
| Book | b | n/a | buy, long; sell, short | The side of the market for this order. |
| Blind Carbon Copy | bcc | n/a | 0, 1 | Relays this command to the configured endpoint only, without sending it to the exchange. |
| Cancel / Close | c | n/a | order, position | Cancels open orders or closes open positions instead of placing a new order. |
| Callback Rate | cbr | n/a | Number | The callback rate for a trailing stop order (exchange-specific, e.g. Binance). |
| Carbon Copy | cc | n/a | 0, 1 | Relays this command to both the configured endpoint and the exchange. |
| Close | close | n/a | 0, 1 | Cancels other active limit orders on the same side and symbol when this order is placed. |
| Cancel / Close Maximum | cm | 100% | 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. |
| Cancel / Close Maximum Order | cmo | oldest | newest, oldest; lowest, highest; smallest, biggest; random | Sets which orders or positions cm applies to first. |
| Collateral Balance | collateral | n/a | 0, 1 | Uses collateral balance instead of coin balance when placing an order (ByBit). |
| Close On Trigger | cot | n/a | 0, 1 | Marks a closing order to avoid rejection from insufficient available margin. |
| Disabled | d | n/a | 0, 1 | Runs the command as a dry run and logs what it would do without placing a live order. |
| De-duplication | dedupe | n/a | Anything | Remembers the last value seen for an alert and skips the command when that value repeats. |
| Delay | delay | n/a | > 0 (seconds) | Pauses this many seconds before the next part of an alert runs. |
| Date/Time | dt | n/a | e.g. 2020-09-14 | The date and time an open order is cancelled if it has not filled by then. |
| Exchange | e | n/a | Binance, Kraken, ... | The exchange this command trades on. |
| Edit Order | edit | n/a | 0, 1 | Amends the existing order matching id instead of placing a new one. |
| Extended Hours | eh | n/a | 0, 1 | Allows the order to fill during premarket or after-hours sessions. |
| Expiration Time | et | n/a | > 0 (seconds) | How long Autoview waits for the order's condition to trigger before cancelling it. |
| Fixed Auto Break Even Trigger Price | fabex | n/a | Number, or a random range (#-#) | The literal price that moves the stop loss to break even (Tradovate bracket orders). |
| Fixed Auto-Trail Stop Loss | fatsl | n/a | Number, or a random range (#-#) | The literal stop loss distance an auto-trail order keeps behind price (Tradovate bracket orders). |
| Fixed Auto-Trail Trigger Price | fatx | n/a | Number, or a random range (#-#) | The literal price that starts an auto-trail stop loss trailing (Tradovate bracket orders). |
| Fixed Guaranteed Stop Loss | fgsl | n/a | Number, or a random range (#-#) | The literal price for a stop loss that is guaranteed against slippage. |
| Fixed Price | fp | n/a | Number, or a random range (#-#) | The literal price to place an order or close a position at. |
| Fixed Price Bound | fpb | n/a | Number, or a random range (#-#) | The literal worst price allowed to fill a stop order before it is cancelled instead. |
| Fixed Trigger Price | fpx | n/a | Number, or a random range (#-#) | The literal price that triggers a stop order. |
| Fixed Stop Loss | fsl | n/a | Number, or a random range (#-#) | The literal price that triggers a stop loss order. |
| Fixed Stop Loss Trigger Price | fslx | 0 | Number, or a random range (#-#) | The literal price that triggers the stop loss order to fire. |
| Fixed Take Profit | ftp | n/a | Number, or a random range (#-#) | The literal price that triggers a take profit order. |
| Fixed Take Profit Trigger Price | ftpx | 0 | Number, or a random range (#-#) | The literal price that triggers the take profit order to fire. |
| Fixed Trailing Stop | fts | n/a | Number, or a random range (#-#) | The literal distance a trailing stop keeps behind the market price. |
| Fixed Trailing Stop Trigger Price | ftsx | n/a | Number, or a random range (#-#) | The literal price that activates a fixed trailing stop. |
| Guaranteed Stop Loss | gsl | n/a | Number or %, or a random range (#-#, %-%) | A stop loss price that is guaranteed against slippage. |
| Hidden/Iceberg | h | n/a | Number or %, or a random range (#-#, %-%) | Hides the order when 0; above 0, shows only that portion of the order (iceberg). |
| Hedge Mode | hedge | n/a | 1 | Opens buy-side and sell-side positions on the same symbol at the same time. |
| Identifier | id | n/a | Up to 26 characters [a-z0-9.:-_] | A unique identifier among open orders, generated automatically when not supplied. |
| Leverage | l | n/a | >= 0 | Multiplies available balance for this order; raises risk along with size. |
| Leverage Type | lt | n/a | cross, isolated | Sets the leverage type used when placing new orders. |
| Take Profit / Stop Loss Mode | mode | n/a | partial, full (exchange-specific, e.g. ByBit) | Sets whether a take profit or stop loss order covers the full position or a partial amount. |
| One Cancels the Other | oco | n/a | 0, 1 | Combines a limit order with a stop-limit order so filling one cancels the other. |
| Opposite On Close | opposite | 1 | 0, 1 | When closing a position, places the closing order on the opposite side of the book by default. |
| Order Sends Order | oso | n/a | 0, 1 | Places a follow-up order once the first order fills, for multi-bracket strategies. |
| One Triggers Other | oto | n/a | 0, 1 | Places a linked order that activates once the first order fills (e.g. Alpaca). |
| Price | p | 0 | Number or %, or a random range (#-#, %-%) | How far to undercut or overcut the top of the book. |
| Price Bound | pb | n/a | Number or %, or a random range (#-#, %-%) | The worst market price allowed to fill a stop order before it is cancelled instead. |
| Price | price | n/a | Number or %, or a random range (#-#, %-%) | An explicit price, used internally when closing relative to the position's average price (ps=position) and also settable directly. |
| Price Source | ps | n/a | last, top, position | Changes the reference price used for p; position uses the position's average price when closing. |
| Price Value | pv | n/a | price, ticks, points (exchange-specific, e.g. Tradovate) | Sets the unit p is expressed in. |
| Trigger Price | px | n/a | Number or %, or a random range (#-#, %-%) | Sets the price that triggers a stop order. |
| Trigger Price Source | pxs | n/a | last, mark, index | Changes the reference price used for px. |
| Quantity | q | 100% | Number or %, or a random range (#-#, %-%) | The portion of balance or position this command affects. |
| Reduce Only | ro | n/a | 0, 1 | Restricts an order to only reduce an existing position, never increase it. |
| Order Route | route | n/a | A route name from your broker (exchange-specific, e.g. TradeStation) | Sends the order through a specific broker route instead of the default. |
| Symbol | s | n/a | BTCUSD3M, LTCUSD, PINKBTC, ... | The exchange's market this command trades. |
| Stop Loss | sl | n/a | Number or %, or a random range (#-#, %-%) | Triggers an order when the last traded price hits the stop price. |
| Stop Loss Price Source | sls | n/a | last, mark, index | Changes the reference price used to trigger the stop loss. |
| Stop Loss Value | slv | n/a | price, ticks, points (exchange-specific, e.g. Tradovate) | Sets the unit the stop loss distance is expressed in. |
| Stop Loss Trigger Price | slx | 0 | Number or %, or a random range (#-#, %-%) | Triggers the stop loss order once the last traded price hits this price. |
| Order Type | t | limit | limit, market, fok, ioc, post, close, open, settle | Sets how the order is placed and filled; several values compose with exchange-specific behavior. |
| Testing | testing | n/a | 0, 1 | Prevents any live action from any command on this account while enabled. |
| Time In Force | tif | n/a | fok, ioc | Sets how long an order may stay working; composes with t (e.g. t=limit tif=ioc). |
| Take Profit | tp | n/a | Number or %, or a random range (#-#, %-%) | Triggers an order when the last price hits the profit price. |
| Take Profit Price Source | tps | n/a | last, mark, index | Changes the reference price used to trigger the take profit. |
| Take Profit Value | tpv | n/a | price, ticks, points (exchange-specific, e.g. Tradovate) | Sets the unit the take profit distance is expressed in. |
| Take Profit Trigger Price | tpx | 0 | Number, or a random range (#-#) | Triggers the take profit order once the last traded price hits this price. |
| Trailing Stop | ts | n/a | Number or %, or a random range (#-#, %-%) | Trails the market price by a set amount as it moves in your favor. |
| Trailing Stop Trigger Price | tsx | n/a | Number or %, or a random range (#-#, %-%) | Sets the price that activates a trailing stop. |
| Unit | u | contracts | contracts, currency | The unit q is expressed in. |
| Version | v | n/a | Unknown | Recognized by the command parser; not otherwise referenced in the integration code. |
| Wallet | w | n/a | Anything | The currencies to transfer between wallets (e.g. spot to margin); more than one is allowed, e.g. w=btc,cad,usdt. |
| Yield | y | balance | balance, equity, margin, spot, borrow, repay, futures, delivery, spot-futures, spot-delivery, contract, investment, spot-contract, spot-investment | Chooses what this command does with balance: hold it, move it between wallets, or borrow and repay against it. |