What Is Backtesting? A Beginner's Guide for Indian Traders
Backtesting shows how a trading strategy would have performed on past data. Learn how it works, what the results mean and what a backtest cannot tell you.
Guides on algo trading, broker setup and testing strategies, from the team that builds Cirrus.
Backtesting shows how a trading strategy would have performed on past data. Learn how it works, what the results mean and what a backtest cannot tell you.

111 posts · page 1 of 8

You may have seen AI tools that can read your account, build a strategy and even place trades. It sounds powerful. It is also risky if you give an AI too much control. This blog explains how it works and how to keep it safe. What is an AI agent? An AI agent is an AI assistant, like Claude, ChatGPT or Cursor, that can take actions instead of only answering questions. For trading, it can look at your account and, if you allow it, place orders or build strategies. What can go wrong? * The AI c

Your order is placed. How do you know when it is filled? There are two main ways: keep asking, or get told. In technical words, these are REST and WebSocket. REST: you ask, it answers With REST, your program sends a request, and the server sends one reply. It is like calling a shop to ask, “Is my order ready?” * Simple and works everywhere * Good for placing orders, changing them and cancelling them * If you keep asking again and again for updates (polling), it wastes time and requests We

A backtest is only as good as the data behind it. If the data has mistakes, the backtest can show profits that never existed, and you may only find out when you trade with real money. What is historical data? It is the record of past prices. For algo trading, this is often in small time blocks, such as 1-minute candles with open, high, low, close and volume. What does “dirty” data look like? * Missing candles: minutes with no data * Wrong prices: a sudden spike or drop that never happened

“I think Nifty usually bounces after a big fall.” That is a trading idea. But you cannot test an idea, and you cannot automate it. A rule-based strategy turns the idea into clear steps that a computer can follow, the same way every time. Idea vs rule * Idea: “Buy when the market looks weak.” * Rule: “Sell one ATM weekly call and one ATM put on NIFTY, only between 9:30 am and 1:30 pm, and close everything at 3:15 pm.” The first one depends on your mood. The second one can be tested. The 5 p

If you trade more than one account, you know the routine: open each app, find the strike, type the quantity, check margin, repeat. Here is what changes when one ticket does it. The manual routine Four accounts means four logins, four tickets and four chances to mistype. On expiry day, when premiums move in seconds, the fill price in the last account is not the fill price in the first. The Cirrus routine * One ticket. Pick the accounts or a saved group, place the order once. Keyboard short

Support It is like a floor. When the price falls to this level, buyers often step in. The price bounces. Resistance It is like a ceiling. When the price rises to this level, sellers often step in. The price turns down. Why do they form? People remember prices. If a stock bounced from ₹500 twice before, buyers expect it to bounce again and place orders there. That makes the level real. How to draw them 1. Open a daily chart. 2. Find price levels where the stock turned at least 2 or 3 times.

One candle, four prices Every candle shows four prices for a period, like a day: Open, High, Low and Close (OHLC). Parts of a candle * Body: the thick part, between open and close. * Wicks (shadows): thin lines above and below. They show the high and low. Colours * Green (bullish): the price closed higher than it opened. * Red (bearish): the price closed lower than it opened. A long body means buyers or sellers were strong. A long wick means the price went far, then came back. 4 simple

Most connection problems come from a handful of causes. Here is a checklist, by symptom. “My orders stopped working today” Broker sessions end each trading day, so you must sign in again every day on the broker’s own page. This is the most common cause. “Orders are rejected for the whole account” Your broker accepts API orders only from the IP you whitelisted. Check that: * You pasted the address Cirrus shows for that account. * You did not whitelist your home or office IP. Orders leave

The alert fired on TradingView, but nothing happened at your broker. Work through these checks in order. Most problems are in the first few. 1. Is the alert actually sending? Webhook alerts need a paid TradingView plan, and TradingView asks for two-factor authentication on your account before it will send webhooks. Check both. 2. Is the message valid? The message must be exactly the two-field JSON, with straight quotation marks: {"type": "entry", "secret": "your-secret-here"} Smart quote

An alert that places an entry but no exit leaves the hardest part to you, usually at the worst moment. With Cirrus you set the exit when you set the entry. TradingView strategies For each leg of a TradingView strategy, you set a target, stop-loss and trailing stop in percentage or points. The alert message only says entry or exit and carries your secret, so the exit rules live in Cirrus and apply every time the alert fires. Learn the alert setup in our post from 19 November. Chartink strate

Most people who start trading do not stay. The numbers explain why. What SEBI’s data shows SEBI’s studies on individual traders in equity derivatives report that nearly nine in ten lose money. Around 91% of individual F&O traders lost money in FY25, and the FY25–FY26 study reports roughly 87.7% for FY26. Participation is falling too: reporting on the FY26 study says active individual traders dropped from about 106 lakh to about 87.5 lakh, and new entrants fell from about 34 lakh to about 21 l

General information, not legal advice. Check your broker’s current notices. Algo trading rules confuse a lot of people. Here are six myths. Myth 1: “I need a SEBI licence to run my own algo.” Mostly no. SEBI’s retail framework lets you trade through your broker’s API. Below 10 orders per second per exchange, you do not register your strategy as an algo. Above that rate, it must be registered with the exchange through your broker. Myth 2: “Any API setup works now, as long as it is mine.” N