Skip to main content
HomeIntegrationsTradingView → Bybit
TradingView → Bybit · setup guide

TradingView to Bybit — automate your strategy end to end

TradingView alerts can trade on Bybit through PipSync: each alert sends a JSON webhook to your private PipSync URL, and PipSync applies your risk rules and submits the order to your Bybit derivatives account — entries and exits alike, around the clock, with nothing to host yourself.

Start free — no credit cardSee pricing

Risk warning: CFDs are complex instruments with a high risk of losing money rapidly due to leverage. 70–80% of retail investor accounts lose money when trading CFDs. Risk disclosure · Past performance.

TradingView can fire webhooks but cannot hold exchange API keys or place orders. PipSync is the execution layer in between, and on Bybit it works with the exchange's unified margin model: one Unified Trading Account, one collateral pool, one trade-scoped API key. Because both entries and exits travel as alerts, a complete strategy round-trip — open, manage, close — runs without you touching the chart.

TradingView → Bybit at a glance

Signal sourceTradingView alerts (strategy or indicator) via webhook — requires a paid TradingView plan
DestinationBybit crypto derivatives — live in PipSync's public beta, unified margin (Unified Trading Account) supported
Webhook endpointA unique per-account URL (https://pipsync.io/api/tradingview/webhook/<your-token>) — keep it private
Alert payloadJSON: action (buy / sell / close), symbol, price, sl, tp, optional fixed lots, comment
Exchange connectionBybit API key scoped to trading — withdrawal permission is never required
InfrastructureFully cloud-based — no VPS, no self-hosted bot, runs while your computer is off
PriceFree plan available (€0); paid plans from €49/month

How do I connect TradingView to Bybit?

Half of the setup happens in the PipSync dashboard, the other half in TradingView's alert dialog and Bybit's API management page. Nothing runs on your machine.

  1. Create a free PipSync account

    Sign up at app.pipsync.io — no credit card required. PipSync's free plan covers wiring up and testing this route; the only paid requirement on this route sits on TradingView's side, because webhook alerts are a paid TradingView feature.

  2. Get your PipSync webhook URL

    In the dashboard, go to Sources → Add Source → TradingView Webhook. PipSync generates a unique URL containing a secret token. Treat it like a password: anyone holding it can send signals to your account, and you can regenerate it from the Sources page if it ever leaks.

  3. Connect Bybit with a trade-only API key

    In Bybit's API management, create a dedicated key with read and trade permissions and leave withdrawal permission off — an execution tool never needs to move funds. Add the key under broker accounts in PipSync; unified margin accounts connect the same way.

  4. Create the TradingView alerts

    In TradingView (webhook alerts require a paid plan), set the alert condition, paste the JSON payload into the Message field using placeholders such as {{strategy.order.action}} and {{ticker}}, and paste your PipSync URL under Notifications → Webhook URL. For full automation, wire alerts to both your entry and your exit conditions.

  5. Set sizing and guardrails

    Either send a fixed quantity in the payload's lots field or let PipSync's server-side risk rules compute the size. Add guardrails — maximum open trades, symbol filters — which are enforced before any order reaches the exchange.

  6. Test, then start small

    Use Send Test Signal on your TradingView source to fire a sample payload and check the parsed result plus the exchange's response. Keep Manual Approval mode on at first so you inspect each trade before it executes, and begin with small size when you go live.

Typical setup time: about 12 minutes.

Can a TradingView strategy trade on Bybit by itself?

No — and that gap is exactly what this route fills. A TradingView alert can send a webhook (an HTTP POST with a message you define), but it cannot store Bybit API keys, size a position or submit an order. PipSync receives the alert at your private webhook URL, validates it against your server-side risk rules, and places the order on Bybit over the exchange's API.

Compared with hosting an open-source bot on a rented server, there is nothing to deploy or keep alive. Crypto derivatives trade around the clock including weekends, so a self-hosted script that crashes unnoticed quietly stops executing your strategy; PipSync's pipeline runs server-side the entire time, and every alert and resulting order is visible in the dashboard.

Which symbol name should the alert send for Bybit?

Use the contract name exactly as Bybit lists it. Bybit's linear USDT perpetuals carry names like BTCUSDT, while its inverse contracts use the coin-margined form such as BTCUSD — two different products, so the payload's symbol field decides which one you trade. Unlike MetaTrader forex symbols there are no broker suffixes to guess: the exchange has one canonical name per contract.

The common pitfall sits on the TradingView side. On perpetual charts, the {{ticker}} placeholder resolves with a ".P" suffix — BTCUSDT.P instead of BTCUSDT. A mismatched symbol is rejected by the exchange rather than misrouted, so the failure is visible, but it still means no trade. Fire a test signal and check the parsed symbol in the PipSync dashboard, or write the literal contract name into the alert message if you want zero ambiguity.

How does Bybit's unified margin affect strategy automation?

It simplifies it. With a Unified Trading Account, Bybit pools your collateral instead of splitting it across separate product wallets, and PipSync places orders against the account behind your API key. A strategy that rotates across several contracts draws from one margin pool — there are no pre-trade transfers between sub-wallets standing between an alert and its fill.

Shared collateral also means positions interact: every open trade consumes margin from the same pool, so a multi-symbol strategy should be paired with PipSync's max-open-trades cap and symbol filters. And remember that leverage and margin mode are settings on your Bybit account, separate from order quantity — PipSync controls what is ordered, not how your account is levered. Review those exchange-side settings before turning a strategy loose.

How do I automate exits as well as entries?

Exits are just alerts too. The payload's action field accepts buy, sell and close: entries arrive as buy or sell, and an alert carrying close flattens the open position on that symbol. You can also attach sl and tp prices to the entry payload so protective levels ride along with the position from the moment it opens.

One subtlety with strategy placeholders: {{strategy.order.action}} resolves to buy or sell, and a strategy that exits a short technically does so with a buy order. If sized like an entry, that can mean reversing instead of flattening. When an alert is meant to close rather than flip, send the literal action "close" in that alert's message — it removes the ambiguity entirely.

  • action — "buy", "sell" or "close" (close exits the open position on that symbol)
  • symbol — the contract name as Bybit lists it, e.g. BTCUSDT
  • price — entry price; 0 means execute at market
  • sl / tp — stop-loss and take-profit levels; 0 omits them
  • lots — optional fixed quantity that overrides your risk rules for this one trade
  • comment — optional free-text tag shown on the resulting trade

How should I test the route before trading real size?

Two safeguards inside PipSync work regardless of what your exchange account offers. Send Test Signal, on your TradingView source, fires a sample payload without waiting for a market condition and shows you the parsed result plus whether the exchange accepted the order. Manual Approval mode holds every incoming trade for your confirmation, so you can watch a few real alerts arrive and inspect exactly what would be sent before anything executes automatically.

When you do switch the route live, start with small size. Let the strategy complete a handful of full round-trips — entry, management, exit — at a quantity you are comfortable losing while you verify symbols, sizing and exit behavior match your expectations. Only then scale the size up.

Try it on the free plan

Connect a signal source and a broker account, watch PipSync parse and route in real time, and upgrade only if you need more. No credit card required to start.

Start free — no credit cardSee pricing

Risk warning: CFDs are complex instruments with a high risk of losing money rapidly due to leverage. 70–80% of retail investor accounts lose money when trading CFDs. Risk disclosure · Past performance.

FAQ

Frequently asked questions

Do I need a paid TradingView plan to send webhooks to Bybit?

Yes. Webhook notifications are a feature of TradingView's paid tiers; the free TradingView plan cannot send webhook alerts. PipSync's free plan covers the Bybit side of the setup, which leaves TradingView's plan as the one subscription you actually need.

Written by the PipSync team · Reviewed by Tobias Russmann, Director, PipSync · Published · Last updated

PipSync is a cloud-based signal automation platform that routes trading signals from Telegram, Discord, TradingView alerts and custom webhooks to broker accounts on MetaTrader 4, MetaTrader 5, cTrader, Match-Trader, Binance Futures and Bybit — with server-side risk management and no VPS required. PipSync is an execution tool, not a signal provider and not investment advice.

PipSync is a signal execution tool. It does not provide trading signals, does not guarantee any trading results and is not investment advice. Trading leveraged products involves substantial risk of loss. See the full risk disclosure and performance disclaimer.