I built an AI trading bot that executes simulated trades with fake money on the NSE, and it finished Thursday with a gross gain of ₹783.30. The balance rose to ₹101,952.50 after three trades; the bot’s rules enforced each entry, stop-loss and target.

| Stock | News catalyst | Result | Exit (IST) | Gross P&L | R |
|---|---|---|---|---|---|
| TMCV | deal or acquisition | sold at the 3:15 PM close | 15:15 | −₹7.00 | −0.02R |
| CHOLAFIN | earnings | sold at the 3:15 PM close | 15:15 | +₹181.90 | +0.49R |
| TMPV | earnings | target hit | 13:13 | +₹608.40 | +2.21R |
Day total (gross): +₹783.30 (+0.77% of the starting balance). Nifty 50 over the same window: +0.90%.
Every stock the bot looked at
| # | Stock | Sector | Up at start | Volume vs usual | Headlines | Decision |
|---|---|---|---|---|---|---|
| 1 | Tata Motors (TMCV) | Capital Goods | +6.67% | 14.61x | 5 | Bought |
| 2 | HDFC Asset Management Company (HDFCAMC) | Financial Services | +6.12% | 14.95x | 5 | Not bought: news not positive; headline did not name the company |
| 3 | Tata Capital (TATACAP) | Financial Services | +5.63% | 5.80x | 5 | Not bought: event still to come |
| 4 | Cholamandalam Investment and Finance Company (CHOLAFIN) | Financial Services | +5.51% | 7.96x | 5 | Bought |
| 5 | Shriram Finance (SHRIRAMFIN) | Financial Services | +5.45% | 10.08x | 5 | Not bought: rated strong; already have 3 positions |
| 6 | InterGlobe Aviation (INDIGO) | Services | +4.56% | 15.91x | 5 | Not bought: news not positive |
| 7 | Hitachi Energy India (POWERINDIA) | Capital Goods | +4.47% | 6.01x | 5 | Not bought: no specific company event; opinion or rumour only |
| 8 | Muthoot Finance (MUTHOOTFIN) | Financial Services | +4.29% | 9.71x | 5 | Not bought: rated strong; already have 3 positions |
| 9 | Tata Motors Passenger Vehicles (TMPV) | Automobile and Auto Components | +4.08% | 8.84x | 5 | Bought |
| 10 | Asian Paints (ASIANPAINT) | Consumer Durables | +4.04% | 11.47x | 5 | Not bought: no specific company event; news not positive |
Up at the start is the rise from the previous close when the bot started (about 09:35 IST). Volume vs usual compares the morning's trading volume with the stock's normal pace.
How the Nifty 50 and my trading bot moved
The Nifty 50 rose 0.9%, while my bot’s balance gained 0.77%. They are measured differently: the bot’s result is across its whole balance, while the index move covers the same time window. The bot’s result is gross, before brokerage, taxes and slippage, which the app does not model.
Which NSE stocks the AI trading bot picked
At 09:35, the bot screened 100 stocks; 76 passed the morning rise and volume requirements. The AI read headlines for the top 10 candidates, selected by the screener’s rank. For context, those screening rules require a rise of at least 0.5% and volume pace of at least 1.0. Prices come from Yahoo Finance, and headlines come from Google News.
The biggest morning moves included TMCV, up 6.67% with relative volume of 14.61, and HDFCAMC, up 6.12% with relative volume of 14.95. Among the other candidates, CHOLAFIN rose 5.51% on relative volume of 7.96; Shriram Finance rose 5.45% on 10.08; and Tata Capital rose 5.63% on 5.8. TMPV was up 4.08% on 8.84, while POWERINDIA, Muthoot Finance, IndiGo and Asian Paints also made the list. A strong morning move brought a stock to the news check; it did not guarantee a trade.
What the news said about each stock
For Tata Motors, the AI cited two November 4 stories: Autocar India reported that the company crossed 6 lakh annual sales for the first time, while Motorindia described its takeover of Iveco and plans to share skills and grow. The AI rated this a strong, bullish catalyst. The headlines it also read included reports from BusinessLine and Mid-Day on November 5, and ET Auto on November 4, about security vulnerabilities in connected vehicle apps; it did not cite those reports for its positive rating.
CHOLAFIN’s cited Multibagg AI headline on November 4 said Q2 FY27 PAT rose 41%. The AI rated the earnings news strong and bullish. TMPV’s cited Manufacturing Today India headline on November 2 reported 23% sales growth. The AI also marked it strong and bullish, noting the headline gave no sales value. Other TMPV headlines included India Today’s October sales report, a V3Cars launch story, an Auto India Daily sales story and an Asia Insurance Post report about app vulnerabilities.
Three other Financial Services candidates had different outcomes. Shriram Finance’s November 3 scanx.trade headline reported Q1FY27 PAT growth of 59.79%; Muthoot Finance’s November 4 Fintechbiznews headline said PAT was up 98% to ₹10,607 crore. Both received strong, bullish ratings. Tata Capital’s November 3 Multibagg AI headline described a target for Q4 NIM-plus-fee improvement. The AI recorded this as forward-looking guidance without a concrete performance figure, so it rated the news weak.
For HDFCAMC, the AI cited a November 2 Moneycontrol headline about HDFC AMC, Carnelian and L&T acquiring a stake in EAAA India Alternatives. Code rejected the rating on the recorded ground that the cited headline did not name the company and lacked a clear share-price upside implication. IndiGo’s November 4 Multibagg AI headline reported a ₹1,900 crore Q2 FY27 loss; MarketsMojo’s November 5 headline was also read. The AI rated the news weak and not bullish.
POWERINDIA had a November 5 Business Standard headline about bullish technical signs, which the AI treated as opinion rather than a specific company event. Asian Paints’ headlines included a November 4 scanx.trade story about a trading-plan decision and Indian Retailer’s Diwali campaign story. The AI did not rate these as a positive, specific company event. Across these candidates, general commentary and price-related stories were not treated as strong news catalysts.
Why the trading bot bought or skipped each stock
Code allowed three trades: TMCV, CHOLAFIN and TMPV. Each had a strong, bullish news rating and a plan that met the risk rules. A stop-loss is the price at which the bot gives up on a trade; a target is the price at which it takes profit. The bot buys at a fixed time after the news check, not from a chart-based entry signal.
TMPV hit its target at 13:13, ending with ₹608.40 gross profit. CHOLAFIN was closed at the 3:15 PM close for ₹181.90 gross profit. TMCV was also closed at the 3:15 PM close, with a ₹7.00 gross loss. Overall, two trades won and one lost.
The three strong ratings not bought were Shriram Finance and Muthoot Finance, both because all three trade slots were already filled, and no other candidate had a strong rating beyond the five strong names. Tata Capital was rated weak; HDFCAMC was rejected by code; IndiGo, POWERINDIA and Asian Paints were not rated as strong bullish catalysts. The remaining candidates also did not receive strong ratings. The bot holds at most three stocks, risks at most 0.5% of its balance on one trade, requires possible gain of at least twice possible loss, and limits one stock to 30% of the balance.
How the trading bot behaved
The AI rated all 10 candidates and marked five strong; code allowed three trades, skipped two strong candidates because the three positions were full, and rejected no trade plans. One trade hit its target; none hit a stop-loss, including within the first 60 minutes. Two positions closed at the session end. The positions came from different sectors, so no same-sector overlap occurred today. Since 19 October, an extra strong stock from a sector can wait in reserve and be bought only if a slot remains after first-choice stocks are tried; here the slots were full.
Every headline, rating, code decision and trade result is recorded for the post-mortem. The AI reads headline titles, not the articles behind them, and the records do not include brokerage, taxes or slippage. That audit trail gives me a clear account of how this Indian stock market paper-trading session unfolded.
Software Engineer's Corner: Where my bot's stock data comes from
One standalone lesson taken from the code of my trading bot. The bot is a simulation with fake money: it places no real orders.
Where this fits in my bot
Every morning my bot needs two things: a list of the 100 stocks to look at (the Nifty 100, India's list of 100 large NSE stocks), and their recent prices and trading volumes. This is the very first step, before any AI is involved.
Part 1: The stock list is just a CSV file
I keep the list in a plain file called nifty100.csv, one row per stock:
| Company Name | Industry | Symbol | Series | ISIN Code |
|---|---|---|---|---|
| ABB India Ltd. | Capital Goods | ABB | EQ | INE117A01022 |
| Adani Energy Solutions Ltd. | Power | ADANIENSOL | EQ | INE931S01010 |
The bot uses the Symbol (the short code a stock trades under) and the Company Name. The Industry column is used later, to know which stocks belong to the same sector. This is the code that loads it into a dictionary of symbol → company name:
python
def load_universe() -> dict[str, str]:
universe = {}
with open("nifty100.csv", newline="", encoding="utf-8-sig") as f:
for row in csv.DictReader(f):
universe[row["Symbol"].strip()] = row["Company Name"].strip()
return universe
csv.DictReader turns each row into a dictionary keyed by the column names, so you read row["Symbol"] instead of counting columns.
Output (real: I ran this loader on the real file on 4 November 2026; the last line is the list used in the next step):
100
ABB -> ABB India Ltd.
ADANIENSOL -> Adani Energy Solutions Ltd.
ADANIENT -> Adani Enterprises Ltd.
['ABB.NS', 'ADANIENSOL.NS', 'ADANIENT.NS']
Part 2: Getting the prices with yfinance
The prices come from a Python library called yfinance, which reads Yahoo Finance data. Yahoo expects NSE stocks with .NS added to the symbol, so TCS becomes TCS.NS (as in the last output line above). The bot asks for all 100 stocks in a single request:
python
tickers = [symbol + ".NS" for symbol in UNIVERSE]
data = yf.download(tickers, period="1mo", interval="1d", group_by="ticker", auto_adjust=False, progress=False)
period="1mo"andinterval="1d"mean one month of daily candles. A candle is one row per day: open, high, low, close and volume.group_by="ticker"makes the result easy to slice per stock:data["TCS.NS"]is that stock's table.auto_adjust=Falsekeeps the prices as they were reported, not adjusted.
After that, my code drops any stock that came back empty or with too little history, and counts them. Yahoo's data can be missing, so the bot never assumes it is complete.
Try it yourself
pip install yfinance
python
import yfinance as yf
data = yf.download(["TCS.NS", "INFY.NS"], period="5d", interval="1d", group_by="ticker", auto_adjust=False, progress=False)
print(data["TCS.NS"][["Close", "Volume"]])
Output (real: I ran this on my laptop on 4 November 2026, after the market closed):
Price Close Volume
Date
2026-10-29 2478.000000 3427569
2026-10-30 2502.600098 3016983
2026-11-02 2501.699951 2817192
2026-11-03 2499.100098 3488517
2026-11-04 2436.000000 3140927
One row per trading day, with the closing price and the number of shares traded (the volume). There is no row for 31 October because it was a Saturday and the market was closed. The long decimals such as 2502.600098 are floating point noise: computers store decimals approximately, so the bot rounds prices before using them.
yfinance is an unofficial library, so if the snippet fails, check its docs: it can change.
What else to explore in yfinance
yf.Ticker("TCS.NS") gives you one stock's object, and from it you can try .history() for prices at other intervals (my bot also uses 1-minute candles, which Yahoo keeps for only about a week), and things like dividends, splits and company details. Check the current docs for what is available.
Today's numbers
Today the bot checked 100 stocks and 76 passed the morning screen.
Follow the experiment live: the full record is on the dashboard at niftyexperiment.com.
More from the experiment
- Previous daily post: AI trading bot on NSE: 4 November 2026 trading results
- All weekly summaries from the AI trading bot
- All daily reports from the AI trading bot
Where the information came from
Headlines come from Google News and prices and volume from Yahoo Finance. A star marks a headline the AI cited as the basis of its rating.
TMCV (Tata Motors Ltd.)
- CERT-In flags security vulnerabilities in Tata Motors' iRA connected vehicle apps (BusinessLine, 5 Nov)
- CERT-In flags vulnerabilities in select Tata Motors' iRA connected vehicle apps (Mid-Day, 5 Nov)
- CERT-In flags security vulnerabilities in specific versions of Tata Motors' connected vehicle apps (ET Auto, 4 Nov)
- ★ Tata Motors crosses 6 lakh annual sales for the first time (Autocar India, 4 Nov)
- ★ Tata Motors Takes Over Iveco: How the Duo Plan to Share Skills and Grow ‘Bigger Than Ever Imagined’ (Motorindia, 4 Nov)
HDFCAMC (HDFC Asset Management Company Ltd.)
- HDFC Asset Management Company Limited (HDFCAMC.NS) Seasonal returns chart - Yahoo Finance (Yahoo Finance Singapore, 4 Nov)
- HDFC Mid Cap Fund @ 20th Year With Rs1 Tn AUM Mark (https://www.fintechbiznews.com/, 2 Nov)
- ★ Carnelian, HDFC AMC, L&T acquire 2.9% stake in EAAA India Alternatives on debut day (Moneycontrol.com, 2 Nov)
- HDFC AMC schedules four investor meets in Mumbai for Nov 2026 (scanx.trade, 2 Nov)
- ICICI Prudential Asset Management Company Limited (ICICIAMC.NS) Seasonal returns chart (Yahoo Finance UK, 4 Nov)
TATACAP (Tata Capital Ltd.)
- People Digest: Colliers names China, HK chiefs; Tata Capital gets partner; Fireside co-founder quits (DealStreetAsia, 4 Nov)
- Tata Capital's PE arm appoints former Siguler Guff MD as partner for third fund (VCCircle, 4 Nov)
- ★ Tata Capital Ltd. targets a Q4 NIM-plus-fee improvement (Multibagg AI, 3 Nov)
- Tata Capital Housing accepts bids for multiple-tenor bonds, bankers say (TradingView, 3 Nov)
- Tata Capital Housing Finance plans bond issue of up to INR 21 billion (Prop News Time, 4 Nov)
CHOLAFIN (Cholamandalam Investment and Finance Company Ltd.)
- ★ Cholamandalam Investment and Finance Q2 FY27 PAT rises 41% (Multibagg AI, 4 Nov)
- Man paid premium a day before his Bolero was stolen, but insurer rejected claim citing policy issuance da (The Times of India, 4 Nov)
- Cholamandalam Investment and Finance (NSEI:CHOLAFIN) - Stock Analysis (Simply Wall St, 2 Nov)
- NBFCs redesign lending models ahead of revolving credit curbs (The Economic Times, 4 Nov)
- KFin RTA shifts corporate office for Mahindra EPC from Dec 1, 2026 (scanx.trade, 4 Nov)
SHRIRAMFIN (Shriram Finance Ltd.)
- Shriram Finance sees gold loan portfolio at Rs 11,000 crore by FY27 end: Umesh Revankar (bfsi.economictimes.indiatimes.com, 3 Nov)
- ★ Shriram Finance Q1FY27 PAT surges 59.79% on strong NII growth (scanx.trade, 3 Nov)
- SENSEX gains 600 points; NIFTY50 opens at 23,582 level; IndiGo, Shriram Finance, Asian Paints lead pack of gainers (Upstox, 3 Nov)
- AP High Court Quashes Criminal Case Against Panel Advocate, Says Lawyers Can't Be Prosecuted For Giving... (Live Law, 2 Nov)
- BSE, Infosys, CG Power and 6 others to watch: Motilal Oswal reveals 9 stock ratings and target prices after Q2 results (The Economic Times, 2 Nov)
INDIGO (InterGlobe Aviation Ltd.)
- ★ InterGlobe Aviation reports Rs 1,900 crore Q2 FY27 loss amid fuel costs (Multibagg AI, 4 Nov)
- ★ Interglobe Aviation Ltd Upgraded to Sell on Improving Financial and Technical Trends (MarketsMojo, 5 Nov)
- IndiGo shares rally 4%: Why is InterGlobe Aviation stock rising for a second straight session? (Upstox, 3 Nov)
- Stock markets extend rally in early trade; Sensex jumps 615 points (The New Indian Express, 3 Nov)
- IndiGo Airlines Appoints New Chief Strategy Officer (https://safariindia.com/, 3 Nov)
POWERINDIA (Hitachi Energy India Ltd.)
- ★ Hitachi Energy, KFin, Jubilant Food flash bullish technical signs: Analyst (Business Standard, 5 Nov)
- Buy, Sell Or Hold: Hitachi Energy, MCX, NHPC, Eternal And Varun Beverages — Ask Profit (NDTV Profit, 4 Nov)
- Hitachi Energy India Limited (POWERINDIA.NS) Seasonal returns chart (Yahoo Finance UK, 3 Nov)
- Hitachi Energy India Ltd Surges 3.36% to Day's High of Rs 28,300 — Outperforms Sector by 2.1 Percentage Points (MarketsMojo, 4 Nov)
- Hitachi Energy India POWERINDIA Q2 FY27 Analyst Call Notice (Kalkine India, 2 Nov)
MUTHOOTFIN (Muthoot Finance Ltd.)
- Muthoot Finance board recommends Alexander George as new Managing Director (Elets BFSI, 4 Nov)
- Why Muthoot Finance Jumped 8% Today: Gold’s Biggest Rise Since August (NiftyTrader, 4 Nov)
- ★ Muthoot Finance’s PAT Up By 98% at Rs10,607 Cr (https://www.fintechbiznews.com/, 4 Nov)
- Muthoot Finance, Manappuram shares rise up to 8% as gold jumps 2.5% on softer dollar after Democratic... (Moneycontrol.com, 4 Nov)
- 5 Stocks Near 52-Week Lows: What the Numbers Say (HDFC Bank, Tata Power, Muthoot Finance) (Equitymaster, 4 Nov)
TMPV (Tata Motors Passenger Vehicles Ltd.)
- ★ Tata Motors Passenger Vehicles records 23 per cent sales growth (Manufacturing Today India, 2 Nov)
- Tata Motors Launch All-New Punch In South Africa Prices Start At R225,000 (Press Release) (V3Cars, 4 Nov)
- CERT-In flags security vulnerabilities in specific versions of Tata Motors’ connected vehicle apps (Asia Insurance Post, 5 Nov)
- Tata records 23% sales growth in October 2026, sells 75,426 units (India Today, 2 Nov)
- Tata Motors Sales Hit 6.5 Lakh in Just 10 Months; Punch & Nexon Lead the Charge (Auto India Daily, 4 Nov)
ASIANPAINT (Asian Paints Ltd.)
- ASIANPAINT Stock Price and Chart — NSE:ASIANPAINT (TradingView, 2 Nov)
- ★ Asian Paints audit committee clears trading plan non-implementation (scanx.trade, 4 Nov)
- ★ Asian Paints Unveils New Diwali Campaign Celebrating Festive Preparations (Indian Retailer, 4 Nov)
- IndiGo, Asian Paints, IOC: Analyst view on crude sensitives as oil dips 13% (Business Standard, 4 Nov)
- ★ Asian Paints turns Diwali preparations into a celebration (afaqs!, 3 Nov)
How these numbers are measured
- Gross: before brokerage, taxes and slippage, which are not modelled yet.
- R: profit or loss divided by the amount risked at the stop-loss (a stop-loss hit is about −1.00R, and a little worse if the price jumps past the stop-loss before it can be sold).
- Exit time: the minute in which the stop-loss or target was touched; trades that touched neither are sold at the 3:15 PM close.
- Nifty 50: price index, from the moment the bot starts (about 09:35 IST) to 15:15 IST. The bot's percentage is on its whole starting balance, so the two are not like-for-like.
Simulation notice: this is a paper-trading experiment with fake money. No real orders are placed. All results are gross, before brokerage, taxes and slippage, and a few days of results prove nothing. Nothing here is investment advice or a recommendation to buy or sell any security; stocks named are examples from the simulation. This post was written by an AI from the app's recorded data, and the tables are produced directly from the database.
Comments
Post a Comment