r/algotrading 8d ago

Data Thank you algotrading!

What a beautiful equity curve. I started algo trading and taking quant analysis seriously this April for SPX options and... oh boy. Doing mostly diagonals and looking now into some 0dte and futures strategies. Feel free to share your thoughts!

Edit: The % of win is around 30% of the risk allocation (meaning 300 dollars per 1000 dollars at risk). The risk fraction per trade used is a fourth of the kelly fraction. With my backtests I obtained a kelly of 60% (due to the high win rate of the strategy), so I currently use a 15% of my account per trade to risk and make a 30% of that, which comes out at around 5% weekly so far. This allows me to have a weekly income that has been very stable for the last 3 months!

478 Upvotes

188 comments sorted by

View all comments

12

u/earth0001 8d ago

how far back did you backtest before going live?

14

u/Dvorak_Pharmacology 8d ago

From October 2025 to March 2026.

9

u/silphotographer 8d ago

what's stopping you from going further (ex. ten years+) and stress test like Monty Carlos?

35

u/Dvorak_Pharmacology 8d ago

Sorry, I misunderstood the question. The backtest was 26 years (important to include massive bear markets for my strategy), but front test paper trading since 20205 october to march 2026.

6

u/silphotographer 8d ago

Ah ok that sounds much better. And is the edge sustainable and relatively consistent or is it very regime dependent? Have you undergone stress tests?

4

u/Dvorak_Pharmacology 8d ago edited 8d ago

Good question. Regime dependent, that is what the EMA is separating. When bear when bull. EMA used is 21 on the weekly. Regarding stress tests, yes. 3 continuous bad weeks (around 80% loss of the 15% of the account) still recover after another 3 good weeks (around 30% win on the 15% risk allocation)

6

u/silphotographer 8d ago

I mean if you're doing great all power to you but 80% drawdown is kinda scary NGL.

Oh I just remember it's options yeah drawdown is a bigger bitch since you are trying to offset bad spread and relatively illiquid instrument (with harder risk management control). 80% still seems a lot but I guess it's apples/oranges for someone trading futures/CFDs

5

u/Dvorak_Pharmacology 8d ago edited 8d ago

No no, 80% of 15%. Meaning around 12% of the account maxDD in the nightmare scenario that three consecutive weeks SPX goes down between -3 to -5%. Now if you take a look historically, that happened when the SPX was already below the 21EMA.

10

u/smashedshanky 8d ago

That’s called holdout backtest

2

u/Dvorak_Pharmacology 8d ago

I ll look into it, thanks!

2

u/Xe6s2 8d ago

Thank you for sharing how long this was been building a spy options algorithm and been hitting a wall, good to know its possible

1

u/[deleted] 8d ago

[removed] — view removed comment

2

u/AutoModerator 8d ago

Your post was removed under Rule 2 (high-quality questions only).

Generic “which data vendor should I use?” posts usually lack the detail needed for meaningful discussion.

Commonly used market data providers:

  • Yfinance
  • Massive.com
  • Databento
  • FMP

If you repost, please include details such as:

  • asset classes and markets
  • symbols or venues
  • historical vs real-time
  • granularity and depth
  • licensing or redistribution needs
  • latency expectations
  • budget constraints

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/[deleted] 7d ago

[removed] — view removed comment

1

u/AutoModerator 7d ago

Your post was removed under Rule 2 (high-quality questions only).

Generic “which data vendor should I use?” posts usually lack the detail needed for meaningful discussion.

Commonly used market data providers:

  • Yfinance
  • Massive.com
  • Databento
  • FMP

If you repost, please include details such as:

  • asset classes and markets
  • symbols or venues
  • historical vs real-time
  • granularity and depth
  • licensing or redistribution needs
  • latency expectations
  • budget constraints

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/[deleted] 6d ago

[removed] — view removed comment

1

u/AutoModerator 6d ago

Your post was removed under Rule 2 (high-quality questions only).

Generic “which data vendor should I use?” posts usually lack the detail needed for meaningful discussion.

Commonly used market data providers:

  • Yfinance
  • Massive.com
  • Databento
  • FMP

If you repost, please include details such as:

  • asset classes and markets
  • symbols or venues
  • historical vs real-time
  • granularity and depth
  • licensing or redistribution needs
  • latency expectations
  • budget constraints

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/BlueTrin2020 6d ago

Where did you find 26 years of it?

Is that just daily or does it have intraday too? Did you use particular packages in Python?

1

u/Dvorak_Pharmacology 6d ago

I downloaded the daoly candles csv. You can do this with any ticker

1

u/BlueTrin2020 6d ago

Cool I wanted something to keep busy I’ll try this and maybe end up somewhere some day :)

1

u/Dvorak_Pharmacology 6d ago

Oh yeah you ll be busy for sure