Algo & AI · Automation

Trading automation, without the hype.

From a simple price alert to a bot that trades through your broker's API, automation is a ladder. Here is each rung, how webhooks and APIs connect them, the risks no sales page mentions, and what the rules allow in India, the US and Nepal.

ONE AUTOMATION, END TO ENDTriggerAlert, schedule, signalChecksLimits, size, market openActionOrder or notifyKill switchStops every orderLogBugs and bad data are thebiggest risks, not the market.
The ladder

Six kinds of trading automation

Climb one rung at a time. Each step adds speed and adds ways to lose money by mistake.

Level 1Alerts

The safest automation: the computer watches, you decide. Price crosses a level, an indicator fires, you get a notification.

Level 2Semi-automatic

A rule prepares the order (size, stop, target) and waits for your tap to send it.

Level 3Bots via broker API

Your program logs in to your broker's API and places, changes and cancels orders by itself.

GlueWebhooks

A chart or scanner sends an HTTP message when a condition hits; a small server turns that message into an action.

BuildersNo-code tools

Visual rule builders and strategy platforms that create the logic without code. The risks stay the same.

PracticePaper-trading bots

The same automation pointed at virtual money, to see how it behaves before anything real is at stake.

Under the hood

How an automated order travels

  1. 1TriggerA rule fires on new data: a price, an indicator, a time.
  2. 2ChecksIs the market open? Within size and daily-loss limits? Not a duplicate?
  3. 3API callAn authenticated request to the broker with the order details.
  4. 4Broker & exchangeRisk checks, then the order reaches the exchange and fills or waits.
  5. 5Log & monitorRecord everything; alert a human when something looks wrong.
Risks

What goes wrong with bots

Bugs

A typo in size or a loop that resends an order can do more damage in a minute than a bad trade in a month.

Bad or late data

A frozen feed or a wrong price makes a perfect rule do the wrong thing.

Connectivity

Your internet, server or broker can drop mid-trade. Know what happens to open orders when it does.

Over-trading

Automation makes it cheap to trade too often; fees and slippage add up quietly.

Account security

API keys are passwords to your money. Never share them with a bot seller or paste them into unknown tools.

Scams

“Done-for-you” bots with guaranteed returns. Real automation never guarantees anything.

Rules

What is allowed

India: automated orders go through SEBI's retail algo framework via your broker, with exchange algo IDs, static IP and two-factor login (details). US: broker APIs are common; market-abuse rules such as the ban on spoofing apply to bots too. Nepal: SEBON directed NEPSE on 26 August 2026 to stop AI-based order entry on all TMS platforms until it is studied, so check with SEBON and your broker before automating anything on NEPSE.

Practise it on StockYatra, free.

Learn the skills behind algo trading on virtual coins, with live NEPSE, NSE and US prices. Every rule is visible and every backtest is honest, losing trades included.

  • 41 prebuilt strategies with their rules in plain words
  • No-code rule builder and a Pine Script editor
  • Market, Limit and Stop orders, long and short, 24/7 practice
Questions

Trading automation FAQ

What is trading automation?

Using software to do parts of trading for you: watching prices, sending alerts, preparing orders or placing them through a broker's API. It ranges from simple price alerts to fully automatic bots.

Are trading bots legal?

It depends on the country and broker. In India, automated orders must go through SEBI's retail algo framework via your broker (algo IDs, static IP, two-factor login). In the US, many brokers offer APIs. In Nepal, SEBON told NEPSE in August 2026 to stop AI-based order entry on TMS platforms until it is studied, so automating NEPSE orders is not an option for now.

What is a webhook in trading?

A message one app sends to another over the internet when something happens, for example a chart alert firing. A small server can receive it and turn it into an action such as a notification or an order.

What is a kill switch?

A way to stop all automated orders at once. Indian exchanges can halt an algo by its ID, brokers have their own, and every personal bot should have one you can hit from your phone.

Should beginners automate trading?

Start with alerts and paper trading. Automating a strategy you have not tested only makes you lose faster. Learn the rules, backtest them honestly, paper trade, then consider automation.

Does StockYatra have a trading bot?

Not yet. Today you can build rules without code or in Pine Script, see every signal on the chart and backtest them, and place Market, Limit and Stop orders on virtual coins. A paper-trading bot that runs your rules automatically is on our roadmap.

StockYatra is an education app with virtual coins, not a broker, adviser or research analyst. Rules summarised here are for learning and change over time; check your regulator's and broker's current notices before acting. Nothing here is a recommendation to buy or sell any security or to use any trading product.