r/IndiaAlgoTrading • u/Rajnish357 • 11d ago
Met a person who show me this and told me some algo that made 2L to 2Cr
Can we trust or anyway to find out what he is actually doing?
r/IndiaAlgoTrading • u/Rajnish357 • 11d ago
Can we trust or anyway to find out what he is actually doing?
r/IndiaAlgoTrading • u/lazy_coder3 • Oct 10 '26
Final day of the dishwasher challenge for my mom—finally bought the Bosch dishwasher! ❤️🎉
My P&L stands at ₹38K over the last 18 trading sessions, with a capital of ₹5 lakh.
Most of my trades involved non-directional option selling with a directional bias, combining my algo with discretionary trading.
Now, it’s time for the next bigger challenge!
Let’s see what’s next—I’ll share an update on Monday. 👀
r/IndiaAlgoTrading • u/Fantastic-Office-183 • 17d ago
I am happy to share with you all that i have created a scalp engine which is giving out the profit based on my strategies implemented in the system.
There are several tweaks which are still required to refine the logics and collect the large pool of strategies in order to give the maximum profits in the scalping environment moving forward.
I would request the professional traders to see,help me to refine and fine tune this moving forward.
This is a ready version where the trades can be taken in real time and generate profits.
Please feel free to ask any questions!
r/IndiaAlgoTrading • u/Turbulent-Flounder77 • May 10 '25
Hey folks, Quick update on the Zerodha Lite bot I accidentally built for a client who wanted a full trading automation setup… for ₹5,000. The post will be https://www.reddit.com/r/developersIndia/s/C7ZBy0RRnT
Yes, that one.
Short story:
Client backed out. Project got “too complex” and I cant give it out for 5k and obviously, he didn’t want to pay more than the original ₹5K. So I took the whole thing as a learning project.
The good news?
It’s almost done.
And no, this isn’t just a half-baked script. This thing:
Scans Nifty in real-time (api from broker)
Detects levels
Finds the right CE option automatically
Executes (simulated) trades
Tracks SL and Target based on Nifty, not the option price
Has a full UI with logs, live data, and error handlingNot gonna lie — feels like I’ve built a one-man broker terminal at this point.
The Strategy (not Financial advice): I just code what my client gives me
It only buys Call Options
You set a trigger level and an execution level
It waits for Nifty to move up — no downtrend catching here
Example:
Let’s say Nifty is at 24,142
Trigger = 24,170
Execution = 24,195If price breaks above 24,170 and then reaches 24,195 , bot buys the CE that's closest to ₹200 and nearest expiry
Target = +25 points on Nifty Stoploss = -20 points on Nifty So exit happens when Nifty hits 24,220 or 24,175, not based on option LTP
It ignores falling markets — only buys if price breaks down below the trigger and comes back up. That’s the re-entry logic.
Basically, this strategy heavily relies on live spot price and option data, not historical candles. Technically i can backtest it but code wont be the same so if it works in backtest i cant transfer same code to live testing.
So what now?
It’s running in simulation mode — trades get logged, not routed to broker. Just a few lines of code + testing left.
I’ll be hosting a preview (not public access) version on my site soon if anyone’s curious.
Also, I’ve been getting a bunch of DMs from people asking for custom bots and this strategy might not be the one I continue with.
Not financial advice. Not a magic money printer. Just a real-time bot coded based on a client’s logic.
Here’s a clip of it in action 👇
r/IndiaAlgoTrading • u/Desperate-Fortune526 • Aug 29 '26
I have been trading since 2021 manually , and started algo trading journey from 2024 October onwards . I must have lost over 4 lakhs till now in experimentation , subscription costs , AI costs etc.
Last month was where it all fell into place, started with 1 lakh capital once more (6th attempt , where each time before I was definitely sure I would make money but lost miserably in my algo trades) . Though this time things turned around for good.
Writing this post as both an accomplishment (as in real life, I don't think I will be telling anyone about this ) and motivation , do not give up , I had almost given multiple times only to be drawn back into my work desk trying a different approach.
37 days live so far on the latest stable deployment , 1 lakh starting capital , gains so far is ~1.30 lakhs (1.17L after charges) , which is 130 % gain (excluding charges) in almost a month and 7 days . Planning to increase capital by 50 K every month going forward .
Verified PNL : https://915.groww.in/verified-pnl/initial-rhinoceros
r/IndiaAlgoTrading • u/Witty_Astronomer6024 • Jul 07 '26
Currently using quantman for algo trading. It is going good so far. Per year target is 15-20%. Currently using 20L capital and around 7% gained in 3 months.
r/IndiaAlgoTrading • u/Opposite_Lifeguard87 • Sep 30 '25
I have been writing and adjusting my algo strategy and now it has started turning green. Still a long way to go though !
r/IndiaAlgoTrading
•
u/curioussharma-007
•
28d ago
Hey,
Disclaimer: Not a SEBI certified analysts and everything i am sharing is simple what I do. There's no money/selling involved and NO ONE can predict stock markets, we can just take a decision base don data and research.
Thanks for your amazing response/attention on my post:
https://www.reddit.com/r/IndiaAlgoTrading/comments/1xbjby7/comment/19rl68s2loz44/
Several of you asked me to share strategy and code and i promised to share the same, i cannot share the code however I don't mind sharing the strategy as we are not competition to ourselves and remember, the win rate is just 44%. It works because wins are 2-3 times bigger, over losers.
Just wanted to repeat that what i have backtested, forward tested and being used in real market, is the several month of research, learning, purchase of year's of backtest data, billios of tokes spent via LLMs (alone is $200/mo), GPU testing and so on.
When I started out, NOTHING was making sense and it took me almost 8 months, to execute trades properly via algo.
My setup:
All coding in Fable 5.1
All reasoning in fable 5.1
Training on NVIDIA GPU (reneted, based on minutes).
Data (paid) used is 11.5 years of NIFTY 1 minute OHCV candles, 6 years of BANK-Nifty,
6 years of stock options, 3 months of commodity contracts (testing on Natural gas),
3 years of FX data (4 currency pairs), 5 years of NIFTY tick data.
All code in Python
Server (VPS) on hostinger (Rs 1800/mo)
KITE developer API (500/mo)
Applied for FYERS and will upgrtade to its Rs 400 (or 499?) plan for more data.
Telegram bots (1 seperate bot for each strategy)
My Focus:
Option Buying intraday (Futures are much more easier and consistent in trading due to straighforwardness however expensive lot size)
My Aim:
8-10% returns on option buying on monthly basis. It's delusional however thats the target.
Why option buying?
Easy to enter, maximum loss is the premium. Profit can sjy rocket in a day and loss is maximum the value of your premium (Although we cut at 30%)
Stop Loss/TP:
Tested over 11,5 years data again, for option buying on NIFTY,
the sweetest zone is
SL: 30% of premium
SL shift at: 20% on gains
Strategies:
For NIFTY and ALL paper strategies I am testing you can check into
a beautiful format i made today (weekend and tired with data crunching)
Its called OptionsBuyer.in
Go to site, all stock companies are divided on earth based on size of company corresponding to size of country. The SUN is NIFTY and MOON is Bank Nifty.
Zoom it, double click on any country, it will open the box on right with strategies tested.
You can see all my current tested strategy on 'Strategies' tab.
Some facts collected today in NIFTY strategy (summarised via claude, Opus model):
Losing more trades than you win can still pay. Over 11 years and 1,396 trades, the strategy won only 45% of the time and still made money, because the winning trades were much bigger than the losing ones.
The gap does most of the work. On days NIFTY opened 0.75% or more away from yesterday’s close, the average trade earned about 3× the normal day. Most of the profit came from gaps that kept moving the same way. Most of the losses came from gaps that reversed.
The calendar doesn’t matter. We compared every month of every year, around 141 months, and checked results season, Budget day, elections and festivals. Once you test it properly, none of them shows a real edge.
A big month doesn’t mean a bad month next. A huge profit month was not followed by a crash month, and the reverse didn’t hold either.
We looked hard for setups that win 80% of the time and found none. One of the agents was set up as a 25-year market veteran checking ideas found online against our own data.
We did find one setup that loses about 87% of the time. It’s a small gap (0.2–0.5%) on a day when NIFTY closed 2.5% or more above its 20-day average the day before. It won only 13% of 67 trades and kept failing when we re-tested it on data it hadn’t seen.
Taking the opposite trade doesn’t fix it. Reversing that losing setup didn’t make money either. The answer is to skip it.
The same gap trick fails on single stocks. Trading big stock gaps, either following them or betting against them, lost money once costs were counted. Stock options cost about 0.25–1% per side to trade, against roughly 0.1–0.2% for NIFTY options.
The edge is shrinking. The strategy averaged ₹2,394 per trade over 2015–26, but only ₹860 per trade over 2023–26.
r/IndiaAlgoTrading • u/lazy_coder3 • Oct 13 '26
Hi everyone!
After successfully completing the Dishwasher Challenge for my mom, I'm starting a new challenge — buying an automatic SUV for my dad! ❤️🚗
Last December, we bought a Brezza ZXi Manual, but due to knee pain, my dad finds it difficult to drive for more than 40–50 minutes. He now has to rely on a driver whenever he goes out.
So, I'm planning to sell our current car and upgrade to an automatic SUV so he can drive comfortably and independently again.
New target: ₹3 lakh additional profit
Trading capital: ₹10 lakh
Not sure how long this will take. No deadlines, no unnecessary risks. Just discipline, patience, and proper risk management.
For those asking about my trading approach, I primarily do option selling, not option buying. Even one lot generally requires around ₹1.5–2 lakh in margin, depending on the strategy and hedging.
Also, I've received quite a few DMs from people interested in learning my trading approach, but couldn't respond to everyone earlier. If you're genuinely interested in learning, feel free to DM me. I'll try to respond this time.
r/IndiaAlgoTrading • u/curioussharma-007 • 16d ago
Existing post and position:
https://www.reddit.com/r/IndiaAlgoTrading/comments/1xmqh17/algorithm_updated_post_3/
Current position (same call - 1 lot sold by BOT at 2.33X premium and one is running till expiry)
So as you can see in existing post, our algo (ITM 500) took a pivot based position few days back with 2 lots. Market went up and it sold one lot next dat and locked 2.33X premium (Rs 16,000+) on first lot and as per our backtest and coded condition, second lot will be closed on expiry (Monday) or if the market trend change the 'pivot' range.
Now, if I would have taken these positions manually, I would have probably (99%) booked the profit on bot lot 2 days back which would still be 100% profit on 2 lots but will miss the ride.
Beauty of algo based system is that you don't need to think about 'next' action as you already code it based on massive backtests.
Also, this kind of trade in option buying comes under top 1% of trades. In last 11 years of backtest data, the strategy that my algos are using, the data says that the above trade is 'second' most profitable trade out of 1536 trades it took in 11 years.
I am not a very experienced trader but I am a very through backtester (please read my last 3 posts) and conclude anything based on heavy data.
Finally, happy diwali and if you are planning to be a algo-trader on 'option buying', here are some ground rules:
ANY profitable option buying strategy will have 35-45% WIN rate.
Win rate is absolutely irrelevant IF your winners are 2-3x bigger then your losers.
Watching red days is a 'norm' in option buying
Option buyers lose as they blow up the capital before the favourable trade comes in.
Our of 35% of win rate for option buyer, 90% of money will come from only 5% of overall winners in an year. I call them 'Chappar Faad' trades. Remember only 5% will come that will lift your account
Based on my intense back testing and triple checks, month of December, February, March and October are the most profitable months for option buyers whereas January, April, May, July and August and the most lose months. Remaining are kind of break events.
As an algo trader you need to collect bid/spread ratio yourself for indexes and commodities as then you can test with better accuracy.
You CANNOT expect consistency in option buying. It will play with your blood pressure every day.
If your strategy is giving multiple entry in a day and giving more then 3 trades in a week, double test it as based on my through testing it will be a loser. A good option buying algo system with 'pre trade' filters (for example my above BOT will not take a trade if NIFTY is over 3% from its 20 DMA) remove half year worth of trades. And then second 'in trade' filter removes another 20% of trades. Even after this the win percent is 35-45%, however the winners could be huge. The whole buying is about riding the winning trades (note more then 12-15 days as such)
Option buyer's profit are based on 'length' of your winning trade. A hard stop loss tested on 11 years of 1 minute candle cannot sustain. It will make you miss your biggest trades. So your stop loss should be based on some kind of filter like Pivot points (my favourite) or suprtrend etc
If possible trade in multiple of 2 lots, so you can always book 1 at XX.XX premium and let 1 ride till SL or expiry.
That's all from top of my head guys, see you in January with 2 months of trade data.
r/IndiaAlgoTrading • u/Opposite_Lifeguard87 • Oct 01 '25
r/IndiaAlgoTrading
•
u/curioussharma-007
•
Oct 21 '26

Verified P&L: https://console.zerodha.com/verified/b64f3933
Timelines:
Started futures trading in September last year. Break even in March,26.
Started research based on 11.5 years of NIFTY50 1 minute candles from Feburary, 26
backtested over 800+ strategies in Futures trading, option buying, commodities and currency market using Kronos, Mirofish and what not, used NVIDIA rented GPU to churn data,
Claude fable 5 to create python bot and Claude fable 5.1 MAX to verify everything.
Started paper trading from August and went live in October with different lot size (max 3).
Now these are early results however based on massive backtests, I exactly know my maximum possible draw downs including the loosing streak, so I am mentally ready to see those days anytime.
Point is, I believe majority of us are profitable trades however we lose trades in 'front of screen'. If you remove screen and complete access to your trading account and let bot/logic handle it, I beleive the data would be more positive for all of us.
I have 4 bots (python script on server) that looks for trade everyday. All bots have priorities based on 11.5 years of backtest data. All bots update me of entry, trail, SL, exit and end of the day ledger via telegram.
Example, when a trading day starts BOT A will look for conditions to fulfil till 12 PM.
If conditions are not fulfilled, BOT A stands down and now 2nd priority i.e BOT B look for conditions to meet, if failed, it stands down and then BOT C and D.
Amazingly, all bot trades maximum 3 days a week as NOT EVERYDAY is a trading day.
For struggling sellers, research 'trading contest' winners of the world and ask LLMs to apply those logic to Indian markets and see what comes up.
Intrestingly, in option buying, NIFTY produced only 1 strategy with 45% win rate (out of 332 tested ones) and win rate doesn't matters at all, what matters is 'depth' of winning trades. Lower win rate means you need higher profit trade and vice versa.
Finally, the mindset shift is must. EVERY TRADE is unique trade and be it win/loss, the chapter is closed forever. New day, new trade. Simple.
based on massive backtest, paper test and live money, 2 core principals i learned and apply:
Win percent is irrlevent, its the depth of winner vs loser, that matters.
Every trade is unique and should be separate chapter. New day, new you and new trade.
r/IndiaAlgoTrading • u/AccomplishedBet9601 • 24d ago
This is a Windows-based application for NSE F&O analytics, covering all ~220 F&O underlyings. What's in it so far:
- Options: option chain with greeks, PCR analytics, max pain, volatility, straddle & strangle premium charts, and a Strategy Builder with payoff
- Open interest: OI Change, 3-Strike Range (ATM±1 change in OI, re-anchored to spot), OI Flow, Trending OI, a strike-by-strike ledger and OI walls
- Futures: futures board, basis & rollover, OI build-up across the universe (long/short build-up, covering, unwinding), OI vs time
- Market: screener, market overview heatmap with breadth, VIX vs index, FII/DII, and an end-of-day OI scan
- Charts: four panes (spot, future, CE, PE) with indicators; paper-trade or set an alert right from the chart
- Alerts: a no-code builder over price, OI, PCR, IV, build-up and indicators, on your watchlist or all of F&O, with a backtest over past days
- Paper trading: positions and P&L tracked on live prices
- Replay: after the close you can play the day back at 50x with everything above working inside it
The video is the 21 Oct session in Replay:
- Dashboard and watchlist from the open
- BANKNIFTY's Symbol page tabs, then RELIANCE from search
- Charts in four panes, a paper BUY on the 55800 PE and an alert set from the chart
- The alert builder and the alerts feed
- Strategy Builder: buy the 55500 PE, sell the 55000 PE, detected as a Bear Put Spread, sent to paper trading
- Seek forward to 1:44 PM: the PE is up ₹15k, I close it, and the spread is up ₹4k
Analytics only: it doesn't place orders and nothing in it is advice. The engine is Rust and the app is Tauri. The app uses multiple broker APIs.
It's still in beta, so if any manual F&O traders want to review it, DM me.
r/IndiaAlgoTrading • u/Massive_Customer2423 • Sep 30 '26
Verified pnl: https://console.zerodha.com/verified/d7f7e1bb
Capital 60L. Nifty directional options selling.
Algo being run on AWS, written in python.
Creating an algo is easy but sticking to it is difficult, specially during drawdowns. Wish me luck for October!
r/IndiaAlgoTrading • u/No-Occasion988 • Sep 13 '26
Just started exploring algo trading 📈. After my layoff, I have some free time and around ₹40L capital, and honestly, I don’t want to do a job right now. I’m burnt out as hell 😮💨 and just don’t have the energy to hustle for another job at the moment.
My target is pretty simple — even ₹1L/month from ₹40L (around 2.5% monthly) would make me super happy 💰.
But honestly, I’m getting frustrated 😵💫. I’ve been testing strategies from YouTube — VWAP, Power of Stocks’ 5 EMA strategy, and even an SMB Capital MACD strategy (3/9/5). They all look great in videos, but when I actually backtest them properly, the results are really bad 📉.
I’ve attached the MACD strategy screenshot from SMB Capital. I’ve been testing this mindlessly day and night 🤯. Posting it here on Reddit hoping some god-like person sees this and helps me figure out what I’m missing 😂🙏.
r/IndiaAlgoTrading • u/Agreeable-Length-488 • Oct 14 '25
My Price–Volume Derivatives Momentum Strategy (PDM)
A calculus-driven framework for capturing institutional momentum in Indian equities
I recently developed and deployed a systematic strategy that moves beyond traditional chart indicators — leveraging mathematical derivatives of price and volume to detect momentum at its structural origin. The Mathematical Edge – Momentum Through Calculus
Instead of using lagging oscillators, PDM applies first principles from calculus:
𝑑f/𝑑t – Price Velocity: Captures directional momentum with minimal lag
𝑑²f/𝑑t² – Price Curvature: Detects acceleration or exhaustion in trend shifts
𝑑f/𝑑V – Volume Sensitivity: Measures price responsiveness to institutional volume
This trio enables early entries during inflection points, well before conventional trend signals react. Adaptive Stock Universe (NIFTY 500)
Dynamic selection using liquidity filters (>1M daily volume)
No hardcoded symbols — rotates with market leadership
Focused on large-cap, institutionally active equities
Entry Logic (Long Bias Only)
Trend Confirmation: 20 SMA > 200 SMA & Price > 20 SMA
Positive Velocity: 𝑑f/𝑑t > 0
Early Impulse: 𝑑²f/𝑑t² < 0 (momentum peak capture)
Volume Validation: Institutional participation confirmed Risk & Position Framework
Dual Protection: Hard Stop (2× ATR) + Trailing Stop (3× ATR)
Max 25 Positions: Equally weighted exposure
Volatility Adjusted: ATR-based exit calibration per stock
Performance Snapshot (Apr – Oct 2025)
MetricResult
Strategy Return : +42.8%
NIFTY 50 Benchmark : +7.1%
**Max Drawdown :**Controlled via dual-stop architecture
Characteristics : Smooth equity curve, low volatility drag
This validates that structural, calculus-based momentum can outperform traditional indicator-driven frameworks by capturing institution-led shifts earlier. Built on Wizzer's Trader Orchestration Engine.
Daily evaluation with multi-day holding periods
Fully automated logic — no discretionary overrides
Indian market session (09:15 – 15:20 IST)
I'll be happy to give this out for review and stress test.
”#QuantitativeTrading #SystematicTrading #Momentum #AlgoTrading #IndianMarkets #MarketMicrostructure #QuantConnect #MathematicalFinance
r/IndiaAlgoTrading • u/Witty_Astronomer6024 • Jul 31 '26
Broker -- Flattrade
Algo -- Quantman
Index -- only nifty and senex
Strategies -- non directional option selling
Capital -- 20L
July -- 4.7% profit
r/IndiaAlgoTrading
•
u/marketcallsHQ
•
Feb 14 '26
Two years ago, I was trying to solve a very boring problem.
I just wanted to automate one trading strategy from Amibroker.
That’s it.
No startup idea.
No grand vision.
No platform.
Just this:
When I click on the chart, place the trade automatically at my broker.
So I wrote a tiny Amibroker module.
It sent orders to a local Python Flask server.
Flask formatted the request and sent it to AngelOne’s API.
It worked.
It was fast.
It was enough.
Or so I thought.

Once the pipeline worked, I started cleaning it up.
First, a tiny UI.
Then a login page.
Then an order screen.
Then logs.
Then positions.
Then holdings.
Then contract downloads.
At some point I looked at it and thought:
Wait. This is starting to look like a platform.
I gave it a name.
OpenAlgo.
But there was a big problem.
Everything was hardwired to one broker.
That was a dead end.

So I rewrote the entire architecture around one idea.
Support only one broker at a time. But make it easy to swap any broker.
I used the Adapter Pattern.
One common symbol format.
One standard OpenAlgo API.
One generic UI.
Only the adapter changes.
AngelOne came first.
Then Zerodha.
Then Upstox.
And it worked.
The architecture held.

Then came the real world.
Kotak.
5paisa.
Dhan.
Fyers.
Motilal.
And many more.
Each broker had:
Different authentication flows.
Different rate limits.
Different request formats.
Different failure modes.
Kotak was especially painful.
That is when Mr. Siva joined and helped push that integration over the line.
That is when I realized:
This system can scale to anything.

This is where things get weird.
I slowly stopped typing code myself.
At first I used Cline inside VS Code with Claude Sonnet 3.6 via Anthropic API and AWS Bedrock.
Then I moved to Windsurf to use multiple models and refactor faster.
Today OpenAlgo is built using:
Claude Code with Claude Opus 4.5 for core development
Gemini for security testing and fixing issues
ChatGPT for documentation, guides, and explanations
OpenAlgo is not written by one AI.
It is orchestrated by multiple AI systems under human supervision.
Today:
99.9 percent of the code is written by AI.
I only focus on:
Architecture.
Decisions.
Debugging.
Edge cases.
The bottleneck is no longer typing.
The bottleneck is thinking clearly.

Once TradingView webhooks worked, I got curious.
What about MetaTrader 5?
Different ecosystem.
Different scripting model.
One day later, with AI helping:
MT5 integration was done.
That changed everything.
Soon OpenAlgo could accept signals from:
Amibroker
TradingView
ChartInk
MetaTrader 5
Python, GO, NodeJS, C#, Java, Rust
Excel
Google Sheets
GoCharting
Everything flows the same way:
Signal. Webhook. OpenAlgo. Broker.
Once the core was stable, growth exploded.
Today OpenAlgo supports 25 plus brokers:
5paisa, AliceBlue, AngelOne, Compositedge, Definedge, Dhan, Firstock, Flattrade, Fyers, Groww, IBulls, IIFL, Indmoney, JainamXTS, Kotak Neo, Motilal Oswal, Mstock, Paytm Money, Pocketful, Samco, Shoonya, Tradejini, Upstox, Wisdom Capital, Zebu, Zerodha.
All of them.
Same API.
Same WebSocket.
Different adapter.
OpenAlgo already ships with SDKs in:
Python
Java
DotNet
Rust
NodeJS
Go
Many mid size brokers do not offer this.
Even some large brokers do not.
With OpenAlgo:
Write once. Run anywhere.
Every broker has its own chaos.
Different APIs.
Different streams.
Different formats.
OpenAlgo hides all of that.
Your strategy sees:
One REST API.
One WebSocket.
One symbol format.
One execution model.
Change the broker. Not the code.
OpenAlgo includes observability by default.
You can see:
Which strategies fired.
Latency.
Failures.
Execution results.
Exact reasons.
No more blind automation.
And that is a compliment.
You can:
Start strategies.
Stop strategies.
Switch live or analyze mode.
Track everything in real time.
Signals can come from:
TradingView
Amibroker
MetaTrader
ChartInk
Excel
Google Sheets
N8N
GoCharting
All through the same system.
At some point, the backend outgrew the frontend.
So we rewrote the UI completely.
OpenAlgo v2 is now built on:
React and TypeScript.
Vite.
Tailwind with shadcn and Radix.
Zustand.
TanStack Query.
Not because it is trendy.
Because:
The next decade of features depends on it.
Old days:
No types.
No linting.
Manual testing.
Fragile UI.
Now:
TypeScript everywhere.
Biome.
Vitest and Playwright.
Proper component system.
Real documentation.
OpenAlgo is no longer a hobby project.
It is now real infrastructure.
In early 2024, OpenAlgo was tiny.
Then AI first development changed everything.
Apr 2024 about 8,000 lines
Dec 2024 about 19,000 lines
Feb 2025 about 50,000 lines
Aug 2025 about 144,000 lines
Dec 2025 about 300,000 lines
Jan 2026 about 345,000 lines
At the current pace:
Next month, OpenAlgo is projected to cross 500,000 lines of code.
This is not about bloat.
This is about velocity.
One person orchestrating AI at the output of a full team.
Let me be honest.
Some hard parts are already done.
Full risk engine
Strategy orchestration
Multi broker routing
Unified API layer
Logs and observability
The risk engine is already live.
The next big milestone is:
Backtesting modules using Backtrader
Historical simulation
Strategy replay and analysis
So you can prove your system before risking real money.
People ask:
Why not just use the broker API directly?
Because sooner or later you ask:
How do I monitor trades?
Where do I store logs?
How do I replay history?
How do I test before going live?
How do I switch brokers?
That is when you realize:
The broker SDK is not enough.
It is:
A full stack, open source trading automation framework.
It handles:
Strategy hosting.
Execution.
Observability.
Scaling.
Security.
Infrastructure.
So you do not have to rebuild it yourself.
OpenAlgo uses HTTPX with connection pooling.
Latency drops to about:
50 to 120 ms
Compared to:
150 to 250 ms in plain scripts.
It also includes:
Latency monitoring
WebSocket broadcast layer
One stream powering many strategies
OpenAlgo ships with:
CORS and CSP headers
CSRF protection
Rate limiting
Session management
Audit trails
Sandboxed strategy execution
Run it:
Locally.
In Docker.
On cloud.
OpenAlgo is AGPL licensed.
You get:
Full source code.
Right to modify.
Right to self host.
No per order fees.
No vendor lock in.
And yes.
You can build commercial systems on top of it.
OpenAlgo started as:
Let me automate one strategy.
It became:
A tool.
Then a system.
Then a platform.
Today it is:
About to cross 500,000 lines.
99.9 percent AI written.
Human supervised.
Used by real traders.
Growing every day.
If you are:
A trader who wants control.
A developer who hates black boxes.
Someone who wants automation without giving up ownership.
You will feel at home with OpenAlgo.
And honestly:
We are just getting started.
r/IndiaAlgoTrading • u/curioussharma-007 • 15d ago
As you know I am an algo-trader and one question that mant members here ask is how to start with algo trading, I use Claude LLM since last 9 months now, so here's the setup to help you get started:
It’s not a shortcut; it’s a sequence. Skip a step and the later ones lie to you.
1. Decide the one rule you want to test — in plain English first.
“Buy a weekly ITM call when a 10-minute bar closes above the last swing high, stop at the last swing low, exit at a time or on the opposite signal.” If you can’t write it in three sentences with every number in it (bar size, indicator settings, which strike, stop, exit time), you don’t have a strategy yet, you have a feeling. Write it down before you test it, including what result would make you reject it. This is the step everyone skips.
You can test your strategy basic on faketrades.in (100% free, no signup etc)
2. Get data you can trust.
1-minute index data (NIFTY/BankNifty) and historical option prices. Your broker’s API gives candles; FYERS and Zerodha Kite Connect both have historical endpoints. Save everything locally as files — never test against live API calls.
Real option prices matter. Backtests that price options with a formula look great and lie; weekly options have spreads, expiry decay and gaps that a formula hides.
3. Build the backtest with an LLM — but YOU own the rules.
Open Claude (or similar), paste your written rule, and ask it to write a Python script that: loads your files, generates signals bar by bar, fills at the next bar (never the same bar), charges real costs (brokerage, STT, exchange fees, slippage of ~0.1% per side), and outputs a trade list as a CSV. Then ask it for: total P&L, win rate, worst drawdown, worst single trade, profit per year, and first half vs second half of the sample. A good LLM does this in an afternoon. Your job is to check that the trades it shows match your rule — open a few on a chart.
4. Make the result reliable before you believe it.
Split the sample: it must make money in both halves and in most years.
Run a placebo: random entries with the same exits. If the placebo earns about the same, your “edge” is the exits or the market, not your entry.
Wiggle every parameter ±20%. If profit collapses, it’s curve-fit.
Charge costs twice as high as you think and see if it survives.
Fix the lot size. Never let the backtest size up after wins — that’s how you fool yourself. If it fails any of these, record it and move on. Most ideas fail. That’s the point of the process.
5. Write the bot as a copy of the backtest, not a new program.
The bot should use the same indicator code as the backtest, run on a schedule every minute during market hours, write every signal, fill and exit to a log and a JSON file, and message you on Telegram. Ask the LLM to also write a test harness — a fake broker that returns scripted quotes and order outcomes — so you can simulate a rejected order, a dead token, a restart mid-trade, without the market.
6. Paper-trade on a server, not your laptop.
A small Linux VPS (Hostinger, roughly ₹1,800/month) with Python and a cron job is enough. Run the bot in paper mode: it reads real quotes, records what it would have done at the real bid/ask, places nothing. Compare its trades to the backtest day by day for a few weeks. If the paper record differs from the backtest, the bot has a bug or the backtest has a lie — find which before anything else.
7. Switch to real money only through a lock.
Put the live switch behind two things: a flag file and an acknowledgement line in the server’s environment file, so you can’t flip it by accident. Start with one lot. The bot must never sell an option it doesn’t hold (check the broker’s positions before every sell), must retry an exit until it’s confirmed, and must halt and message you if anything is unknown. Have someone — or another LLM session with no memory of the build — review the order path specifically to break it. Ours found two serious bugs we’d never have seen.
8. Costs, roughly, to get to a running paper system:
Claude Pro (or equivalent): ~₹2,000/month (I use Fable, so for me its Rs 20,000/mo)
Broker API (Kite Connect ~₹500/month; FYERS API is Rs 500/mo) + historical data
VPS: ~₹1,800/month
11 years historical backtest data from GDFL: Rs 15,000/year/index (+ GST)
Your time: 3–6 weeks of evenings for the first system, most of it on steps 1, 4 and 6
Capital: whatever one lot of the option costs plus the backtest’s worst drawdown × 2
9. What not to do.
Don’t start with selling or futures — a buyer’s loss is capped at the premium; a seller’s isn’t, and a bot bug with unlimited risk is how accounts die. Don’t trust a backtest that uses the same bar for signal and fill. Don’t change a running bot’s rules because this week went badly; change them only when a new backtest passes step 4. Don’t tell the bot what you hope. Tell it what you’ll accept.
That’s it. The algo part is the easy part — an LLM writes the code. The discipline of steps 1, 4 and 7 is the whole game.
r/IndiaAlgoTrading • u/BeginningAd4632 • Jun 26 '26
r/IndiaAlgoTrading • u/Straight-Trifle9660 • 8d ago
To avoid intraday noise and emotional trades, I run a custom screener in Google Colab strictly after 3:30 PM IST using confirmed 1-Day closing candles.
Instead of guessing bottoms, it runs the entire Indian market through a strict technical funnel:
Liquidity & Regime: Starts with 5,314 stocks >> filters for Price > ₹50 & Turnover > ₹5 Cr (1,043 stocks) and confirms Nifty 500 > 50 EMA.
Trend & Strength: Stage 2 uptrend (EMA 20 > 50 > 200), within 20% of 52W High, and outperforming Nifty 500 (245 stocks).
Setup & Tight Risk: Pullback near 20 EMA with Stop Risk <= 6.5% (71 stocks).
Trigger: Green candle closing above previous day's high (5 stocks) + volume expansion (1 stock).
Today's Output: Tier A (Entry Ready): NAZARA cleared every filter including volume expansion (Entry: ₹430.50 | SL: ₹407.25 | Risk: 5.4%).
Tier B (Watchlist): RATNAVEER, YASHHV, ASMTEC, and SAMBHV and many more are coiled tight and ready for a volume breakout in the coming sessions.
I simply set my GTT orders at night based on the exact Entry/SL calculated by the script and let the market do the rest.
Disclaimer: Sharing my personal workflow for educational purposes only, not SEBI-registered advice.
What’s your post-market scanning routine
r/IndiaAlgoTrading • u/lazy_coder3 • Oct 19 '26
Gross P&L now stands at ₹30k
🎯 Target: ₹3 lakh in additional profit
💰 Trading capital: ₹10 lakh
Man, investing in the Indian stock is dead
GUYS , START LEARNING OPTION SELLING
Guys, treat option selling like a business—with discipline, defined risk, and realistic expectations.
I’m not talking about randomly selling OTM options.
Hypothetically, if your investments return 7% annually and you use pledged holdings for option selling, targeting 1.5% a month gives you a simple annual target of 18%. On paper, that adds up to 25% before costs and taxes. Even 20% would be a huge return.
If you’re an NRI with easier access to global investment opportunities, I honestly envy those choices right now.
r/IndiaAlgoTrading • u/WinterSpecial7970 • Jul 03 '26
Reuploading it since the previous post was taken down by bot. Honestly I am pretty new to this platform (old school) , I would request moderator to give chance before removing it. Looks like putting telegram link caused the post to get deleted.
Anyway I got lot of messages due to previous post, and most people where curious to see did I started trading with real money. And yes I did. I started putting my real money since last 2 months. Attaching the p&l statement. Some unrealized profits are mainly from previous investment which I did way back. But in short I was able to get decent returns of 6k . I deployed closed to 60k. There might be few bugs here and there because as I said earlier, I am really short on time as most of my time goes in looking after my aging parents, my job , my health and my wife. I don't know where this project will go but I am happy that I built something out of the frustration to help me in my investment journey. Was completely fed with financial gurus. Added few more images of my dashboard. And for god sake don't remove this post.
======================================================================
Old post content
Disclaimer: I am not a financial advisor or a SEBI registered entity. I am an Machine Learning engineer working in industry for more than 8+ years.
Like most developers, I wanted my savings to work for me, but the retail trading space is full of traps:
Overfitted AI Bots: Feeding raw stock prices into LSTM/deep learning models just memorizes noise. They look perfect in backtests, but blow up live.
Lagging Indicators: 1970s charts (RSI/MACD) are lagging averages that get front-run by HFT servers at microsecond speeds.
Shitty performance of current Mutual Funds : 90% of the stocks has given negative return in last 2 years. I was tired of handing over commission to them. Hence decided to try something to build
So, After more than 8 months of struggle, I built StockMind—an automated quant engine focused on Cash Equity Swing Trading.
SEBI states that 90% of retail F&O traders lose money. The math is structurally rigged against us:
Theta (Time Decay): Options decay to zero on expiry. In cash equity, you have holding power to wait out drawdown cycles.
Leverage trap: 5x margin leverage means a small 2% market dip triggers a force liquidation at the absolute bottom.
Friction drag: Frequent options trades bleed up to 10-15% of your capital annually in STT, GST, and brokerage fees.
Instead of predicting price ticks, the engine uses structural probability:
Sector Rotation: Ranks sector indices daily using Relative Strength (RS) against the Nifty 50. All buy signals in weak sectors (bottom 30%) are automatically blocked.
Quality + Momentum Screen: Excludes high-debt companies (Debt-to-Equity > 1.5) and prioritizes high return (ROE > 15%), filtering only macro uptrends (Price > 150-day SMA).
Friction-Adjusted Backtests: Adds a flat 0.25% cost per trade to simulate real-world STT and bid-ask slippage.
Backtested metrics over the last 5 years (adjusted for 0.25% cost per trade):
CAGR: [24.5%] | Max DD: [-12.3%] | Sharpe: [1.65]
Here is my current live paper-trading performance. I have started trading with real money as well. Will share the result soon in next post.
Dashboard Image

Paper Trading results

Manual Login: Have to log in manually to Zerodha Kite every morning to generate the API session token (no free automated headless login).
Daily timeframes only: Runs end-of-day data for swing trading. Not designed for day traders. Its more for medium to long term perspective.
Live App: https://www.thestockmind.com
Would love to get feedback from other developers and quants on the slippage modeling and sector rotation index.
r/IndiaAlgoTrading • u/Calm_Comparison_713 • Sep 27 '26
Last week I was on vacation and didn’t touched my account as I was totally out of network area and my Vi network totally sucked (switched request to Airtel already placed) and it worked really well with 3-4 lots which I did setup in my algo.
How was your experience when you had chance to left your capital to algos??
Also shared some memorising view I captured during my trip to mountains.
r/IndiaAlgoTrading • u/_pnkj_15 • Jun 05 '26
Hi everyone,
I'm Pankaj, a Software Engineer and Quant Developer who has worked at Indian stockbrokers building algorithmic trading systems, broker integrations, market data platforms, and trading solutions.
I'm creating a Zero-to-Hero Algorithmic Trading Series where we build a complete automated trading system from scratch.
No paid course, no community subscription, no upselling — just sharing real-world lessons from building algorithmic trading systems at stockbrokers, where the code is responsible for executing trades worth crores of rupees.
Already published 45+ videos, including 30+ videos in the Algo Trading Series.
What we've covered so far:
✅ Zerodha & Fyers API Integration
✅ Automated Token Generation (No Daily Manual Login)
✅ TOTP Automation
✅ Multi-Broker SDK Development
✅ Order Placement, Positions, Holdings & Funds APIs
✅ WebSocket Integration
✅ Live Market Data Processing
✅ Concurrent Data Handling
✅ Real-World Algo Trading Architecture
Coming next:
🚀 Deploy Algos on Free Cloud Servers
🚀 Telegram Signal Integration
🚀 Auto Start/Stop Algos
🚀 Automated Token Refresh on Server
🚀 Complete Strategy Development
My philosophy is simple:
Algo means automation. If you're manually generating tokens every day, you're still doing manual trading operations.
If you have questions about Algo Trading, Broker APIs, WebSockets, Automation, Backtesting, Strategy Development, or Trading System Design, drop them below.
Ask me anything related to algorithmic trading. Whether you're a beginner or already building algos, I'll try my best to answer every question based on my real-world experience working at stockbrokers and building production trading systems.
YouTube: Pankaj Saini
Handle: AlgoWithPankaj (YouTube, Instagram & Twitter)
Happy to help fellow Algo Traders 🚀