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:
BUY,EURUSD,VOL=0.01,SL=100EURUSD,BUY,VOL=0.01,SL=100VOL=0.01,BUY,EURUSD,SL=100Signal Format
COMMAND,SYMBOL,PARAM=VALUE,PARAM=VALUE,...- 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.
BUY,EURUSD,VOL=0.01,SL=100,TP=200,TPSLTYPE=PIPSBUY,BTCUSD,RISK=1,SL=500BUY,GBPUSD,VOL=0.05,SL=1.2500,TP=1.2800,MAGIC=12345,COMMENT=ScalpBUY,ES,VOL=2,SL=4,TP=10,TPSLTYPE=TICKSSELL
Open a short position at market price. Same parameters as BUY.
SELL,EURUSD,VOL=0.01,SL=100,TP=200,TPSLTYPE=PIPSSELL,XAUUSD,VOL=0.1,SL=2050,TP=1980SELL,NQ,VOL=1,SL=8,TP=20,TPSLTYPE=TICKSPending Orders
BUYLIMIT
Place a buy limit pending order. Requires the PRICE parameter.
BUYLIMIT,EURUSD,VOL=0.1,PRICE=1.0800,SL=1.0750,TP=1.0900BUYLIMIT,EURUSD,VOL=0.01,PRICE=1.0800,SL=50,TP=100,TPSLTYPE=PIPSSELLLIMIT
Place a sell limit pending order. Same parameters as BUYLIMIT.
SELLLIMIT,EURUSD,VOL=0.1,PRICE=1.1200,SL=1.1250,TP=1.1100BUYSTOP
Place a buy stop pending order. Same parameters as BUYLIMIT.
BUYSTOP,XAUUSD,VOL=0.1,PRICE=2050.00,SL=2040,TP=2070,TPSLTYPE=PIPSSELLSTOP
Place a sell stop pending order. Same parameters as BUYLIMIT.
SELLSTOP,XAUUSD,VOL=0.1,PRICE=2000.00,SL=2010,TP=1980,TPSLTYPE=PIPS> Automation Note: Pending order signals (BUYLIMIT, SELLLIMIT, BUYSTOP, SELLSTOP) are not yet supported on Tradovate/NinjaTrader/Rithmic. 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/Rithmic) where SL/TP are separate orders. On forex platforms, this behaves like a normal BUY/SELL with SL/TP.
BRACKET,ES,VOL=2,SL=4,TP=10,TPSLTYPE=TICKSBRACKET,NQ,VOL=1,SL=8,TP=20,TPSLTYPE=TICKSBRACKET,ES,RISK=1,SL=6,TP=15,TPSLTYPE=TICKSWhen 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/Rithmic).
REMOVE_SL,ESREMOVE_SL,ES,TICKET=12345REMOVE_TP
Remove the take profit bracket order from a position. Futures platforms only (Tradovate/NinjaTrader/Rithmic).
REMOVE_TP,ESREMOVE_TP,ES,TICKET=12345To remove both SL and TP:
REMOVE_SL,ES;REMOVE_TP,ESModify
MODIFY
Update stop loss and/or take profit on an existing trade. At least one of SL or TP is required.
MODIFY,EURUSD,SL=1.0850,TP=1.0950MODIFY,EURUSD,SL=50,TP=100,TPSLTYPE=PIPS,TICKET=12345MODIFY,ES,SL=6,TP=15,TPSLTYPE=TICKS> Futures Note: On Tradovate/NinjaTrader/Rithmic, 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 |
CLOSE,EURUSDCLOSE,EURUSD,PERCENT=50CLOSE,EURUSD,PERCENT=100CLOSE,EURUSD,VOL=0.03CLOSE,EURUSD,TICKET=12345CLOSE,EURUSD,SIDE=BUYCLOSE,ESCLOSE,ES,PERCENT=50> Futures Note: On Tradovate/NinjaTrader/Rithmic, 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.
CLOSEALL,XAUUSDCLOSEALL,XAUUSD,POSITIVE=trueCLOSEALL,XAUUSD,NEGATIVE=trueCLOSEALL,XAUUSD,PENDING=trueCLOSEALL,XAUUSD,POSITIONS=true> Futures Note: On Tradovate/NinjaTrader/Rithmic, 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).
BREAKEVEN,EURUSDBREAKEVEN,EURUSD,OFFSET=0.0010BREAKEVEN,EURUSD,OFFSET=0.0005,SIDE=BUYBREAKEVEN,EURUSD,TICKET=12345BREAKEVEN,ES,OFFSET=4,TPSLTYPE=TICKS> Futures Note: On Tradovate/NinjaTrader/Rithmic, 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.
CANCEL,EURUSDCANCEL,EURUSD,TICKET=12345CANCEL,EURUSD,SIDE=BUYAliases: 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.
LAYER_CLOSE,EURUSD,VOL=0.05LAYER_CLOSE,EURUSD,VOL=0.03,SIDE=BUYLAYER_CLOSE,ES,VOL=1Aliases: 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:
CLOSE,BUY,EURUSD - closes only BUY positions on EURUSDBREAKEVEN,SELL,EURUSD - moves SL to breakeven only on SELL positionsLAYER_CLOSE,BUY,EURUSD,VOL=0.05Multi-Command Signals
Separate multiple commands with semicolons. Each command is parsed independently:
CLOSE,XAUUSD;BUY,EURUSD,VOL=0.01,SL=100,TP=200CLOSE,EURUSD;SELL,EURUSD,VOL=0.01BUY,EURUSD,VOL=0.01,SL=100;BUY,GBPUSD,VOL=0.02,SL=50REMOVE_SL,ES;REMOVE_TP,ESComplete 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, Rithmic) |
BALANCE | SL/TP are balance amounts | Forex only |
PERCENTAGE | SL/TP are percentage-based | Forex only |
Examples by Platform
Forex (pips):
BUY,EURUSD,VOL=0.01,SL=100,TP=200,TPSLTYPE=PIPSForex (price):
BUY,EURUSD,VOL=0.01,SL=1.0750,TP=1.0950Futures (ticks):
BUY,ES,VOL=2,SL=4,TP=10,TPSLTYPE=TICKSBRACKET,NQ,VOL=1,SL=8,TP=20,TPSLTYPE=TICKSTick conversion example (ES): If ES is at 5800.00 and tick size is 0.25:
SL=4ticks = 4 × 0.25 = 1.00 point → SL at 5799.00TP=10ticks = 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/Rithmic) |
|---|---|---|
| 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 |







