Webhook Setup for ATP Premium Indicator Bot

How to Configure Webhook Messages for ATP Premium Indicator Testing Bot

The ATP Premium Indicator Testing Bot can automate your trades in MetaTrader 5 via AlgoWay Connector. To make it work, you need to set the correct JSON webhook messages inside TradingView alerts. Below is a step-by-step guide with ready-to-use templates.

🔹 Long 1st Position
{
  "platform_name": "metatrader5",
  "ticker": "{{ticker}}",
  "order_id": "Long Entry 1",
  "order_action": "buy",
  "order_contracts": "X",
  "stop_loss": "SL",
  "take_profit": "TP"
}
{
  "platform_name": "metatrader5",
  "ticker": "{{ticker}}",
  "order_id": "Long Entry 1",
  "order_action": "flat",
  "order_contracts": "X"
}
🔹 Long 2nd Position
{
  "platform_name": "metatrader5",
  "ticker": "{{ticker}}",
  "order_id": "Long Entry 2",
  "order_action": "buy",
  "order_contracts": "Y",
  "stop_loss": "SL",
  "take_profit": "TP"
}
{
  "platform_name": "metatrader5",
  "ticker": "{{ticker}}",
  "order_id": "Long Entry 2",
  "order_action": "buy",
  "order_contracts": "Y",
  "trailing_pips": "TRAIL"
}
{
  "platform_name": "metatrader5",
  "ticker": "{{ticker}}",
  "order_id": "Long Entry 2",
  "order_action": "flat",
  "order_contracts": "Y"
}
🔹 Short 1st Position
{
  "platform_name": "metatrader5",
  "ticker": "{{ticker}}",
  "order_id": "Short Entry 1",
  "order_action": "sell",
  "order_contracts": "X",
  "stop_loss": "SL",
  "take_profit": "TP"
}
{
  "platform_name": "metatrader5",
  "ticker": "{{ticker}}",
  "order_id": "Short Entry 1",
  "order_action": "flat",
  "order_contracts": "X"
}
🔹 Short 2nd Position
{
  "platform_name": "metatrader5",
  "ticker": "{{ticker}}",
  "order_id": "Short Entry 2",
  "order_action": "sell",
  "order_contracts": "Y",
  "stop_loss": "SL",
  "take_profit": "TP"
}
{
  "platform_name": "metatrader5",
  "ticker": "{{ticker}}",
  "order_id": "Short Entry 2",
  "order_action": "sell",
  "order_contracts": "Y",
  "trailing_pips": "TRAIL"
}
{
  "platform_name": "metatrader5",
  "ticker": "{{ticker}}",
  "order_id": "Short Entry 2",
  "order_action": "flat",
  "order_contracts": "Y"
}
⚙️ Setup Tips
  • Always match order_id between entry and exit.
  • X = first part of position, Y = second part.
  • Use trailing stop only in 2 TPS mode.
  • Each TradingView alert must contain only one JSON block.