r/algotrading • • 10h ago

Strategy Is it a gamble?

3 Upvotes

Been into this for a year now. Intense coding and trials using real money. Still managed to keep the balance on the positive side, despite some mistakes, some attributable to me, other not so, which resulted in effort just to restore my balance to neutral, which is, after all, a cost in opportunity over and above the trading costs.

The thought is starting to evolve, that all this, every decision at any point going forward, is a gamble to one degree or another. I have amassed a year of tick data and countless algorithms. At any point, no matter the setup, there's an equal possibility for it to go up or down. And for those setups that have a mathematical edge, the +/- band is eaten by the costs.

Nothing new here, of course.

The point of this post is to encourage an exchange of experience, and if there are any pointers for further exploration.


r/algotrading • • 36m ago

Strategy The backtest that cost me 50% overnight, and what I test for now

0 Upvotes

I have been developing and backtesting crypto strategies for around five years, testing over 300 combinations in detail. The most important lesson wasn't related to an indicator or a model. It's that every backtest is based on a sample size of one. The market has only ever existed once, and a backtest only tells you how a strategy performed on that one path.

I learned this the hard way. I tested a strategy on TRUMP over just a few days. It looked great. I let it run live and, overnight, it lost 50%. The code was fine. I had simply fitted a strategy to a few days' worth of data from one coin and called it an edge.

What I do differently now:

Out-of-sample performance has to be near perfect, not just positive. I split the history into chronological segments, and a candidate has to perform well in all of them, or very close to it. One bad segment and it's out.

The neighbours matter more than the peak. If a parameter set is excellent but the surrounding values are mediocre, that's overfitting. Every time. A real edge looks like a plateau, not a spike.

If it works on everything, check your code first. At one point, the same strategy worked on every coin I tried. It should have felt like winning. Instead, it felt suspicious. When I investigated the code further, I discovered a look-ahead bias.

After years of this, my live results now closely track the backtests. It took a lot of setbacks to get there.

The part I still haven't solved is this: I still can't predict whether a single entry will end in profit. Not even roughly. The edge only becomes apparent across many trades, and each individual trade still looks like a coin toss to me.

So, my question is: has anyone here managed to get trade-level filtering (or anything like meta-labeling or an ML filter on entries) to work out of sample? Or is the edge only ever visible in aggregate?


r/algotrading • • 19h ago

Education Arrogance of novices

53 Upvotes

I've been reading and posting comments in this sub now for a few months, and what really strikes me is how arrogant some other commentators are who by their own admission are very new to this domain.

In the last 24 hours I have had discussions with one guy who argued that paper trading is no different from production, and the results there will 100% transfer to production results, and by the way this guy has never traded in production yet. So where is that confidence coming from given he has no experience?

Then another topic was around extreme volatility, I had a guy say that he's building an algo that can handle ANY market conditions, and that's what a "professional" algo should do. That's almost by definition impossible. If the market behaves in a way that is outside any conditions seen during the period the models were trained on or the execution was simmed on, it's very likely the algo will not perform well in those conditions. To claim you have made an algo that can perfectly extrapolate to any situation, it's implausible.

I've been doing this for 15 years, and I want to help others who are starting out, and yet I find myself getting into arguments with people who haven't even run an algo in production! I just don't get how these people have so much confidence in what they are saying at this stage.


r/algotrading • • 20h ago

Strategy SPX options trading strategy

Post image
34 Upvotes

I'm looking into selling spreads in certain conditions. This is paper.

15 years of experience trading with options and real money. Five figures.

Paper is run over realistic bid / ask in options, I have a crawler every 10 seconds of every contract (distance 300 points from spot price) for SPX, then I store it so backtesting is close to reality.

I will put real money in January.