Skip to main content

Reference

Actions

Detailed reference for every Trade Wzrd signal action with syntax, parameters, behavior, and examples for forex and futures platforms.


Every signal sent to Trade Wzrd contains an action (also called a command). This page documents every action, its parameters, and platform-specific behavior.


Open Actions

BUY

Open a long position at market price.

Parameters: VOL or RISK (required), SL, TP, TPSLTYPE, MAGIC, COMMENT

Futures: Use TPSLTYPE=TICKS for tick-based SL/TP. MAGIC and COMMENT are not supported on Tradovate/NinjaTrader.


SELL

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


Pending Order Actions

BUYLIMIT / SELLLIMIT / BUYSTOP / SELLSTOP

Place a pending order at a specified price. Requires PRICE parameter.

Action Direction Order Type
BUYLIMIT Buy Limit (buy at price or lower)
SELLLIMIT Sell Limit (sell at price or higher)
BUYSTOP Buy Stop (buy when price rises to level)
SELLSTOP Sell Stop (sell when price falls to level)

Note: Pending order signals (BUYLIMIT, SELLLIMIT, BUYSTOP, SELLSTOP) are not yet supported on Tradovate/NinjaTrader via automation. You can still place pending orders manually in the terminal.


Bracket Actions (Futures)

BRACKET

Open a position with SL and TP attached as bracket orders (OSO - Order Sends Order). On forex platforms, this behaves identically to BUY/SELL with SL/TP. On futures platforms (Tradovate/NinjaTrader), SL and TP are placed as separate bracket orders when the entry fills.

Parameters: VOL or RISK (required), SL, TP, TPSLTYPE (use TICKS for futures)

Behavior:

  1. Entry order is placed
  2. When entry fills, SL bracket order is placed
  3. When entry fills, TP bracket order is placed
  4. If SL or TP is hit, the other is automatically cancelled (OSO)
  5. On full close via CLOSE command, all remaining brackets are cancelled

REMOVE_SL

Remove the stop loss bracket order from a futures position. Tradovate/NinjaTrader only.

Behavior: Cancels the SL bracket order. The TP bracket order remains active. On forex platforms, this action is not applicable (SL is an order field, not a separate order).


REMOVE_TP

Remove the take profit bracket order from a futures position. Tradovate/NinjaTrader only.

Behavior: Cancels the TP bracket order. The SL bracket order remains active. On forex platforms, this action is not applicable.

To remove both SL and TP on a futures position:


Modify Actions

MODIFY

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

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

Filters: Use TICKET to target a specific position, or MAGIC to target positions with a specific magic number.

Aliases: MODIFYORDER


Close Actions

CLOSE

Close a trade. Behavior depends on parameters:

Parameters Behavior
None Full close of all trades for the symbol
TICKET=12345 Close a specific position
PERCENT=50 Partial close (50% of position)
PERCENT=100 Full close (same as no parameter)
VOL=0.05 Layer close (mapped to LAYER_CLOSE)
SIDE=BUY Close only buy positions

Futures: On Tradovate/NinjaTrader:

  • Full close automatically cancels all remaining bracket orders (SL/TP)
  • Partial close reduces volume but keeps bracket orders attached

Aliases: CLOSEORDER


CLOSEALL

Close all positions for a symbol with optional filters.

Futures: On Tradovate/NinjaTrader, CLOSEALL also cancels all pending bracket orders.

Filter Description
POSITIVE=true Only close profitable positions
NEGATIVE=true Only close losing positions
PENDING=true Only close pending orders
POSITIONS=true Only close open positions

Aliases: CLOSEALLORDERS


LAYER_CLOSE

Close multiple trades to match a target volume. Requires VOL (must be > 0).

Closes enough trades to total the target volume. Useful for managing multiple positions across the same symbol.

Aliases: LAYERCLOSE, LAYER


Utility Actions

BREAKEVEN

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

Forex: Offset is in price units. OFFSET=0.0010 moves SL 10 pips in profit direction from entry.

Futures: Offset is in ticks. OFFSET=4 moves SL 4 ticks in profit direction from entry. OFFSET=0 moves SL to entry price.

Aliases: BE


CANCEL

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

Filters: TICKET for a specific order, MAGIC for orders with a specific magic number, SIDE for direction.

Aliases: CANCELORDER, DELETE, DELETEORDER


Platform Compatibility Matrix

Action MT4 MT5 TradeLocker cTrader DXTrade Tradovate NinjaTrader
BUY Yes Yes Yes Yes Yes Yes Yes
SELL Yes Yes Yes Yes Yes Yes Yes
BUYLIMIT Yes Yes Yes Yes Yes Terminal only Terminal only
SELLLIMIT Yes Yes Yes Yes Yes Terminal only Terminal only
BUYSTOP Yes Yes Yes Yes Yes Terminal only Terminal only
SELLSTOP Yes Yes Yes Yes Yes Terminal only Terminal only
BRACKET Yes Yes Yes Yes Yes Yes Yes
REMOVE_SL N/A N/A N/A N/A N/A Yes Yes
REMOVE_TP N/A N/A N/A N/A N/A Yes Yes
MODIFY Yes Yes Yes Yes Yes Yes Yes
CLOSE Yes Yes Yes Yes Yes Yes Yes
CLOSEALL Yes Yes Yes Yes Yes Yes Yes
BREAKEVEN Yes Yes Yes Yes Yes Yes Yes
CANCEL Yes Yes Yes Yes Yes Yes Yes
LAYER_CLOSE Yes Yes Yes Yes No Yes Yes

TPSLTYPE by Platform

TPSLTYPE Forex Platforms Futures Platforms
PRICE (default) Yes Yes
PIPS Yes No
TICKS No Yes
BALANCE Yes No
PERCENTAGE Yes No