TradingView to Alice Blue Copier: Easy ANT Setup, 7 Steps

If your TradingView indicator already tells you when to buy, typing the order at Alice Blue is dead time. TPcopier cuts that out. Its Indian TvCopier takes you from TradingView to Alice Blue without the typing. It's a Windows program on your own PC or VPS. TradingView sends each alert to the program, which places the order through Alice Blue's ANT API. The order leaves from the static IP you've registered with Alice Blue.

Here's what the whole chain needs, and where each piece comes from.

Piece Where you get it
Webhook alerts A TradingView plan that sends them (TradingView offers webhooks on its paid plans)
ANT API access Alice Blue, with your static IP registered
A Windows machine Your PC or a VPS with that static IP, on during market hours
Port 80 open to it The program's Windows Firewall button, plus your router at home or your VPS provider's firewall. It is the only way alerts get in
The copier and its key The Indian Copier page in your TPcopier account

Why TradingView to Alice Blue runs on your machine

SEBI's framework for retail algo trading took effect on 1 April 2026. Since then, a broker accepts an API order only from a static IP registered to that client. So an order from someone else's cloud server fails. That's why TPcopier ships this as software. The program trades from your IP with your ANT session. TPcopier.com checks your licence, and it only passes alerts on when TradingView can't reach your PC. A copier also works far below 10 orders a second, and under that rate the exchange asks for no strategy registration.

Your user id and the daily session id

Alice Blue asks for less than most brokers. In the program, open Accounts, press + Connect a broker and pick Alice Blue (ANT). Two boxes appear:

  • User id: your Alice Blue client id, the one you log in with.
  • Session id: the value that getUserSID returns after the ANT API login.

The session id lasts one trading day, so you make a new one each morning. The app puts both values into one header on every call, as "Bearer", your user id, then the session id. Without the user id, Alice Blue rejects the call as if the login had expired. How to run the ANT login and call getUserSID is in Alice Blue's API documentation.

After you paste both, press Test the connection. A good answer reads "connected as" with your account name. With yesterday's session, you'll see "Alice Blue refused the session id - it lasts one trading day, generate a new one" instead.

Set up TradingView to Alice Blue in 7 steps

1. Collect the demo key

On tpcopier.com, the Indian Copier page has a Get the free demo button. After sign-up, find the TradingView copier's card in your account and press Get my free demo key. The download sits on the same card. The demo covers the whole app, one per account and per computer. When you buy, with USDT through Binance Pay, that key turns lifetime. There are no refunds, so use the demo first. See the pricing page for prices.

2. Install and activate

Install the program on the machine you'll trade from, and paste your licence key when it asks.

TradingView to Alice Blue: the activation screen of the Indian TvCopier The program's first screen: the TPC- key box and this computer's name (example).

3. Register your static IP at Alice Blue

The Dashboard shows the public IP the program sends from, with a Copy button. Register that IP with Alice Blue for API orders. For fees or the exact form, check Alice Blue's own API pages.

The Dashboard's Static IP band, the address Alice Blue must have for API orders The Static IP band at the top of the Dashboard (example).

4. Add Alice Blue

Open Accounts, press + Connect a broker and pick Alice Blue (ANT). Paste the two values above, then press Save this account and Test the connection. Before the first alert, open What this account does with an order and set Most lots in one order. It starts at 1, so a 2-lot alert would fail.

Alice Blue (ANT) account form with user id and session id in the Indian TvCopier A new Alice Blue account: the user id stays, the session id changes every trading day (example).

5. Open port 80

TradingView sends each alert straight to the program when it has a way in on port 80. On the program's TradingView page, press Allow port 80 in Windows Firewall, and press Allow access if Windows asks about the network. At home, forward port 80 on your router to this PC; on a VPS, open it in the provider's firewall too. The page then checks, on this PC, that the program is listening on port 80, that the firewall rule is there, and which public address the machine has. On a home Jio or Airtel line TradingView usually cannot reach the PC at all, because the address is shared, so use a Windows VPS with a static IP.

6. Write the TradingView alert

Copy the address under 1 The webhook URL on the program's TradingView page, marked DIRECT. Paste it as the alert's Webhook URL, as TradingView's webhook guide shows, and put your JSON in the Message box. The program refuses a plain-text alert. Treat the URL as a password, too: no screenshots, and Regenerate if it leaks.

