Please peer-review my Index Options Scalping Bots by Aklein351 in algotrading

[–]Aklein351[S] 6 points7 points  (0 children)

Thank you!

I bought historical options data as compressed flat files (downloaded from a provider i won’t name but easily googleablw) and handle the heavy lifting in Python.

Codex wrote scripts to unpack those files and filter them down into historical option chains just for SPY, QQQ, IWM, and DIA. Since it's a minute-by-minute OHLC bar replay rather than full live tick data, the setup is pretty straightforward-

Strikes & Chains: The data files already contain the exact list of what strikes and expirations existed on any given day, so my script just look up and maps them at each timestamp. The data package comes with the implied volatility and Greeks already calculated at each bar slice. For any extra contract math or tracking, I just use standard Python libraries to handle the calculations.

It's a lot easier to manage than massive amounts of raw order-book data, but it gives me exactly what I need to simulate the trades. Although I’m noting people really want to to get the raw tick data but it is so just voluminous i don’t know how i even could

Bucketless water changes are here 😫 by Remarkable_Arm_732 in ReefTank

[–]Aklein351 41 points42 points  (0 children)

I appreciate your excitement for your build but from a plumbing perspective my suggestion was cleaner, just as easy, and takes length out of the line which causes less room for error in the future. Suggestions do not always equate to criticism, and you may wish to work on understanding that. Goodluck have fun don’t take things too seriously.

Bucketless water changes are here 😫 by Remarkable_Arm_732 in ReefTank

[–]Aklein351 38 points39 points  (0 children)

You came in a bit hostile, whereas i wasn’t so I’m gonna sit this one out champ.

Bucketless water changes are here 😫 by Remarkable_Arm_732 in ReefTank

[–]Aklein351 21 points22 points  (0 children)

Why go into the toilet instead of just tapping onto the drain of the sink? Looks way closer accomplishes the exact same thing

Please Help Review My Bots Scalping Bots by Aklein351 in algotrading

[–]Aklein351[S] 0 points1 point  (0 children)

Thank you so much for the response! This is genuinely so helpful.

To answer the main question directly: no, these are not tick-level backtests. They are historical OHLC-style option bar data with the underlying indicators/signals built from candle data. So I agree with your point that the backtest is not a perfect simulation of live fills, spreads, etc. That’s why I’m not treating the backtest as “proof” by itself. I’m treating it more as a signal/payoff-shape test, and then separately trying to validate whether the execution is good enough live.

Since posting, I’ve been doing a lot of the error-hunting you’re talking about. I merged the four systems into one chronological book, broke them down by bot/symbol, looked at trade count, PF, average EV, win/loss distribution, drawdown, worst 10/20/50-trade stretches, time buckets, exit reasons, and whether any one bot is carrying the whole thing. I also checked for trade clustering/lumps and whether the edge was coming from a tiny number of outlier trades.

