Skip to main content

Commands

CrossTrade uses one command vocabulary for NinjaTrader 8 and direct Tradovate webhooks. NinjaTrader is the default destination and supports its platform-specific ATI, ATM, strategy, and Add-On features. Add destination=tradovate; to route a supported command to a linked Tradovate account. The table on this page describes the core NT8 surface; the Destinations capability matrix is authoritative for shared fields, Tradovate extensions, and unsupported platform-specific behavior.

Available Parameters and Valid Values

To utilize these methods, you'll be working with various commands such as Place, Cancel and Change orders, each accepting specific parameters that define their action.

For example, when placing an order, you can specify the instrument, order type, price, quantity, and other trade characteristics. This level of detail provides fine-grained control over trading activities, enabling precise execution based on your trading criteria.

The following chart outlines valid values for each of the parameter types required by CrossTrade commands.


ParametersValues
COMMANDCANCEL, CANCELALLORDERS, CANCELANDBRACKET, CANCELORDERS, CANCELREPLACE, CHANGE, CLOSEPOSITION, CLOSESTRATEGY, FLATPLACE, FLATTEN, FLATTENEVERYTHING, PLACE, REVERSE, REVERSEPOSITION
ACCOUNTThe name of the account the command is to be processed (This will reflect the Account's Name property as opposed to the Display Name property.)
INSTRUMENTInstrument name (e.g., ES1!, ES 09-26, ES SEP26, ESU6)
ACTIONBuy, Sell
QTYAny integer value
ORDER TYPEMarket, Limit, Stopmarket, or Stoplimit
LIMIT PRICEAny decimal value (use decimals not commas, e.g., 1212.25)
STOP PRICEAny decimal value
TIFDay or GTC
OCO IDAny string value
ORDER IDAny string value (must be unique)
STRATEGYStrategy template name (must exist in NinjaTrader)
STRATEGY IDAny string value (must be unique)
info

In general, when specifying parameters in a webhook alert message an underscore takes the place of any space between words, e.g., order_type, stop_price, oco_id, etc.


Using Different Order Types

  • Market: A simple command to place a Buy or Sell market order. It executes immediately at the current market price.
  • Limit: To buy or sell at a specified price. If the price is above or below the current market, the order may execute immediately.
  • Stop: This command triggers a market or limit order when a specified stop price is reached. The stop_price parameter is crucial here.

Available Commands

Required values and execution guarantees depend on both the command and destination. For example, NT8 PLACE requires TIF, while Tradovate accepts an omitted TIF and adds IOC, FOK, and GTD when one is supplied. A shared command name expresses the same trading intent, not necessarily the same broker request sequence or edge-case behavior. Follow each command page and the destination matrix rather than assuming every field is interchangeable.

The following table displays required (R) and optional (O) values for each different command value.

Chart of commands and fields available to NinjaTrader webhooks

Green commands are only available using the CrossTrade NT8 Add-On.

Command Descriptions

In the message field you supply the payload CrossTrade validates and routes. Omit destination for NinjaTrader or set destination=tradovate for a linked Tradovate account.

Continue reading to learn more about creating webhook alert payloads. Each command subsection has descriptions and example message payloads. There is also some very useful information for common use cases in the Examples & Use Cases section.

Video Overview