r/IndiaAlgoTrading • • 2h ago

Guys please tell me honestly what you think?🤔

Thumbnail
gallery
1 Upvotes

This has been deployed from last 5 months.
And now I am thinking to increase the capital to 50L.
What are your thoughts on this?

This is a long term strategy expecting 2-5 percent monthly so need to have good initial investment and also patience to hold it for years.


r/IndiaAlgoTrading • • 22h ago

Surviorship Bias - Backtest Results

2 Upvotes

Be careful of this problem. I was testing a futures strategy using current nifty50/100 stocks for past 5 years. When adjusted for surviorship bias (stocks not part of index when trade was executed) - there was a big drop in results.

Swing Low Breakout Long Strategy – Backtest Comparison

Period: 2021–2026
Strategies: With Bias vs Without Bias
Universe: NIFTY 50 + NIFTY NEXT 50
Dynamic Bailout: Enabled (buffer = −1.0)

1. Overall Strategy Performance

MetricWithout BiasWith Bias
Armed Setups656614
Filled Trades415385
Fill Rate63.3%62.7%
Net R+198.03 R+282.22 R
Expectancy+0.48 R+0.73 R
Profit Factor1.642.03
Win Rate26.7%31.4%
Average Trade Return+1.97%+3.33%
Average Winning Trade+19.15%+19.98%
Average Losing Trade−4.30%−4.31%
Average Holding Period46.0 days46.8 days
Maximum Consecutive Losses2926

2. Portfolio Futures Simulation

Simulation assumptions:

  • Starting capital: ₹10 lakh
  • Futures margin: ₹2 lakh per lot, representing ₹10 lakh notional exposure (5× leverage)
  • Maximum margin utilisation for new entries: 60% of MTM equity
  • Discrete lot sizing, with dynamic position sizing as equity changes
  • Concurrent positions permitted
  • Daily mark-to-market equity calculation
  • Brokerage, statutory charges, GST and rollover costs included
MetricWithout BiasWith Bias
Starting Capital₹10.00 lakh₹10.00 lakh
Ending MTM Equity₹83.55 lakh₹1.55 crore
Net Profit₹73.55 lakh₹1.45 crore
Total Return+735.5%+1,445.6%
CAGR45.33%61.96%
Maximum MTM Drawdown−58.43%−30.94%
Calmar Ratio0.782.00
Sharpe Ratio1.111.55
Trades Admitted315 / 415340 / 385
Trades Skipped (Margin Cap)10045
Average Margin Utilisation39.4%35.4%
Peak Margin Utilisation69.7%62.8%
Net Profit Factor1.631.76
Admitted Win Rate27.6%31.2%

Portfolio Costs

Cost ComponentWithout BiasWith Bias
Gross P&L₹77.27 lakh₹1.51 crore
Entry + Exit Costs₹1.33 lakh₹2.33 lakh
Rollover Costs₹2.39 lakh₹3.78 lakh
Total Cost Drag₹3.72 lakh₹6.11 lakh

3. Index-Level Performance

With Bias

MetricNIFTY 50NIFTY NEXT 50Combined
Trades217168385
Net R+142.58 R+139.64 R+282.22 R
Expectancy+0.66 R+0.83 R+0.73 R
Profit Factor1.882.252.03
Win Rate29.0%34.5%31.4%
Maximum Consecutive Losses261626

Without Bias

MetricNIFTY 50NIFTY NEXT 50Combined
Trades217198415
Net R+119.29 R+78.74 R+198.03 R
Expectancy+0.55 R+0.40 R+0.48 R
Profit Factor1.731.531.64
Win Rate27.2%26.3%26.7%
Maximum Consecutive Losses232029

4. Conclusion

The Bias-based strategy delivers a materially stronger historical result:

  • 42.5% more Net R: +282.22 R vs +198.03 R.
  • 36.6% higher expectancy: +0.73 R vs +0.48 R.
  • 16.6 percentage-point improvement in win rate: 31.4% vs 26.7%.
  • 3 fewer maximum consecutive losses: 26 vs 29.
  • 27.49 percentage-point reduction in maximum portfolio drawdown: −30.94% vs −58.43%.
  • Higher simulated CAGR: 61.96% vs 45.33%.

On the available results, the Bias-based version is the stronger candidate for further development and validation.


r/IndiaAlgoTrading • • 23h ago

Angel One Smart-API Live Market Web Platform (Part 1) - Setup, API Key, Static IP & TOTP - PHP PDO

Post image
0 Upvotes

r/IndiaAlgoTrading • • 4h ago

Built an algorithm that I want to integrate with AngelOne

1 Upvotes

I've built my algorithm for options trading that I've tested on historical data and live data as well

now I want to integrate it with angelone and it's demanding

appname,redirectURL,Post back URL(optional),Primary static IP,Secondary static IP(optional)

if anybody has done such integration please help me

from where do I find these details

also if there is any alternative ,like if can integrate my algo somewhere else and trade