trendspider-page">

How to Use AlgoWay with TrendSpider

1) What TrendSpider Sends

TrendSpider sends webhooks as HTTP POST requests. For standard alerts, the message body is the text you place in the alert message / note field. If that text is valid JSON, it is sent as JSON.

For Trading Bots, TrendSpider provides separate Entry Webhook and Exit Webhook URLs and bodies.

2) TrendSpider Placeholders

Standard Alerts (Dynamic / Multi-Factor)

%alert_name% %alert_symbol% %alert_note% %price_action_event% %last_price%

Trading Bots (Entry / Exit Webhook Body)

%bot_name% %bot_symbol% %bot_timeframe% %bot_status% %last_price%

3) AlgoWay JSON Rules (Current Schema)
Field Required Description
platform_name Yes Target execution platform router value (for example metatrader5, tradelocker, matchtrader).
ticker Yes Symbol / instrument name.
order_action Yes buy, sell, or flat.
order_contracts Yes for buy/sell Position size for entry orders.
price No Optional tracking price from TrendSpider.
comment No Optional label (alert/bot name) for logs and debugging.
4) Supported platform_name Values (Most Used)
Platform platform_name
MetaTrader 5metatrader5
TradeLockertradelocker
Match-Tradermatchtrader
cTrader FIXctrader
cTrader Open APIctrader-oapi
DXtradedxtrade
Capital.comcapitalcom
Alpacaalpaca
Tradovatetradovate
ProjectXprojectx
Binancebinance
OKXokx
Bybitbybit
BitMEXbitmex
BitGetbitget
BitMartbitmart
BingXbingx
HyperLiquidhyperliquid
Krakenkraken
KuCoinkucoin
5) TrendSpider Standard Alerts → AlgoWay (Ready JSON Templates)

BUY Alert JSON

{
  "platform_name": "metatrader5",
  "ticker": "%alert_symbol%",
  "order_contracts": 1,
  "order_action": "buy",
  "price": "%last_price%",
  "comment": "TS:%alert_name%"
}

SELL Alert JSON

{
  "platform_name": "metatrader5",
  "ticker": "%alert_symbol%",
  "order_contracts": 1,
  "order_action": "sell",
  "price": "%last_price%",
  "comment": "TS:%alert_name%"
}

FLAT / Close Alert JSON

{
  "platform_name": "metatrader5",
  "ticker": "%alert_symbol%",
  "order_action": "flat",
  "comment": "TS_EXIT:%alert_name%"
}
6) TrendSpider Trading Bots → AlgoWay (Entry / Exit Webhook Body)

Entry Webhook Body

{
  "platform_name": "metatrader5",
  "ticker": "%bot_symbol%",
  "order_contracts": 1,
  "order_action": "buy",
  "price": "%last_price%",
  "comment": "TSBOT:%bot_name%"
}

Exit Webhook Body

{
  "platform_name": "metatrader5",
  "ticker": "%bot_symbol%",
  "order_action": "flat",
  "comment": "TSBOT_EXIT:%bot_name%"
}

Fallback (if your bot setup does not provide a symbol variable)

{
  "platform_name": "metatrader5",
  "ticker": "AAPL",
  "order_contracts": 1,
  "order_action": "buy",
  "price": "%last_price%",
  "comment": "TSBOT:%bot_name%"
}
7) Optional Advanced Fields (AlgoWay)

You can add SL/TP and trailing stop fields to the same JSON.

Entry with SL/TP (absolute prices)

{
  "platform_name": "metatrader5",
  "ticker": "%alert_symbol%",
  "order_contracts": 1,
  "order_action": "buy",
  "price": "%last_price%",
  "sl_price": 192.50,
  "tp_price": 198.00,
  "comment": "TS:%alert_name%"
}

Entry with Trailing Stop

{
  "platform_name": "metatrader5",
  "ticker": "%alert_symbol%",
  "order_contracts": 1,
  "order_action": "buy",
  "price": "%last_price%",
  "trailing_pips": 20,
  "comment": "TS:%alert_name%"
}
8) Setup Steps (Quick)
  1. Create a webhook in your AlgoWay dashboard and copy the webhook URL.
  2. In TrendSpider, create an Alert or Trading Bot.
  3. Paste your AlgoWay webhook URL into the Webhook URL field.
  4. Paste one of the JSON templates from this page into the webhook message/body field.
  5. Test with order_contracts: 1 first.
9) Troubleshooting
  • Make sure the webhook body is valid JSON (no trailing commas).
  • Check that platform_name is exact.
  • For BUY/SELL entries, include order_contracts in the current schema.
  • Use comment field to tag alerts and see them clearly in AlgoWay logs.
  • If a Trading Bot does not pass a symbol variable, use a fixed ticker for testing.