Alert Automation

Turn alerts from TradingView (and soon Chartink) into real orders, with ready-made option structures and risk limits you set.

Alert automationOptions readyRisk limits you set
In short

Alert Automation turns your TradingView alerts into real orders on your broker accounts. You write a short alert in plain text, point a TradingView webhook at your own private AutoTrader Web link, and when your alert fires the order is placed. It can place a single order or a full option structure that you choose and configure — like a straddle or an iron condor — size it in lots or quantity, and set a maximum-loss alert you choose (risk limits are in beta and email you — they do not act automatically yet). You can send an order to one account or a whole group. Chartink support is coming soon. You bring the strategy and the signal; the tool only places the orders you set up, and you can stop it at any time.

Alert Automation is the simple way to turn your TradingView alerts into real orders on your broker accounts. Write a short alert in plain text, connect it once, and when your alert fires the order is placed — a single order, an option, or a full option structure you choose. Chartink support is coming soon and will work the same way.

You bring your own strategy and signals. The tool only places the orders you set up, and you can stop it at any time.

How it works

  1. You create an alert in TradingView (from an indicator, a strategy or a price level).
  2. TradingView sends that alert to your own private AutoTrader Web link the moment it fires.
  3. AutoTrader Web reads your short alert, works out the exact order (including the option strike and expiry, if any), and places it in the account or group you named.
  4. You can watch each alert move from received to placed on the Alert Trail screen.

Nothing runs unless your alert fires and you have set it up. You stay in control of every part.

Before you start

  • A paid TradingView plan (webhooks are a paid feature).
  • A registered AutoTrader Web account. Register here if you have not.
  • At least one trading account added. See Trading Accounts.
  • Optional: a group if you want one alert to trade many accounts. See Group Accounts.

Sign in to AutoTrader Web and open Alert Auto. → Tokens from the left menu. Give the token a name and create it. This gives you a private link that looks like this:

https://signals.stocksdeveloper.in/tradingview/YOUR-TOKEN
  • Keep this link private. It is the key that lets your alerts place orders in your account.
  • You do not put your API key anywhere in TradingView. The link is all you need.
  • If the link is ever exposed, open Alert Auto. → Tokens again, revoke it, and create a new one. Your old link stops working at once, and no one can use it again.

Step 2 — Create the alert in TradingView

  1. Open your chart and add your indicator or strategy.
  2. Create an alert (press Alt + A).
  3. In Notifications, turn on Webhook URL and paste your private link from Step 1.
  4. In the alert Message box, write your order in the simple format below.
  5. Optional: also turn on Send email so you keep a copy of each alert for your records.

You can learn more from the TradingView alerts help.

Skip the typing — the Pine Script library

If you build your strategies in Pine Script on TradingView, you do not have to write the alert text by hand. We publish a free, open-source Pine library that builds a correct alert message for you — you call one function and pass the result to alert().

Add it to the top of your script:

//@version=6
import StocksDeveloper/StocksDeveloperAlerts/1 as atw

Then build and fire an alert wherever your signal triggers:

// Buy one lot of an at-the-money Nifty call when your signal fires
if longSignal
    alert(atw.option(symbol="NIFTY", exchange="NFO", producttype="NORMAL",
          tradetype="BUY", optiontype="CE", strike="ATM", expiry="weekly",
          account="MY_ACCOUNT", lots=1), alert.freq_once_per_bar_close)

Every function returns the alert text and you decide when to fire it, so you stay in control. The functions cover everything on this page:

FunctionWhat it places
atw.equity(...)a single stock or futures order
atw.option(...)a single option order (pick the strike and expiry)
atw.order(...)the full single-order builder (every field)
atw.straddle / strangle / bullCall / bearPut / bullPut / bearCall / ironCondor / ironFly(...)a ready-made option structure
atw.leg(...) + atw.multiLeg(...)your own custom multi-leg (up to 10 legs)
atw.riskLimits(...)a risk limit to attach to any order (pass as risk=)

A few more examples:

// Stock order to a whole group of accounts
alert(atw.equity(symbol="SBIN", exchange="NSE", producttype="INTRADAY",
      tradetype="BUY", group="MY_GROUP", lots=1))

// Iron condor with your own daily-loss limit
alert(atw.ironCondor(symbol="NIFTY", exchange="NFO", producttype="NORMAL",
      account="MY_ACCOUNT", lots=1, width=8, wing=4,
      risk=atw.riskLimits(maxloss=10000)))

// Your own four-leg structure
legs = array.from(atw.leg("PE","ATM-2","SELL"), atw.leg("PE","ATM-6","BUY"),
                  atw.leg("CE","ATM+2","SELL"), atw.leg("CE","ATM+6","BUY"))
