Lawrence LiuOriginally published on supa.is I chart on TradingView. I trade on OKX. For months, I switched...
Originally published on supa.is
I chart on TradingView. I trade on OKX. For months, I switched between tabs — spot a setup on the chart, flip to OKX, type in the price, double-check the size, hit buy. It worked, but it was slow and error-prone.
Then OKX rolled out direct TradingView integration. You can now place spot and futures orders from TradingView's chart — no API keys, no third-party bridges, no copy-paste. I set it up in under 8 minutes, and the first trade executed within seconds.
This guide walks through the exact connection process, placing your first trade, and the gotchas I ran into so you don't have to.
Disclosure: This article contains affiliate links. I may earn a commission if you sign up through my links, at no extra cost to you. I only recommend tools I actually use.
That's it. No API key generation, no IP whitelisting, no secret management. OKX uses OAuth-style broker connection through TradingView's built-in trading panel.
If you've never connected a broker, you'll see a list of supported brokers. OKX should appear prominently — they're a featured partner.
What I noticed: The authorization uses OKX's own login page — TradingView never sees your password. This is the same OAuth flow you'd use with "Login with Google." Your credentials stay with OKX.
Important: Make sure you're connecting the correct OKX account type. If you trade futures, you'll need to select "Derivatives" mode in TradingView's order panel after connecting.
Once connected, placing a trade is straightforward:
The order routes directly to OKX. Fills show up on your chart as arrows, and your position appears in the Trading Panel's "Positions" tab.
This is where it gets good. Right-click on any price level on the chart and select "Place Limit Order." The order populates with that exact price. No more typing prices manually and fat-fingering a digit.
You can also drag pending orders up and down on the chart to adjust the price visually. This alone saved me from at least two bad entries where I would've typed the wrong price.
For every trade, you should set protective orders. Here's how from TradingView:
Alternatively, when placing the initial order, expand "Advanced" options to set SL/TP at entry time.
If you're trading on Hyperliquid instead and need help with stop losses there, I wrote a dedicated guide: How to Set Stop Loss on Hyperliquid.
Here's something I didn't find in other tutorials: OKX periodically offers free TradingView Plus subscriptions to users who hit certain trading volume thresholds.
As of early 2026, the promotion typically requires $40,000 in cumulative spot or derivatives trading volume within a qualifying period. If you trade actively, you likely hit this without trying.
TradingView Plus normally costs $14.95/month — that's $180/year you save just by trading through the integration you're already using.
Check OKX's promotions page after connecting for the latest offer details. The deal may change, but OKX has been running some form of this promotion consistently.
This usually means OKX is doing maintenance or your browser is blocking the popup. Fix:
Orders placed through TradingView show up on OKX's web and app interface, but there can be a 1-2 second delay. If you don't see an order after 10 seconds:
If TradingView shows a different balance than OKX:
Here's how I actually use the OKX-TradingView integration daily:
The key improvement: I stopped making price entry errors. When you type "67830" instead of "6783.0" on a futures order, that's a real problem. Clicking directly on the chart eliminates that class of mistake entirely.
TradingView supports several exchanges for direct trading. Here's how OKX compares based on my experience:
| Feature | OKX | Binance | Bybit |
|---|---|---|---|
| Spot trading from TV | ✅ | ✅ | ✅ |
| Derivatives from TV | ✅ | ❌ (restricted in some regions) | ✅ |
| Free TV plan promo | ✅ (Plus with volume) | ❌ | ❌ |
| SL/TP from chart | ✅ | ✅ | ✅ |
| Connection stability | Solid | Solid | Occasional drops |
OKX's edge is the free TradingView Plus promotion and full derivatives support. If you're trading perpetual futures, the OKX integration is the most complete option I've used.
For a deeper comparison of OKX as a platform, see my full OKX review.
Not directly through the built-in integration. The TradingView-OKX connection requires manual order confirmation. For automated execution, you'd need to set up TradingView webhook alerts that send to a custom bot connected to OKX's API. That's a more advanced setup I'll cover in a future article.
Yes, connecting your OKX account to TradingView costs nothing. You can use it with TradingView's free plan. The only costs are OKX's normal trading fees (maker 0.08%, taker 0.10% on spot for standard users).
No. The integration uses OKX's OAuth login — you sign in with your regular OKX credentials through a secure popup. No API key creation, no IP whitelisting, no secret management. This is one of the main advantages over older API-based setups.
Yes, but you need to log in with the sub-account credentials specifically. Each TradingView connection maps to one OKX account. If you use sub-accounts for different strategies (I covered this in my OKX sub-account guide), you'll need to switch the connection in TradingView's Trading Panel.
TradingView alerts are independent of the broker connection. Your alerts will still trigger and notify you. However, any bracket orders (SL/TP) tied to positions through the integration will remain active on OKX's side even if TradingView disconnects — they're server-side orders on OKX.
The setup takes under 10 minutes:
Once connected, you'll wonder why you ever traded from two separate tabs.
Risk Warning: Trading cryptocurrencies and derivatives involves substantial risk of loss. This article is for informational purposes only and does not constitute financial advice. Only trade with funds you can afford to lose.