Search documentation

Search every page of the Trade Wzrd docs

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

text
BUY,EURUSD,VOL=0.01,SL=100,TP=200,TPSLTYPE=PIPSBUY,XAUUSD,VOL=0.1,SL=2050,TP=1980BUY,ES,VOL=2,SL=4,TP=10,TPSLTYPE=TICKSBUY,BTCUSD,RISK=1,SL=500

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


SELL

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

text
SELL,EURUSD,VOL=0.01,SL=100,TP=200,TPSLTYPE=PIPSSELL,GBPUSD,VOL=0.05,SL=1.2500,TP=1.2300SELL,NQ,VOL=1,SL=8,TP=20,TPSLTYPE=TICKS

Pending Order Actions

BUYLIMIT / SELLLIMIT / BUYSTOP / SELLSTOP

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

ActionDirectionOrder Type
BUYLIMITBuyLimit (buy at price or lower)
SELLLIMITSellLimit (sell at price or higher)
BUYSTOPBuyStop (buy when price rises to level)
SELLSTOPSellStop (sell when price falls to level)
text
BUYLIMIT,EURUSD,VOL=0.1,PRICE=1.0800,SL=1.0750,TP=1.0900SELLLIMIT,EURUSD,VOL=0.1,PRICE=1.1200,SL=1.1250,TP=1.1100BUYSTOP,XAUUSD,VOL=0.1,PRICE=2050.00,SL=2040,TP=2070,TPSLTYPE=PIPSSELLSTOP,XAUUSD,VOL=0.1,PRICE=2000.00,SL=2010,TP=1980,TPSLTYPE=PIPS

> Note: Pending order signals (BUYLIMIT, SELLLIMIT, BUYSTOP, SELLSTOP) are not yet supported on any futures platform (Tradovate, NinjaTrader, Rithmic) 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/Rithmic), 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)

text
BRACKET,ES,VOL=2,SL=4,TP=10,TPSLTYPE=TICKSBRACKET,NQ,VOL=1,SL=8,TP=20,TPSLTYPE=TICKSBRACKET,MES,VOL=4,SL=4,TP=12,TPSLTYPE=TICKSBRACKET,ES,RISK=1,SL=6,TP=15,TPSLTYPE=TICKS

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/Rithmic only.

text
REMOVE_SL,ESREMOVE_SL,ES,TICKET=12345

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/Rithmic only.

text
REMOVE_TP,ESREMOVE_TP,ES,TICKET=12345

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:

text
REMOVE_SL,ES;REMOVE_TP,ES

Modify Actions

MODIFY

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

text
MODIFY,EURUSD,SL=1.0850,TP=1.0950MODIFY,EURUSD,SL=50,TP=100,TPSLTYPE=PIPS,TICKET=12345MODIFY,EURUSD,MAGIC=12345,TP=1.1000MODIFY,ES,SL=6,TP=15,TPSLTYPE=TICKS

Futures: On Tradovate/NinjaTrader/Rithmic, 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:

ParametersBehavior
NoneFull close of all trades for the symbol
TICKET=12345Close a specific position
PERCENT=50Partial close (50% of position)
PERCENT=100Full close (same as no parameter)
VOL=0.05Layer close (mapped to LAYER_CLOSE)
SIDE=BUYClose only buy positions
text
CLOSE,EURUSDCLOSE,EURUSD,TICKET=12345CLOSE,EURUSD,PERCENT=50CLOSE,EURUSD,VOL=0.05CLOSE,EURUSD,SIDE=BUYCLOSE,ESCLOSE,ES,PERCENT=50

Futures: On Tradovate/NinjaTrader/Rithmic:

  • 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.

text
CLOSEALL,XAUUSDCLOSEALL,XAUUSD,POSITIVE=trueCLOSEALL,XAUUSD,NEGATIVE=trueCLOSEALL,XAUUSD,PENDING=trueCLOSEALL,XAUUSD,POSITIONS=true

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

FilterDescription
POSITIVE=trueOnly close profitable positions
NEGATIVE=trueOnly close losing positions
PENDING=trueOnly close pending orders
POSITIONS=trueOnly close open positions

Aliases: CLOSEALLORDERS


LAYER_CLOSE

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

text
LAYER_CLOSE,EURUSD,VOL=0.05LAYER_CLOSE,EURUSD,VOL=0.03,SIDE=BUYLAYER_CLOSE,ES,VOL=1

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).

text
BREAKEVEN,EURUSDBREAKEVEN,EURUSD,OFFSET=0.0010BREAKEVEN,EURUSD,TICKET=12345,OFFSET=0.0005BREAKEVEN,ES,OFFSET=4,TPSLTYPE=TICKS

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.

text
CANCEL,EURUSDCANCEL,EURUSD,TICKET=12345CANCEL,EURUSD,SIDE=BUY

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

Aliases: CANCELORDER, DELETE, DELETEORDER


Platform Compatibility Matrix

ActionMT4MT5TradeLockercTraderDXTradeTradovateNinjaTrader
BUYYesYesYesYesYesYesYes
SELLYesYesYesYesYesYesYes
BUYLIMITYesYesYesYesYesTerminal onlyTerminal only
SELLLIMITYesYesYesYesYesTerminal onlyTerminal only
BUYSTOPYesYesYesYesYesTerminal onlyTerminal only
SELLSTOPYesYesYesYesYesTerminal onlyTerminal only
BRACKETYesYesYesYesYesYesYes
REMOVE_SLN/AN/AN/AN/AN/AYesYes
REMOVE_TPN/AN/AN/AN/AN/AYesYes
MODIFYYesYesYesYesYesYesYes
CLOSEYesYesYesYesYesYesYes
CLOSEALLYesYesYesYesYesYesYes
BREAKEVENYesYesYesYesYesYesYes
CANCELYesYesYesYesYesYesYes
LAYER_CLOSEYesYesYesYesNoYesYes

TPSLTYPE by Platform

TPSLTYPEForex PlatformsFutures Platforms
PRICE (default)YesYes
PIPSYesNo
TICKSNoYes
BALANCEYesNo
PERCENTAGEYesNo