AlgoWay supports powerful automation through webhook requests.
Beyond basic buy
, sell
, and flat
commands,
you can now use dynamic Stop Loss, Take Profit,
Trailing Stop, directional closing, and
price tracking fields.
A critical part of AlgoWay's flexibility is platform routing — alerts must specify the target platform using the platform_name
field.
Platform | platform_name value |
---|---|
MetaTrader 5 | metatrader5 |
TradeLocker | tradelocker |
Match-Trader | matchtrader |
cTrader | ctrader |
DXtrade | dxtrade |
Capital.com | capitalcom |
OKX | okx |
Binance | binance |
MEXC | mexc |
BitMEX | bitmex |
Bybit | bybit |
⚠️ The platform_name must match exactly. Otherwise, the alert will not be processed.
For other platforms, change the platform_name
value as described above.
{
"platform_name": "metatrader5",
"ticker": " {{ticker}}",
"order_contracts": " {{strategy.order.contracts}}",
"order_action": " {{strategy.market_position}}"
}
{
"platform_name": "metatrader5",
"ticker": "XRPUSD.P",
"order_contracts": 1.0,
"order_action": "buy",
"sl_price": 2.7500,
"tp_price": 2.8000
}
{
"platform_name": "metatrader5",
"ticker": "BTCUSD",
"order_contracts": 1.0,
"order_action": "sell",
"stop_loss": 50,
"take_profit": 100
}
🔺 If both are specified, sl_price
and tp_price
take precedence over offset-based SL/TP.
As of AlgoWay-MT5 v1.62, trailing stops are supported. Enable this in the EA settings and pass trailing_step
in your JSON:
{
"platform_name": "metatrader5",
"ticker": "ETHUSD",
"order_action": "buy",
"order_contracts": 1.0,
"trailing_step": 20
}
To close a position, set "order_action": "flat"
. In hedge mode, you can also specify a direction using close_side
.
{
"platform_name": "metatrader5",
"ticker": "EURUSD",
"order_action": "flat",
"order_contracts": 2.0
}
{
"platform_name": "metatrader5",
"ticker": "BTCUSD",
"order_action": "flat",
"order_contracts": 1.5,
"close_side": "buy"
}
{
"platform_name": "metatrader5",
"ticker": "USDCAD",
"order_action": "flat",
"order_contracts": 1.0,
"close_side": "sell",
"sl_price": 1.3550,
"tp_price": 1.3400
}
To capture the entry price from TradingView, use the price
field:
{
"platform_name": "metatrader5",
"ticker": "{{ticker}}",
"order_contracts": "{{strategy.order.contracts}}",
"order_action": "{{strategy.market_position}}",
"price": "{{close}}"
}
This is useful for backtesting and audit purposes.
Function | JSON Fields |
---|---|
Base Strategy | order_action, order_contracts |
SL/TP (absolute) | sl_price, tp_price |
SL/TP (offset) | stop_loss, take_profit |
Trailing Stop | trailing_step |
Position Closure | order_action: "flat", close_side |
Price Tracking | price |