Skip to content
Auto
English

How to Automate Your Trades with TradingView Alerts on Formion 📈🔔

Automate TradingView alerts with Formion

Connect a TradingView alert to your own exchange and let Formion execute the trade for you — on CEX and DEX. You create a TradingView Bot, copy its webhook URL and alert messages, and paste them into a TradingView alert. When the alert fires, Formion places the order on your connected account.

The whole setup in 17 seconds: connect → create bot → copy webhook → TradingView alert → activate (demo values).

First connect the account you want to trade on (one-time):

  • Go to formion.ai → Profile → Connections.
  • Under Exchanges (CEX) or the DEX cards, link your account with API keys / signing key. See How to Start — API Connection.
  • Supported today: CEX — Binance, Bybit, KuCoin, Gate, BingX, MEXC, Blofin, Bitget. DEX — Hyperliquid, Asterdex, Bluefin, Extended. (Venues are enabled for automation progressively.)
  • Link your Telegram in Profile → Connections too — TradingView bots sync through @formiontradingbot, so the New bot button stays disabled until Telegram is linked.
  • In Profile → Connections, open the TradingView Automation card and click New bot.
  • Fill in:
    • Account type — Live or Demo. Demo runs on Bybit only (real prices, demo funds).
    • Exchange — any account you’ve connected (CEX or DEX).
    • Market — Futures or Spot.
    • Symbol — e.g. BTCUSDT.
    • Direction — Long or Short (the side this bot opens).
    • Sizing — Fixed USDT amount, or % of balance.
    • Amount / Leverage (futures) / optional Label.
  • Click Create bot. The bot is created paused with two private tokens.

Each bot shows three things — copy them with the buttons:

  • Webhook URL — copy the URL displayed on your bot card
  • Open — alert message — e.g. {"token":"<your-open-token>"}
  • Close — alert message — e.g. {"token":"<your-close-token>"}

The token is the only secret; keep it private. Open opens the position, Close closes it (reduce-only).

  1. On TradingView, open your chart/strategy and click Create Alert.
  2. Set your condition (indicator cross, strategy order, price, etc.).
  3. Open the Notifications tab → enable Webhook URL → paste the Webhook URL from step 3.
  4. In the Message field, paste the Open alert message (to open) — or the Close message (for a separate close alert).
  5. Save. Repeat with the Close message for a second alert if you want automated exits.
  • Back in TradingView Automation, toggle the bot to Active.
  • When automation is enabled for your account, the next matching TradingView alert will place the order on your connected exchange. Every fire is logged with status (filled / skipped / error).
  • Tokens are random and per-bot; rotate by deleting and recreating a bot.
  • A bot only ever trades the one symbol and direction you configured. Close orders are reduce-only (they can’t open or flip a position).
  • Duplicate alerts with the same id are ignored (no double-fills). To use this, include an id, alert_id, nonce or timenow field in the alert message JSON.
  • You can pause or delete a bot at any time. Formion never withdraws funds — it only places trades on your connected account.
  • Connect your exchange (CEX or DEX)
  • Create a TradingView Bot
  • Copy the webhook URL + Open/Close messages
  • Paste them into a TradingView alert
  • Activate

Happy automating!