Search documentation

Search every page of the Trade Wzrd docs

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:

text
BUY,EURUSD,VOL=0.01,SL=100EURUSD,BUY,VOL=0.01,SL=100VOL=0.01,BUY,EURUSD,SL=100

Signal Format

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

text
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=TICKS

SELL

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

text
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=TICKS

Pending Orders

BUYLIMIT

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

text
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=PIPS

SELLLIMIT

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

text
SELLLIMIT,EURUSD,VOL=0.1,PRICE=1.1200,SL=1.1250,TP=1.1100

BUYSTOP

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

text
BUYSTOP,XAUUSD,VOL=0.1,PRICE=2050.00,SL=2040,TP=2070,TPSLTYPE=PIPS

SELLSTOP

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

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

text
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=TICKS

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

text
REMOVE_SL,ESREMOVE_SL,ES,TICKET=12345

REMOVE_TP

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

text
REMOVE_TP,ESREMOVE_TP,ES,TICKET=12345

To remove both SL and TP:

text
REMOVE_SL,ES;REMOVE_TP,ES

Modify

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,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:

ParametersBehavior
NoneFull close - closes all trades for the symbol
PERCENT=50Partial close - closes 50% of the position
PERCENT=100Full close - equivalent to no parameter
VOL=0.03Layer close - closes trades to match 0.03 lots total
text
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.

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

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

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

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.

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

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:

text
CLOSE,BUY,EURUSD        - closes only BUY positions on EURUSDBREAKEVEN,SELL,EURUSD   - moves SL to breakeven only on SELL positionsLAYER_CLOSE,BUY,EURUSD,VOL=0.05

Multi-Command Signals

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

text
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,ES

Complete Parameter Reference

ParameterDescriptionExample
VOL / VOLUMELot sizeVOL=0.01
RISKRisk percentage of account balanceRISK=2
SLStop loss (price, pips, or ticks based on TPSLTYPE)SL=100 or SL=1.0850
TPTake profit (price, pips, or ticks based on TPSLTYPE)TP=200 or TP=1.0950
TPSLTYPEHow SL/TP values are interpreted. Default is PRICE. Options: PRICE, PIPS, TICKS, BALANCE, PERCENTAGETPSLTYPE=PIPS or TPSLTYPE=TICKS
MAGICMagic number for trade identification (forex only)MAGIC=12345
COMMENTTrade comment (forex only)COMMENT=Scalp
PRICEEntry price for pending ordersPRICE=1.0800
PERCENTPercentage to close (CLOSE command)PERCENT=50
TICKETSpecific ticket numberTICKET=12345
OFFSETPrice offset for breakeven (or tick offset on futures)OFFSET=0.0010 or OFFSET=4
SIDEDirection filter: BUY or SELLSIDE=BUY
POSITIVECLOSEALL: only close profitable positionsPOSITIVE=true
NEGATIVECLOSEALL: only close losing positionsNEGATIVE=true
PENDINGCLOSEALL: only close pending ordersPENDING=true
POSITIONSCLOSEALL: only close open positionsPOSITIONS=true

TPSLTYPE Parameter

Controls how SL and TP values are interpreted:

ValueBehaviorPlatforms
PRICESL/TP are absolute price values (default)All
PIPSSL/TP are pip distances from entry priceForex (MT4, MT5, TradeLocker, cTrader, DXTrade)
TICKSSL/TP are tick distances from entry priceFutures (Tradovate, NinjaTrader, Rithmic)
BALANCESL/TP are balance amountsForex only
PERCENTAGESL/TP are percentage-basedForex only

Examples by Platform

Forex (pips):

text
BUY,EURUSD,VOL=0.01,SL=100,TP=200,TPSLTYPE=PIPS

Forex (price):

text
BUY,EURUSD,VOL=0.01,SL=1.0750,TP=1.0950

Futures (ticks):

text
BUY,ES,VOL=2,SL=4,TP=10,TPSLTYPE=TICKSBRACKET,NQ,VOL=1,SL=8,TP=20,TPSLTYPE=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

FeatureForex (MT4/MT5/TradeLocker/cTrader/DXTrade)Futures (Tradovate/NinjaTrader/Rithmic)
SL/TPOrder fields on the positionSeparate bracket orders (OSO)
TPSLTYPEPRICE, PIPS, BALANCE, PERCENTAGEPRICE, TICKS
MAGIC/COMMENTSupportedNot supported
BRACKET commandWorks like BUY/SELLOpens with bracket orders attached
REMOVE_SL/REMOVE_TPNot applicableCancels individual bracket orders
Full closeCloses positionCloses position + auto-cancels brackets
Pending ordersSupportedSupported in terminal, not yet in automation signals