alert(atw.multiLeg(symbol="NIFTY", exchange="NFO", producttype="NORMAL",
      account="MY_ACCOUNT", lots=1, expiry="weekly", legs=legs))

The field names and values are the same as the plain-text format below, so use this page as the reference for every option. You still need a paid TradingView plan to send the alert (webhooks are a paid feature). You can view the library on TradingView here: StocksDeveloperAlerts.

Writing an alert

An alert is just a list of settings, one per line, written as name=value. Field names are not case sensitive.

Here is a simple order — sell one lot of a Nifty put option at a limit price:

account=MY_ACCOUNT
symbol=NIFTY
exchange=NFO
producttype=NORMAL
optiontype=PE
strike=ATM
expiry=weekly
tradetype=SELL
ordertype=LIMIT
price=50
lots=1

Where the order goes: account or group

Every alert must say where to place the order, using one of these:

  • account=NAME — place in that single account.
  • group=NAME — place in every live account in that group.

Use exactly one. An individual account and a group can have the same name, so the field name is what tells us which you mean. There is no default — always say where.

The common fields

FieldRequired?What it is
account or groupYes (one of them)Where to place the order (see above).
symbolYesThe instrument — our broker-independent symbol (e.g. NIFTY, BANKNIFTY, SBIN) or your TradingView symbol. Look it up if unsure.
exchangeYesThe exchange code, e.g. NSE or BSE for stocks, or NFO for options and futures. Look it up if unsure.
producttypeYesINTRADAY, DELIVERY, NORMAL or MTF.
tradetypeYesBUY or SELL.
lots or quantityYes (one of them)Size — see Order size.
ordertypeNo (default MARKET)MARKET, LIMIT, STOP_LOSS or SL_MARKET.
priceNoLimit price (needed for LIMIT).
triggerpriceNoTrigger price (needed for stop-loss orders).
validityNo (default DAY)DAY or IOC.
amoNo (default false)true for an after-market order.

Use the exact words shown (for example INTRADAY, not your broker’s short form). For the full list of valid values, see API Parameters.

Using your TradingView symbol

For a stock or futures order you can send TradingView’s own symbol, so your alert can simply use symbol={{ticker}}. AutoTrader Web reads these forms:

  • a continuous future like NIFTY1! (nearest expiry) or NIFTY2! (next expiry);
  • a dated future like NIFTYU2026;
  • an option like NIFTY260714C23900.

Our own broker-independent symbol still works too — a future as NIFTY_28-JUL-2026_FUT, an option as NIFTY_14-JUL-2026_CE_23900, or a stock as SBIN. Either way, set exchange to match your instrument. If a symbol cannot be matched to a live contract, the alert is rejected with a clear reason — it never places a different order.

For options, the easy way below (give the underlier plus optiontype, strike and expiry) still needs no symbol lookup at all.

Trading options the easy way

For an option order you do not need to type the full option symbol. Give the underlier and let AutoTrader Web pick the exact contract:

FieldWhat it is
optiontypeCE for a call, PE for a put. Adding this makes it an option order.
strikeATM (default), or ATM+1 / ATM-2 to step up or down, or OTM / ITM (add a number like OTM2), or an exact strike like 24500.
expiryweekly (default), next (next weekly), monthly, or an exact date like 10-JUL-2026.

So optiontype=CE, strike=OTM2, expiry=weekly means “the call option two strikes out of the money in this week’s expiry” — no symbol lookup needed.

Ready-made option structures

You can build a full multi-leg option structure with a single line. You choose the structure and set the values; AutoTrader Web works out each leg for you and places them, with the protective buy legs placed first.

These build the order legs for a structure you choose and configure. They are not trading strategies, tips or advice — you decide the structure, the values and when to send the alert.

StructureWhat you writeLegs it builds (by default)
Straddlestrategy=straddleBuy call + buy put, at the money
Stranglestrategy=strangleBuy call + buy put, out of the money by width
Bull call spreadstrategy=bull-callBuy call at the money + sell call width out
Bear put spreadstrategy=bear-putBuy put at the money + sell put width out
Bull put spreadstrategy=bull-putSell put at the money + buy put width out
Bear call spreadstrategy=bear-callSell call at the money + buy call width out
Iron condorstrategy=iron-condorSell call + sell put width out, buy call + buy put width+wing out
Iron flystrategy=iron-flySell call + sell put at the money, buy call + buy put wing out

Settings you can add:

  • width — how far out of the money the near legs sit, in strike steps (default 2).
  • wing — how far the protective legs sit, in strike steps (default = width).
  • tradetypeBUY builds the structure as shown above; SELL flips every leg.
  • onlegfailure — what to do if one leg cannot be placed: alert (default, tell you), cancel (undo the legs already placed) or continue (place the rest).

Example — a Nifty iron condor for this week:

