Reference
Signal Syntax
Complete reference for the Trade Wzrd signal format - all actions, parameters, flexible ordering, and multi-command support.
Trade Wzrd parses plain-text commands into structured trading signals. The format is fully flexible - command, symbol, and parameters can appear in any order.
General Format
COMMAND,SYMBOL,PARAM=VALUE,PARAM=VALUE,...Parts are separated by commas. Parameters use KEY=VALUE format. The parser identifies the command and symbol automatically regardless of their position.
Flexible Ordering Examples
All of these are equivalent:
BUY,EURUSD,VOL=0.01,SL=100,TP=200EURUSD,BUY,VOL=0.01,SL=100,TP=200VOL=0.01,BUY,EURUSD,SL=100,TP=200SL=100,VOL=0.01,EURUSD,BUYActions
Open Commands
| Action | Description |
|---|---|
BUY | Open buy market order |
SELL | Open sell market order |
BUYLIMIT | Place buy limit order (requires PRICE) - automation not yet on futures |
SELLLIMIT | Place sell limit order (requires PRICE) - automation not yet on futures |
BUYSTOP | Place buy stop order (requires PRICE) - automation not yet on futures |
SELLSTOP | Place sell stop order (requires PRICE) - automation not yet on futures |
BRACKET | Open position with SL+TP as bracket orders (futures: OSO, forex: like BUY/SELL) |
Bracket Management (Futures: Tradovate/NinjaTrader/Rithmic)
| Action | Description |
|---|---|
REMOVE_SL | Remove the SL bracket order from a position |
REMOVE_TP | Remove the TP bracket order from a position |
Management Commands
| Action | Aliases |
|---|---|
MODIFY | MODIFYORDER |
CLOSE | CLOSEORDER |
CLOSEALL | CLOSEALLORDERS |
BREAKEVEN | BE |
CANCEL | CANCELORDER, DELETE, DELETEORDER |
LAYER_CLOSE | LAYERCLOSE, LAYER |
Parameters
| Parameter | Description | Example | Required For |
|---|---|---|---|
VOL or VOLUME | Lot size | VOL=0.1 | Open orders (or use RISK) |
RISK | Risk % of balance | RISK=1 | Open orders (or use VOL) |
SL | Stop Loss | SL=50 (pips) or SL=1.0800 (price) | Optional |
TP | Take Profit | TP=100 (pips) or TP=1.0950 (price) | Optional |
TPSLTYPE | Interpret SL/TP as pips, ticks, or price | TPSLTYPE=PIPS, TPSLTYPE=TICKS, or TPSLTYPE=PRICE | Optional (default: PRICE) |
PRICE | Entry price | PRICE=1.0800 | Pending orders |
MAGIC | Magic number | MAGIC=12345 | Optional |
COMMENT | Order comment | COMMENT=Strategy1 | Optional |
TICKET | Ticket number | TICKET=12345 | MODIFY, CLOSE, BREAKEVEN, CANCEL |
PERCENT | Percentage to close | PERCENT=50 | Partial close (CLOSE action) |
SIDE or DIRECTION | Direction filter | SIDE=BUY | CLOSE, BREAKEVEN, CANCEL, LAYER_CLOSE |
OFFSET | Breakeven offset | OFFSET=0.0010 | BREAKEVEN |
POSITIVE | Close only profitable trades | POSITIVE=true | CLOSEALL |
NEGATIVE | Close only losing trades | NEGATIVE=true | CLOSEALL |
PENDING | Close only pending orders | PENDING=true | CLOSEALL |
POSITIONS | Close only open positions | POSITIONS=true | CLOSEALL |
Default Behaviors
- TPSLTYPE defaults to
PRICE- if you want to use pip values for SL/TP, explicitly setTPSLTYPE=PIPS(forex) orTPSLTYPE=TICKS(futures) - VOL or RISK is required for all open commands - at least one must be provided
- PRICE is required for pending orders (BUYLIMIT, SELLLIMIT, BUYSTOP, SELLSTOP)
Action Details
Open (BUY / SELL)
Requires at least one of VOL/VOLUME or RISK. If both are provided, both are used.
BUY,EURUSD,VOL=0.01,SL=100,TP=200,TPSLTYPE=PIPSSELL,GBPUSD,RISK=2,SL=1.2500,TP=1.2300BUYLIMIT,EURUSD,VOL=0.1,PRICE=1.0800,SL=50,TP=100BRACKET,ES,VOL=2,SL=4,TP=10,TPSLTYPE=TICKSMODIFY
Requires at least one of SL or TP. Use TICKET to target a specific position, or MAGIC to target positions with a specific magic number.
MODIFY,EURUSD,SL=1.0850,TICKET=12345MODIFY,EURUSD,SL=60,TP=120,TPSLTYPE=PIPSMODIFY,EURUSD,MAGIC=12345,TP=1.1000CLOSE
Closes positions matching the symbol. Behavior depends on additional parameters:
- No extra params - full close of all positions on the symbol
TICKET=12345- close specific positionMAGIC=12345- close positions with that magic numberPERCENT=50- partial close (50% of position)PERCENT=100- full close (equivalent to no percent)VOL=0.05- close by volume (mapped toLAYER_CLOSEaction)SIDE=BUY- close only buy positions (orSELLfor sell only)
CLOSE,EURUSDCLOSE,EURUSD,TICKET=12345CLOSE,EURUSD,PERCENT=50CLOSE,EURUSD,VOL=0.05CLOSE,EURUSD,SIDE=BUYCLOSEALL
Closes all positions on the symbol with optional filters:
CLOSEALL,EURUSDCLOSEALL,EURUSD,POSITIVE=trueCLOSEALL,EURUSD,NEGATIVE=trueCLOSEALL,EURUSD,PENDING=trueCLOSEALL,EURUSD,POSITIONS=trueBREAKEVEN
Moves stop loss to the entry price with an optional offset:
BREAKEVEN,EURUSDBREAKEVEN,EURUSD,OFFSET=0.0010BREAKEVEN,EURUSD,TICKET=12345,OFFSET=0.0010BE,EURUSD,SIDE=BUYCANCEL
Cancels pending orders. Accepts TICKET, MAGIC, and SIDE/DIRECTION filter:
CANCEL,EURUSD,TICKET=67890CANCEL,EURUSD,MAGIC=12345DELETE,EURUSD,SIDE=BUYLAYER_CLOSE
Closes multiple trades to match a target volume. Requires VOL/VOLUME (must be > 0):
LAYER_CLOSE,EURUSD,VOL=0.05LAYERCLOSE,EURUSD,VOL=0.1,SIDE=BUYLAYER,EURUSD,VOL=0.03BRACKET
Open a position with SL+TP as bracket orders (OSO). On forex, behaves like BUY/SELL with SL/TP. On futures (Tradovate/NinjaTrader/Rithmic), SL/TP are placed as separate bracket orders:
BRACKET,ES,VOL=2,SL=4,TP=10,TPSLTYPE=TICKSBRACKET,NQ,VOL=1,SL=8,TP=20,TPSLTYPE=TICKSREMOVE_SL / REMOVE_TP
Remove individual bracket orders from a futures position (Tradovate/NinjaTrader/Rithmic only):
REMOVE_SL,ESREMOVE_TP,ESREMOVE_SL,ES;REMOVE_TP,ESMulti-Command Signals
Use semicolons to send multiple commands in a single webhook call:
CLOSE,XAUUSD;BUY,EURUSD,VOL=0.01,SL=100,TP=200CLOSE,XAUUSD;SELL,EURUSD,VOL=0.01Each command is parsed and executed independently. Empty segments (from ;;) are ignored. If any command fails, the error message includes the command index.
Symbol Matching
When a signal symbol doesn't exactly match your broker's symbol, Trade Wzrd attempts to find the closest match using this priority:
- Exact match (case-insensitive) -
BTCUSDmatchesbtcusd - Prefix match -
BTCUSDmatchesBTCUSDm(shortest match wins) - Reverse prefix -
BTCUSDmmatchesBTCUSD - Contains -
BTCUSDmatchesXBTCUSD
If no match is found, the signal fails with a symbol not found error.
Common Errors
| Error | Cause | Fix |
|---|---|---|
| "No command found" | Missing action keyword | Add BUY, SELL, CLOSE, etc. |
| "No symbol found" | Missing symbol | Add symbol: EURUSD, XAUUSD, etc. |
| "Multiple commands found" | Two actions in one signal | Use semicolons for multi-command |
| "Multiple symbols found" | Two symbols in one signal | Only one symbol per command |
| "Volume or RISK is required" | Open order without sizing | Add VOL=0.1 or RISK=1 |
| "At least one of SL or TP is required" | MODIFY without changes | Add SL= or TP= |
| "Invalid percent" | PERCENT not in 0-100 range | Use value between 1 and 99 for partial |
| "VOL is required for LAYER_CLOSE" | Layer close without volume | Add VOL=0.05 |
| "Invalid VOL" | VOL is zero or negative | Use a positive value |







