
How good are these results?
Ask me anything. Happy to answer and I would love to know whether this strategy is good or not. Because I'm new to Algo.

Ask me anything. Happy to answer and I would love to know whether this strategy is good or not. Because I'm new to Algo.
Most market forecasters have the same problem.
They post a forecast in the morning. The market closes. They move on.
Nobody measures. Nobody improves.
I decided to change that.
The Problem With "I Was Right"
After years of analyzing Nifty 50 intraday movements, I realized something uncomfortable.
I could look at my forecast at 3:30 PM and say "I got the direction right." But that told me almost nothing useful.
Was I right at 9:15 AM or only after 2:00 PM? Was my model 10 minutes early or 10 minutes late? Did I get the morning session right but miss the afternoon? Was Model A better than Model B today — and by how much?
These questions had no answers. Until I built something to answer them automatically.
What I Built
A real-time Nifty 50 forecast accuracy engine that runs , updates every minute during market hours, and computes 30 different metrics automatically.
It looks like a standard chart. But under the hood it is doing something most trading tools don't do — comparing forecast shape against live market data, minute by minute, all day long.
Here is what it tracks:
Correlation metrics:
Direction accuracy:
Magnitude accuracy:
Time shift detection:
Session analysis:
Trend accuracy:
Overall:
The Discovery That Changed Everything
The most surprising metric was time shift.
For weeks my correlation scores looked decent — around 65 to 70 percent. I thought that was reasonable. Then I added time shift detection.
It showed my model was consistently running 10 to 15 minutes ahead of the actual market.
The forecast shape was correct. The timing was off.
Once I knew that, I could account for it. Within two weeks my full day correlation jumped from 68 percent to 81 percent — not because my model got better, but because I finally understood how it was wrong.
You cannot fix what you cannot measure.
Running Multiple Models
The second insight came from comparing models side by side.
I run three different forecast approaches each morning. Before this tool I would look at them visually and pick the one that "felt" most reasonable.
Now I have a comparison table. Every metric. Every model. Automatically ranked.
Some days Model A wins on correlation but Model B wins on direction accuracy. Some days one model nails the morning session while another gets the afternoon right.
The table shows exactly where each model is strong and where it falls apart. That is information you cannot get from looking at lines on a chart.
The chart itself has full interactions — hover tooltips, crosshair, zoom, pan, timeframe switching from 1 minute to 30 minutes, moving averages. What the Hover Shows
When you move your cursor over the chart you see:
In the analysis table every cell highlights the best performer in green. You can see at a glance which model is winning, which metric each model leads, and what the composite score is right now.
What This Is Not
This is not a trading system. It does not give buy or sell signals.
It is a measurement and improvement tool. Its job is to tell me honestly how accurate my forecast was today — in 30 different ways — so I can understand my model better and improve it over time.
The goal is not to be right every day. The goal is to understand exactly how and when and why I am wrong, so the model gets better over time.
What Is Next
will update and have real time from Monday or whatever possible at earliest
The Bigger Point
Anyone can post a forecast. Very few people measure it rigorously.
If you are serious about market forecasting — intraday or otherwise — you need a measurement system as rigorous as your forecasting system.
Otherwise you are flying blind and calling it analysis.
Build the feedback loop. Measure everything. Improve systematically.
That is how forecasting becomes a skill rather than a guess.
*I publish daily Nifty 50 intraday forecasts along with real-time accuracy tracking. Follow for updates on methodology, results and the ongoing development of this tool.*They post a forecast in the morning. The market closes. They move on.
Nobody measures. Nobody improves.
I decided to change that.
The Problem With "I Was Right"
After years of analyzing Nifty 50 intraday movements, I realized something uncomfortable.
I could look at my forecast at 3:30 PM and say "I got the direction right." But that told me almost nothing useful.
Was I right at 9:15 AM or only after 2:00 PM? Was my model 10 minutes early or 10 minutes late? Did I get the morning session right but miss the afternoon? Was Model A better than Model B today — and by how much?
These questions had no answers. Until I built something to answer them automatically.
What I Built
A real-time Nifty 50 forecast accuracy engine that runs , updates every minute during market hours, and computes 30 different metrics automatically.
It looks like a standard chart. But under the hood it is doing something most trading tools don't do — comparing forecast shape against live market data, minute by minute, all day long.
Here is what it tracks:
Correlation metrics:
Direction accuracy:
Magnitude accuracy:
Time shift detection:
Session analysis:
Trend accuracy:
Overall:
The Discovery That Changed Everything
The most surprising metric was time shift.
For weeks my correlation scores looked decent — around 65 to 70 percent. I thought that was reasonable. Then I added time shift detection.
It showed my model was consistently running 10 to 15 minutes ahead of the actual market.
The forecast shape was correct. The timing was off.
Once I knew that, I could account for it. Within two weeks my full day correlation jumped from 68 percent to 81 percent — not because my model got better, but because I finally understood how it was wrong.
You cannot fix what you cannot measure.
Running Multiple Models
The second insight came from comparing models side by side.
I run three different forecast approaches each morning. Before this tool I would look at them visually and pick the one that "felt" most reasonable.
Now I have a comparison table. Every metric. Every model. Automatically ranked.
Some days Model A wins on correlation but Model B wins on direction accuracy. Some days one model nails the morning session while another gets the afternoon right.
The table shows exactly where each model is strong and where it falls apart. That is information you cannot get from looking at lines on a chart.
The chart itself has full interactions — hover tooltips, crosshair, zoom, pan, timeframe switching from 1 minute to 30 minutes, moving averages. What the Hover Shows
When you move your cursor over the chart you see:
In the analysis table every cell highlights the best performer in green. You can see at a glance which model is winning, which metric each model leads, and what the composite score is right now.
What This Is Not
This is not a trading system. It does not give buy or sell signals.
It is a measurement and improvement tool. Its job is to tell me honestly how accurate my forecast was today — in 30 different ways — so I can understand my model better and improve it over time.
The goal is not to be right every day. The goal is to understand exactly how and when and why I am wrong, so the model gets better over time.
What Is Next
will update and have real time from Monday or whatever possible at earliest
The Bigger Point
Anyone can post a forecast. Very few people measure it rigorously.
If you are serious about market forecasting — intraday or otherwise — you need a measurement system as rigorous as your forecasting system.
Otherwise you are flying blind and calling it analysis.
Build the feedback loop. Measure everything. Improve systematically.
That is how forecasting becomes a skill rather than a guess.
I publish daily Nifty 50 intraday forecasts along with real-time accuracy tracking. Follow for updates on methodology, results and the ongoing development of this tool.
I wanted to test certain strategies and everything out there was either too complex to actually use or too expensive, so I ended up building this myself.
What it can do:
On data quality: OHLCV data goes back to 2005 from official NSE bhavcopies, adjusted for splits/bonuses/reverse-splits, and cross-verified for demergers/spin-offs on the clearest cases — so a corporate action doesn't show up as a fake crash in your results.
To be clear about what this is: it's a swing-trading strategy backtester — works off daily OHLCV data, so it's built for multi-day holding strategies, not intraday/scalping.
Still very much a work in progress. If you've got suggestions for what to improve, I'd genuinely value the input — and I'll give access to anyone who offers something useful.
Hey everyone,
A few days ago, I shared a post about building StockMind—a cash swing trading engine I coded to escape the F&O trap.
Over more than 200 people of you registered to check it out, and the feedback was a massive reality check. Here is a crisp retrospective on what this project has taught me about math, code, and transaction friction. May be you can incorporate it in your investing journey.
As an ML engineer, my instinct was to throw complex deep learning models (like LSTMs) at price data. It failed. Stock prices are highly non-stationary; deep models just memorize historical noise (overfit) and blow up live.
I threw out the neural networks and went back to four simpler mathematical rules that actually work (At least it worked for me till now):
Backtests assume you buy and sell at the exact closing price for free.
No single strategy wins in every market regime. We run three to balance the portfolio:
We want to write a cron job and let it run forever. But because Zerodha doesn't support free headless logins, I still have to manually log in to Kite every morning to generate the session token. It's a 30-second reminder that "fully automated" systems usually have a manual starting key. I can automate it but the process would require me to share my credentials inside the script which I don't want.
I was terrified of sharing this because the win rate is only ~46% and the CAGR isn't 200%. Also it's the first time I was sharing one of the project in public. But people are tired of get-rich-quick scams. The raw stats brought in 150+ folks who visited the website and immediately pointed out math loopholes (like survivorship bias) that are helping me optimise the engine.
Would love to hear from other builders—what was the biggest gap between your backtest and live execution?
Hey everyone,
We are a team of 4 undergrad students working on a algo-trading startup, and we are at the stage where we need a reality check from people who actually understand this space. We are also looking for a co-founder to join us.
The Problem We Noticed:
Right now, the retail algo-trading space is obsessed with "1-click automation." Platforms give you pre built strategies like (Stratzy) where transparency is not high or the tools to automate a strategy.
A strategy might have an 80% win rate in a bull market, but if the market regime shifts into a choppy sideways trend or a macro crash, that exact same strategy will trigger a "tail event" (like a slow bleed of consecutive small losses, or getting caught in an overnight gap). The user loses money, blames the app, and churns.
Our Idea: The "Historical Repeat" Scanner
Our motto is: "History should repeat itself, not your losses."
Instead of just giving users a blind 1-click bot, we are building an intelligence layer. Here is how it works:
Essentially, we aren't just selling the execution tool; we are selling the timing. We tell the user exactly when to pull the trigger based on hard historical data, so they only trade when the profitable part of history is repeating itself.
Why We Need Your Honest Feedback:
We are young, we are hungry, but we know we might have blind spots. We’d love your brutally honest thoughts on:
Looking for a Co-Founder:
As a team of 4 undergrads, we have the vision, the hustle, and we are currently mapping out the architecture. However, we are looking for a key co-founder to join us
We are specifically looking for:
If you are interested in joining, DM me!
Thanks in advance for the feedback. Tear the idea apart—we need it!
Full disclosure: I used AI to help me rewrite and structure this post to make it readable and organized, but the core concept, the problem we're solving, and the actual vision are 100% ours.
Hi, I'm a little new here. Basically let's get things straight. I've incurred a loss of 7L. It's okay. I might get all back or it's just life. I'm new to algo trading and idk much about it. I have a system. Built from scratch by myself. It works very well. Working for the past few weeks. It executes orders very well. The timing and tracking. The only thing that I lack is a decent strategy. Currently I've tried two and both are nicely failing. If anyone of you can help me with a decent strategy or suggest some book or something that would be very helpful.
I trade Nifty/BankNifty options actively, and for years my setup was a mess of Excel sheets, broker windows, and random OI websites that update once every 3 minutes.
So over the last few months I built MarketGrok (marketgrok.com) — a Bloomberg-style terminal for NSE F&O, as a solo developer. No team, no funding. Just me, a laptop, and way too much chai.
What's inside:
War Room — one screen with Composite Score, PCR, Max Pain, OI Buildup, sentiment meter, option chain, live news feed, top movers, and 34 global indices. This part is completely free.
Live NSE data for 200+ F&O stocks — no dummy/delayed data anywhere. That was rule #1 while building.
Greeks computed server-side using Black-Scholes, because broker APIs don't actually give you Greeks. Had to build that math myself.
OI Pulse, IV Studio, PCR Radar, Greeks Desk — the deeper Pro tools.
Charts built from scratch — CPR (matches Zerodha's calculation exactly), Ichimoku with forward projection, 13 drawing tools, works on mobile touch.
Breakout scanner that beeps when a stock hits a 500-day high. Simple, but it's caught moves I would've missed.
Some honest lessons from building this:
Payment gateways in India hate anything trading-related. Razorpay rejected me outright for the category. Took three attempts before getting approved.
A race condition in my signup flow silently created duplicate users for ~25% of registrations. Found it only after going live. Always use atomic upserts, folks.
Timezone bugs will humble you. IST + JavaScript's toLocaleString = pain.
The War Room is free to use, and Pro tools have a 7-day free trial (no card needed) if you want to poke around.
Not here to hard-sell — genuinely want feedback from people who actually trade F&O. What's missing? What would make this a daily-use tool for you?
Disclaimer: This is an analytics tool, not investment advice. I'm not a SEBI-registered advisor. Trade at your own risk.
Anyone with new ideas to be included in quant currently building a hurst model on an individual level
Hey everyone,
Blown away by the response to yesterday’s launch—100+ signups in the first 12 hours!
I just pushed v1.1 with performance updates and user-requested features. Here is what's new:
Still analysing whether to move from Nifty 50 to Nifty 100 because of below issues. As of now I am keeping the connection with Zerodha a manual process.
429 throttle errors). But can be managed.Check it out:
Drop your thoughts below or hit the feedback button on the site! 🚀
I am working with antigravity. I want to create a system wherein i type the name of the company and the ai/agent fetches all the concalls/annual reports numbers etc. Then info gets feeded into LLM for further analysis. Analysis step would be customised according to my requirement. What i want to analyse and how should it display results will be customised by me. In future i want to add 2 LLM for last process. I have absolutely no clue how to go by this. I’m learning so not familiar with other technical terms.
Need tips and advices and help me to learn and guide me if you can
Last year I quit my quant dev job to trade full-time. Things were going great initially, I made around 50% on a ₹4 crore portfolio. But since the end of April, everything has changed.
I’m down about ₹70 lakh this FY (over 15%). Both my directional and gamma scalping strategies have been struggling, and higher slippage and STT aren’t helping either.
Are other quants still consistently profitable in the current market, or are you seeing the same thing? I’m honestly considering going back to a job.
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:
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:
Instead of predicting price ticks, the engine uses structural probability:
Backtested metrics over the last 5 years (adjusted for 0.25% cost per trade):
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
Would love to get feedback from other developers and quants on the slippage modeling and sector rotation index.
I heard 39 percent of the profit is the tax u have to pay if ur profit is more than 1 cr, does any one have any idea on saving on taxes
After 5 months of building my own algo trading platform, I’m finally seeing consistent results. 🚀
I wanted to share a small milestone.
For the past 5 months, I’ve been building and refining my own trading platform after work- coding, backtesting, fixing bugs, and optimizing strategies.
There were plenty of late nights where I wasn’t sure if the effort would ever pay off.
Current setup:
4 MCX algos
2 for CrudeOilM
2 for NatGasMini
Results (1 lot each | Since 8 May):
🧿 8 profitable weeks in a row
❌ Zero losing weeks
🚀 Live deployment started 10 days ago
Capital: ₹76,000
Net Profit: ₹48,000
ROI: 60%
I know backtests aren’t the same as live trading, which is why I’ve already started deploying the strategies live. So far, it’s been encouraging and has given me confidence to keep improving.
Still a long way to go, but it’s satisfying to see months of hard work finally turning into something real.
Would love to hear from others building their own trading systems. What’s been the hardest part of your journey?
​
Hi everyone,
I'm looking for historical NIFTY 50 OHLC data from 2007 to 2026 for a personal backtesting and research project.
If anyone has data in any of these timeframes, I'd really appreciate it:
- 5-minute (preferred)
- 15-minute
- 30-minute
- 1-hour
CSV or Excel format would be great, but any usable format is fine.
If you have the data and don't mind sharing it, I'd be very grateful. And if you don't have it but know where I can get it, I'd appreciate any recommendations as well.
Thanks a lot!
I'm trying to connect it from Claude, there is no option showing
An autonomous options trading agent for NIFTY + BANKNIFTY. Instead of coded rules like "if RSI > 70 sell" or "EMA crossover → buy," the agent sends market data to Claude (Anthropic's LLM) every 15 minutes and lets it decide: trade or wait, CE or PE, which strike, when to exit.
The idea: an LLM can weigh 15+ inputs simultaneously and make contextual judgments that fixed rules can't. "Regime is bullish and 6/7 signals agree, but VIX just spiked 3 points in 10 minutes — wait." No indicator combo can reason like that.
Whether this actually works better than a well-tuned rule-based system is what I'm testing. Week 1 results say: maybe, but the exits need serious work.
Market Data (Upstox WebSocket + REST API)
│
▼
┌─────────────────────────────┐
│ Data Layer │
│ Spot, Option Chain, Greeks,│
│ VIX, PCR, FII/DII, OI │
│ 15min/5min candles │
└───────────┬─────────────────┘
▼
┌─────────────────────────────┐
│ Agent (Maker) │
│ Claude Haiku — proposes │
│ trade with reasoning │
└───────────┬─────────────────┘
▼
┌─────────────────────────────┐
│ Checker (Validator) │
│ Claude Sonnet — reviews │
│ and approves/rejects │
└───────────┬─────────────────┘
▼
┌─────────────────────────────┐
│ Paper Broker │
│ Real bid/ask fills │
│ Real costs (Upstox API) │
│ Real margin checks │
│ Trailing SL on live ticks │
└─────────────────────────────┘
Dual-agent validation: A cheaper model (Haiku) proposes trades. A smarter model (Sonnet) reviews every proposal before execution. Think of it as trader + risk manager. ~Rs 100-150/day API cost for both combined.
Risk monitor: Background thread checks every few seconds — trailing stop-loss updates on real WebSocket ticks, daily loss halt (4% of capital), smart EOD exit (closes expiring/losing positions at 3:15 PM, holds profitable ones overnight).
I saw a post here recently: "RS + VWAP on 5min, profit factor < 1." And a comment: "Only indicator based algos will not be consistent in long run." That matched my experience.
The problem with indicator rules isn't the indicators — it's that markets change context. A RSI 70 during a breakout is a continuation signal. A RSI 70 at resistance is exhaustion. A coded rule treats them identically. An LLM can read the surrounding context and distinguish them.
The counter-argument (which I take seriously): maybe Claude is just doing the same pattern matching with extra steps and extra cost. Week 2 will test this specifically — I'm auditing whether Claude actually reasons differently with contextual data, or just mechanically follows regime + RSI like a fancy indicator algo.
This is the part I'm most confident about. Most paper results are fantasy because they fill at LTP with zero slippage. Ours doesn't:
| Factor | Our Approach |
|---|---|
| Fill price | BUY at ask, SELL at bid — real WebSocket depth data, ~1 tick/sec |
| Slippage | Depth-based + VIX/time jitter. Extra penalty if spread > ₹5 |
| Costs | Real Upstox brokerage API (not estimated). STT, exchange txn, GST, stamp duty — all from broker |
| Margins | Real Upstox margin API. Can't enter trades the account can't hold |
| Position monitoring | WebSocket FO ticks for open positions. Trail SL updates on real price movement |
Capital: ₹5,00,000. NIFTY + BANKNIFTY options, BUY-only directional, 1-2 lots.
| Day | Trades | What happened | Realized P&L |
|---|---|---|---|
| Jul 1 | 3 | Entries correct, exits broken. FO ticks wired mid-day. | ₹0 (held overnight) |
| Jul 2 | 3 | All entries caught direction right. Trail SL too loose — gave back ₹11K unrealized on one trade. | +₹1,746 |
| Jul 3 | 3 | New trail SL deployed (8%→3%→2%). Agent skipped all afternoon cycles. | Testing, not trading |
Net Week 1: +₹1,746 realized. Not meaningful. The real finding is below.
1. Trail SL was the #1 problem, not entry signals. On Jul 2, a BANKNIFTY position hit +₹6,295 unrealized within 10 minutes of entry. By EOD it was -₹5,989. That's an ₹11K swing because the trailing stop was set at 35% — way too loose for options that can move 10% in minutes. Fixed to 8%→3%→2% progressive tightening. The entry was right. The exit let the profit evaporate.
2. Claude enters on Cycle 1 every single day. 9:30 AM, first cycle, Claude sees "regime BULLISH, 6/7 signals agree" and enters immediately. Never waits for a pullback, never says "let me observe for 30 minutes." In 5 out of 6 trading days, Cycle 1 = instant entry. This looks like pattern matching, not reasoning.
3. A 0.2% price-move gate killed the entire afternoon. I had a gate: "if market moved < 0.2% since last cycle, skip." On Jul 3, after all positions exited by 10:55 AM, the market went flat. The gate skipped every cycle from 11:17 to market close. With zero positions open, the agent should have been scanning for new entries, not sleeping. A 3-line fix, but it cost an entire afternoon.
4. Cost API was returning ₹0. Upstox brokerage API returns {"charges": {"total": 49.32}} but my code read data.total instead of data.charges.total. Every trade showed Costs = ₹0.00. The kind of bug that looks fine in logs until you check the numbers.
Inspired by that excellent "₹25L → ₹2.7Cr backtest autopsy" post here — I tagged every system input:
| Input | Tag |
|---|---|
| Slippage (depth-based) | MEASURED — real bid/ask |
| Trading costs | MEASURED — real Upstox API |
| Margins | MEASURED — real Upstox API |
| Trail SL percentages | ASSUMED — 3 days data |
| Regime detection | ESTIMATED — EMA/SuperTrend, not validated |
| Cooldown (30 min) | ASSUMED — picked a number |
| Daily loss limit (4%) | ASSUMED — reasonable but arbitrary |
| Taxes | NOT MODELED |
4 measured, 2 estimated, 4 assumed. The assumed column is the real risk.
905 unit tests. No paid tools — everything runs on Upstox free API + Anthropic API (₹100-150/day). Code is private but happy to share architecture details in comments.
[ Removed by Reddit on account of violating the content policy. ]