account=MY_ACCOUNT
symbol=NIFTY
exchange=NFO
producttype=NORMAL
strategy=iron-condor
width=8
wing=4
expiry=weekly
ordertype=LIMIT
price=50
lots=1

Build your own multi-leg

If you want an exact set of legs instead of a ready-made structure, list them yourself. Each leg is Leg1, Leg2, and so on (up to 10), written as <CE|PE> <strike> <BUY|SELL> [xN], where xN multiplies the size for that leg.

account=MY_ACCOUNT
symbol=NIFTY
exchange=NFO
producttype=NORMAL
expiry=weekly
lots=1
Leg1=PE ATM-2 SELL
Leg2=PE ATM-6 BUY
Leg3=CE ATM+2 SELL
Leg4=CE ATM+6 BUY

Risk limits you set (beta)

You can add your own risk limits to an alert. These are limits you decide and set up.

Risk limits are in early beta. Right now they alert you by email — the tool does not square off, block or stop your trades automatically yet. Use them as warnings for now. See Risk Management.

LimitWhat you writeWhat it is
Maximum day lossmaxloss=5000A cap on the day’s loss for the account (in your account currency). You are alerted if the loss crosses it.
Square-off timeforceexit=15:15An intraday time (24-hour HH:mm) by which you want the position closed.
Entry-time windowentrywindow=09:20-14:30Only take entries inside this time window (24-hour HH:mm-HH:mm).
Block on expiry dayblockonexpiryday=trueDo not take new entries on the instrument’s expiry day.

You can set more than one on the same alert. As the feature leaves beta, these limits will begin to act automatically instead of only alerting you.

Order size

Give the size in one of two ways:

  • lots=1 — number of lots (for derivatives). AutoTrader Web works out the quantity from the lot size.
  • quantity=50 — an exact quantity (for shares, or a whole number of lots for derivatives).

Use one or the other, not both. If an order is larger than the exchange’s single-order limit, AutoTrader Web automatically splits it into smaller orders for you.

See what happened — the Alert Trail

Every alert is recorded on the Alert Trail screen. For each alert you can see it move through clear steps — received, understood, checked, and finally placed — so you always know what happened and when. If a step fails (for example a wrong value), the trail shows where and why.

The trail shows that your order was placed. To see whether it filled, and your live position, check your order book and positions on the trading screen as usual.

Safe-use notes

  • Stop your alerts when you are not using them. TradingView alerts and strategies keep running on TradingView’s servers until you stop them. If you forget, orders may keep getting placed.
  • Test with the smallest possible size first, then increase slowly once you are confident.
  • Avoid changing your alert or strategy settings during live market hours. TradingView can repaint a signal when you change settings, which can give unexpected results.
  • Automation has its own risks. Make sure you understand how your alerts and strategies work before you rely on them.

Support for Alert Automation will keep improving as we learn what our users need. Share your feedback through our contact page.

Frequently asked questions

Do I need to know coding to use Alert Automation?

No. You write a short alert in plain text, one setting per line, like account=MY_ACCOUNT and tradetype=BUY. There is no JSON and no programming. If you can fill a simple form, you can write an alert.

Is there a ready-made TradingView script?

Yes. We publish a free, open-source Pine library called StocksDeveloperAlerts. It builds the alert message for you from simple functions, so if you code your strategies in Pine you never type the alert format by hand. Plain-text alerts still work with no coding.

View the library →

Which alert sources are supported?

TradingView is supported now. Chartink support is coming soon and will use the same alert format. If you use another tool that can send a webhook, contact us and we will tell you if it fits.

Connect TradingView →

Can I trade option strategies automatically?

Yes. You can send a single option order, or ask for a ready-made structure such as a straddle, strangle, spread, iron condor or iron fly. You choose the structure and set the values (like how far out of the money and the size). These are order helpers you configure yourself. They are not trading strategies, tips or advice from us — you decide when to send the alert.

Can one alert trade many accounts?

Yes, and there are two ways. The simple way (recommended): send the order to a group, and it is placed in every live account in that group — use account=NAME for a single account, or group=NAME for a group. The other way: set up master-child copy trading once, then send the order to a single master account, and it is copied to the child accounts in the background.

Set up copy trading →

Do I need a paid TradingView plan?

Yes. Automation uses TradingView's webhook feature, which is part of a paid plan. The free plan cannot send alerts to an outside service, so it cannot reach AutoTrader Web. Please check the TradingView website for the latest plan details.

How is this different from the classic TradingView setup?

Alert Automation uses a shorter plain-text format and adds ready-made option structures and risk limits you set. The classic setup uses a longer JSON message and still works, but for new setups we recommend Alert Automation.

Classic setup →

Next steps

Was this page helpful?

Last updated 8 July 2026