Skip to main content

Automation

Signal Reference

Complete signal format reference for Trade Wzrd automation - all 15 commands, every parameter, and examples for forex and futures platforms.


A signal is a comma-separated text string sent to your webhook URL. Trade Wzrd’s parser identifies the command, symbol, and parameters regardless of their order - all formats below are valid:


Signal Format

  • Command - the trade operation
  • Symbol - the trading instrument
  • Parameters - key-value pairs (KEY=VALUE)

Everything with an = is treated as a parameter. Everything that matches a known command is the command. Everything else is the symbol.


All 15 Commands

Market Orders

BUY

Open a long position at market price.

SELL

Open a short position at market price. Same parameters as BUY.


Pending Orders

BUYLIMIT

Place a buy limit pending order. Requires the PRICE parameter.

SELLLIMIT

Place a sell limit pending order. Same parameters as BUYLIMIT.

BUYSTOP

Place a buy stop pending order. Same parameters as BUYLIMIT.

SELLSTOP

Place a sell stop pending order. Same parameters as BUYLIMIT.

Automation Note: Pending order signals (BUYLIMIT, SELLLIMIT, BUYSTOP, SELLSTOP) are not yet supported on Tradovate/NinjaTrader. You can place pending orders manually in the terminal. Use BUY/SELL with BRACKET for automation entries with SL+TP on futures.


Bracket Orders (Futures)

BRACKET

Open a position with SL+TP attached as bracket orders (OSO - Order Sends Order). Primarily for futures platforms (Tradovate/NinjaTrader) where SL/TP are separate orders. On forex platforms, this behaves like a normal BUY/SELL with SL/TP.

When the entry fills, SL and TP are placed as separate bracket orders. On full close, all remaining bracket orders are automatically cancelled.


Remove Bracket Orders (Futures)

REMOVE_SL

Remove the stop loss bracket order from a position. Futures platforms only (Tradovate/NinjaTrader).

REMOVE_TP

Remove the take profit bracket order from a position. Futures platforms only (Tradovate/NinjaTrader).

To remove both SL and TP:


Modify

MODIFY

Update stop loss and/or take profit on an existing trade. At least one of SL or TP is required.

Futures Note: On Tradovate/NinjaTrader, MODIFY updates the bracket orders (SL/TP) attached to the position.

Aliases: MODIFYORDER


Close

CLOSE

Close a trade. The behavior depends on which parameters you provide:

Parameters Behavior
None Full close - closes all trades for the symbol
PERCENT=50 Partial close - closes 50% of the position
PERCENT=100 Full close - equivalent to no parameter
VOL=0.03 Layer close - closes trades to match 0.03 lots total

Futures Note: On Tradovate/NinjaTrader, a full close automatically cancels all remaining bracket orders (SL/TP). Partial closes reduce volume but keep bracket orders attached.

Aliases: CLOSEORDER


Close All

CLOSEALL

Close all positions for a symbol with optional filters.

Futures Note: On Tradovate/NinjaTrader, CLOSEALL also cancels all pending bracket orders associated with the closed positions.

Aliases: CLOSEALLORDERS


Break Even

BREAKEVEN

Move stop loss to entry price plus an optional offset. Defaults to OFFSET=0.0 (SL moved exactly to entry price).

Futures Note: On Tradovate/NinjaTrader, OFFSET is in ticks. OFFSET=0 moves SL to entry price. OFFSET=4 moves SL 4 ticks in profit direction.

Aliases: BE


Cancel

CANCEL

Delete a pending order. Only works on pending orders (limit/stop). Use CLOSE for open positions.

Aliases: CANCELORDER, DELETE, DELETEORDER


Layer Close

LAYER_CLOSE

Close multiple trades to match a target volume. Useful when you want to close a specific lot amount across multiple open positions.

Aliases: LAYERCLOSE, LAYER


Direction Filter

For CLOSE, BREAKEVEN, LAYER_CLOSE, and CANCEL, you can append BUY or SELL as a direction filter. The parser treats a second BUY/SELL keyword as a SIDE parameter:


Multi-Command Signals

Separate multiple commands with semicolons. Each command is parsed independently:


Complete Parameter Reference

Parameter Description Example
VOL / VOLUME Lot size VOL=0.01
RISK Risk percentage of account balance RISK=2
SL Stop loss (price, pips, or ticks based on TPSLTYPE) SL=100 or SL=1.0850
TP Take profit (price, pips, or ticks based on TPSLTYPE) TP=200 or TP=1.0950
TPSLTYPE How SL/TP values are interpreted. Default is PRICE. Options: PRICE, PIPS, TICKS, BALANCE, PERCENTAGE TPSLTYPE=PIPS or TPSLTYPE=TICKS
MAGIC Magic number for trade identification (forex only) MAGIC=12345
COMMENT Trade comment (forex only) COMMENT=Scalp
PRICE Entry price for pending orders PRICE=1.0800
PERCENT Percentage to close (CLOSE command) PERCENT=50
TICKET Specific ticket number TICKET=12345
OFFSET Price offset for breakeven (or tick offset on futures) OFFSET=0.0010 or OFFSET=4
SIDE Direction filter: BUY or SELL SIDE=BUY
POSITIVE CLOSEALL: only close profitable positions POSITIVE=true
NEGATIVE CLOSEALL: only close losing positions NEGATIVE=true
PENDING CLOSEALL: only close pending orders PENDING=true
POSITIONS CLOSEALL: only close open positions POSITIONS=true

TPSLTYPE Parameter

Controls how SL and TP values are interpreted:

Value Behavior Platforms
PRICE SL/TP are absolute price values (default) All
PIPS SL/TP are pip distances from entry price Forex (MT4, MT5, TradeLocker, cTrader, DXTrade)
TICKS SL/TP are tick distances from entry price Futures (Tradovate, NinjaTrader)
BALANCE SL/TP are balance amounts Forex only
PERCENTAGE SL/TP are percentage-based Forex only

Examples by Platform

Forex (pips):

Forex (price):

Futures (ticks):

Tick conversion example (ES): If ES is at 5800.00 and tick size is 0.25:

  • SL=4 ticks = 4 × 0.25 = 1.00 point → SL at 5799.00
  • TP=10 ticks = 10 × 0.25 = 2.50 points → TP at 5802.50

When omitted, PRICE is the default - so you don’t need to specify TPSLTYPE=PRICE when using price values for SL and TP.


Platform Differences Summary

Feature Forex (MT4/MT5/TradeLocker/cTrader/DXTrade) Futures (Tradovate/NinjaTrader)
SL/TP Order fields on the position Separate bracket orders (OSO)
TPSLTYPE PRICE, PIPS, BALANCE, PERCENTAGE PRICE, TICKS
MAGIC/COMMENT Supported Not supported
BRACKET command Works like BUY/SELL Opens with bracket orders attached
REMOVE_SL/REMOVE_TP Not applicable Cancels individual bracket orders
Full close Closes position Closes position + auto-cancels brackets
Pending orders Supported Supported in terminal, not yet in automation signals