7. Watch the first alerts

Each alert appears in the program's Signal Feed with its result. A row that failed carries the reason in red, and the { } button shows what went to Alice Blue and what came back.

Signal Feed rows with sent, blocked and refused example alerts The Signal Feed, newest first, with the reason on every refused row (example).

Alerts Alice Blue will accept

Here's an example, a Bank Nifty put for two lots. It shows the format, not a trade idea:

{
  "action": "BUY",
  "symbol": "BANKNIFTY",
  "strike": 53500,
  "option_type": "PE",
  "lots": 2,
  "price": 288,
  "sl": 240,
  "source": "bnf 5m reversal"
}

Remember the lot cap from step 4; this alert needs it at 2 or more. Your strike must sit on the index's step, and Bank Nifty moves in 100s. The app refuses 53550 as a typo instead of rounding it.

Alice Blue names every instrument by a token from its contract master. The app downloads that master for NSE, NFO, BSE, BFO, MCX and CDS, and refreshes it every six hours. Then it finds the token for your underlying, strike and CE or PE, at the nearest live expiry unless you name one. You never write the token, and you never write Alice Blue's trading symbol either. For shares, Alice Blue lists names like RELIANCE-EQ, but your alert just says RELIANCE with a quantity. If one exchange's file didn't download, the refusal tells you so.

To get out, send the same contract with "action": "EXIT". The app reads Alice Blue's position book and matches the token, since two exchanges can share a trading symbol. After that, it cancels any order still working on that contract and closes what you actually hold.

What goes out to Alice Blue

The account's Product setting picks the product code. Intraday goes as MIS. Delivery / carry goes as CNC for shares and NRML for options, because Alice Blue refuses CNC on an option. Orders go as L, MKT, SL or SL-M, with DAY or IOC validity.

Alice Blue has a quote call, so protective limits work as designed. With Convert market signals into protective limits on, as it is by default, an alert without a price goes as a LIMIT order. The price sits 0.5% through the last traded price. If the quote fails at that moment, the order goes at market instead.

To send the alert's sl as a real stop, switch on Send the stop loss as a real order. The app places it once the entry fills. You can also move it to breakeven or trail it; it only ever moves in your favour.

Before you let it trade

A new account starts on Paper trading, with simulated fills at live prices. You can also switch the account off on the Accounts page. The alerts still arrive and appear in the Signal Feed, but nothing goes to Alice Blue. For a dry read of one alert, use the box under Try it before the market opens on the program's TradingView page.

Each source name in your alerts also shows up on the program's Sources page, switched on. So if one strategy misbehaves, switch just that source off.

Refusals and what they mean

  • "Alice Blue refused the session id": make today's session id and paste it.
  • "Alice Blue has no BANKNIFTY 53500 PE - check the strike is one the exchange actually lists": wrong strike, or part of the master didn't load, and the message says which.
  • "signal asks for 2 lots, this account's cap is 1": raise Most lots in one order.
  • An HTTP 429 message: Alice Blue's rate limit. It isn't an error in the order, and it clears by itself in a second.

FAQ

How often does the Alice Blue session id change?

Every trading day. After the ANT API login, getUserSID gives you a new session id, and you paste it into the account. Your user id stays the same.

Does TradingView to Alice Blue work with Sensex options?

Yes. The app reads Alice Blue's BFO master as well as NFO, so a Sensex option resolves when its strike sits on the 100 step.

Can I run two Alice Blue accounts from one PC?

Yes, each with its own share of the size. If Alice Blue has each one registered under a different static IP, your PC needs one connection per IP. Then set Static IP for this account on each account.

Can I test TradingView to Alice Blue without placing orders?

Switch the account off on the Accounts page. Alerts still arrive and show up in the Signal Feed with how the app read them, but nothing reaches Alice Blue.

Will it trade Bank Nifty futures?

No. The app trades options and NSE cash equity, and it refuses a futures alert in words.

Send your first Alice Blue alert on the demo

Create a TPcopier account, get the demo key from the Indian Copier page and send one small alert. For channel signals at this broker, read Telegram to Alice Blue. The Indian brokers overview compares all ten brokers, and the Indian TvCopier setup guide shows the whole program. The TradingView auto trading page for India sums up what the set-up needs.

Risk warning: trading options and shares carries a high risk of losing money and is not suitable for everyone. Nothing here is investment advice.