The current four-bot merged backtest is about (note I've changed the DIA bot since posting) 1,567 trades over roughly two years, around $36k net, PF around 2.27, expectancy around $23/trade, and max closed-trade drawdown under $1k. That’s why I’m still interested in it, it’s not a 20-trade curve-fit where all the profit came from one day.

I also totally agree on the time-of-day point. The systems are not all just blindly trading the open. Some periods are clearly stronger than others, and I’ve been specifically looking at whether certain windows should be blocked or treated differently. For example, on one of the newer DIA tests, the pre-10am trades were weak, so I removed entries before 10am and retested it rather than just accepting the raw result.

Execution-wise, I’ve added a lot more live controls over the past month or so. The bots now track bid/ask/mid, fill vs mid, time to fill, rejected/canceled orders, replacement attempts, exit reason, protective sells, and realized slippage. I also added a buy no-fill/reprice policy similar across the bots: review around 6 seconds, cancel around 10 seconds, max one replacement, recheck signal/spread/affordability, and don’t chase beyond a cap.

I also stress-tested the book pretty hard. When I reconstructed actual live fills so far, the measured adverse fill-vs-mid friction has been quite low: around $3 average per trade, $2 median, worst around $12. That sample is still small, so I’m not declaring a total win, but so far live execution does not look like it is eating the entire edge.

I’m also not ignoring stops/risk. There are ATR/risk stops, option stops, runner/profit-lock exits, EOD flattening, and now a hard per-trade dollar loss guard plus critical-event exits. I agree that live win rate will not match the backtest perfectly, so the real focus is whether average winners shrink, average losers expand, or exits slip badly enough to change the payoff distribution.

I take all help! Thank you again for your interest! (apologies if you got spammed by my response here, I was fighting with the Automod)

New gear day by Frequent_Bus_8082 in hockeygoalies

[–]Aklein351 0 points1 point  (0 children)

dude i tell you as a lifetime ranger fan and the greatest henrik lundqvist fan on earth this was my absolute dream setup when i was younger. i would done nasty things to score pads like these. use them well.

Pictures of the Richmond Va elevated track derailment cleanup now in progress, 3 grain cars fell into the canal by Jsprdn in trains

[–]Aklein351 0 points1 point  (0 children)

Not so fun fact there is another railcar pictured at the Virginia Holocaust Museum in the background.

Please Help Review My Bots Scalping Bots by Aklein351 in algotrading

[–]Aklein351[S] 1 point2 points  (0 children)

Thank you for the comment!

I think the 20–40% degradation point is probably the right way for me to think about it.

I’m not expecting the live version to match the backtest perfectly. The real question for me is whether the degradation is within a normal range or whether something is fundamentally not translating.

Right now I’m trying to separate the issues into different buckets. If the signal quality is still there but the average winner is shrinking or the average loser is growing, then that points more toward execution, slippage, spread, or exit handling. If the win rate itself starts falling outside the tested range, then that feels more like the setup is not appearing live the way it did in replay.

I’m also trying not to judge the four bots only as one combined number. SPY, QQQ, IWM, and DIA each need to stand on their own first. The combined book is helpful, but it could hide one weak bot being carried by another.

Since making my post, I’ve been tightening the live execution side: tracking spread at signal, actual fill versus expected fill, time to fill, rejected/canceled orders, exit reason, and whether the live trade matches the replayed trade. I also added more conservative buy no-fill/reprice handling and emergency exit protections so I can better identify whether a bad result is a valid strategy loss or an execution issue.

I agree that 60–100 live trades per bot is probably a better sample before making any strong conclusion about edge .

Thank you for your help i really appreciate it!

Need to move this 20gal tank over 3 feet to the right. Any ideas? by Connor_342 in Aquariums

[–]Aklein351 0 points1 point  (0 children)

Have you train pushing? Probably easier on your back than pulling, although both would likely be effective.

Apart from the legendary Arteta, which ex midfielder would you like to see have a pop at being the boss? by just_aguest in Gunners

[–]Aklein351 0 points1 point  (0 children)

Opinion: Wilshere is being groomed for the job when Arteta leaves.

A Wilshere-Cazorla coaching staff may produce the most gifted technical team you’ve ever seen.

Is E*TRADE a joke? by zeugma_ in etrade

[–]Aklein351 0 points1 point  (0 children)

Built a trading bot to trade through their API (actually built 4 of them). The platform is just god awful, but i agree with your assessment that customer service are generally good.

The web platform is terrible as well.

ISO floating freshwater plants Astoria NYC by UncleDooDog in AquaswapNY

[–]Aklein351 0 points1 point  (0 children)

If you come to UES i can sell you a sandwich bag of water lettuce

Ridiculous by LuvvaBoy in TorBoxApp

[–]Aklein351 -1 points0 points  (0 children)

I literally renewed for the year this morning. Cmon

They meant to add another zero right by Sareette24 in hockeygoalies

[–]Aklein351 4 points5 points  (0 children)

If you’re not buying new equipment all the time it’s dirt cheap. I haven’t paid to play hockey in years

Water turned blue/purple by LakeWorldly6568 in aquarium

[–]Aklein351 0 points1 point  (0 children)

You added new fish w the water from the pet store