This document defines required and optional fields used in AlgoWay webhook alerts. The schema ensures consistent interpretation of TradingView and external integrations.
metatrader5,
dxtrade,
matchtrader,
binance,
bybit,
capitalcom,
bitget,
okx.
EURUSD, BTCUSDT, or XAUUSD. Defines the market instrument. Always mandatory.buy, sell, flat, breakeven, modify.
Normalization rules:
long → buyshort → sellclose → flatqty, Q, risk, or volume.
order_action=modify — updates an existing open position or order without opening a new trade.
Typically used to change stop_loss, take_profit, sl_price, or tp_price.
On platforms that support identification, it may be used together with comment or another position reference.
order_action=breakeven — moves the stop loss of an existing open position to the entry price.
It is a position management action and does not open a new trade.
stop_loss.1.0845 or any value > 1000).trailstep or TS.order_action=flat to specify which side must be closed. Allowed values: long or short. If omitted, the platform handler may close all matching positions on the symbol.
All optional fields are omitted if not provided. Empty strings are converted to null and ignored.
Any value that cannot be parsed as a number in numeric fields triggers a validation failure.
trailing_pipstrailing_pips with order.trailing_pips{
"platform_name": "binance",
"order_action": "buy",
"ticker": "BTCUSDT.P",
"order_contracts": "0.10",
"stop_loss": "150",
"take_profit": "300"
}
{
"platform_name": "tradelocker",
"order_action": "sell",
"ticker": "XAUUSD",
"order_contracts": "0.05",
"sl_price": "2055.50",
"tp_price": "2038.00"
}
{
"platform_name": "metatrader5",
"order_action": "buy",
"ticker": "GBPUSD",
"order_contracts": "0.10",
"stop_loss": "120",
"trailing_pips": "80"
}
{
"platform_name": "matchtrader",
"order_action": "flat",
"ticker": "EURUSD",
"order_contracts": "0.10",
"close_side": "long"
}
{
"platform_name": "ctrader",
"order_action": "long",
"ticker": "USDJPY",
"order_contracts": "0.10",
"stop_loss": "100"
}
{
"platform_name": "okx",
"order_action": "modify",
"ticker": "ETHUSDT",
"comment": "TV#12345",
"stop_loss": "140",
"take_profit": "280"
}
{
"platform_name": "metatrader5",
"order_action": "breakeven",
"ticker": "GBPUSD",
"order_contracts": "0.10"
}
{
"platform_name": "metatrader5",
"order_action": "flat",
"ticker": "EURUSD",
"order_contracts": "0.10",
"close_side": "short"
}
Summary: only crypto and CFD connectors
(binance, bybit, bitget, capitalcom, dxtrade, matchtrader)
process trailing_pips. Others either delegate trailing to EA or safely ignore the field.