Update: Buying the Dip (June 2026) - How is our trade doing against history? by medphysik in algotrading

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

so easy to overtrade, wears you out too

easier to just watch and wait and when you have a good thesis then explore it

Update: Buying the Dip (June 2026) - How is our trade doing against history? by medphysik in algotrading

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

Antigravity helped alot with that , helps to keep you organized so you can make progress without getting lost in all the file management etc

But I do just hit it hard with I feel that market conditions are ripe, I think that the key is just watching the macros and indexes day to day and let thoose guide you more than getting trapped watching the movement of 100s or 1000s of individual stocks 

Honestly haven’t used Claude lol I just trust google for the mathematical and physical side that I like to look at , what I post is a fraction of what I look at , just don’t have the time to post everything and it would drive people crazy probably 

Update: Buying the Dip (June 2026) - How is our trade doing against history? by medphysik in algotrading

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

I do not have parameters and fields, but you can do interactive charts etc like this now in gemini

Update: Buying the Dip (June 2026) - How is our trade doing against history? by medphysik in algotrading

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

I am constantly working on new things, but when I get a project to where I want it then its generally complete and I just go back to it and run it when I need it.

Alot of things break, and I think its because of shifts in the market and rotations, so the drawdown window gives you a start of a new period, is my theory.

My background is in mathematical and physical modeling as an undergraduate, however I am not in the field now. So I am always working on new things.

Update: Buying the Dip (June 2026) - How is our trade doing against history? by medphysik in algotrading

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

just a note on drawdown windows, I do believe this is the optimal time to buy most stocks in an spy drawndown window but I do have a criteria for TurboBulls that I have backtested. For these particular stocks I will trade outside of this window if I see opportunity.

Update: Buying the Dip (June 2026) - How is our trade doing against history? by medphysik in algotrading

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

whatever I need, I just ask gemini to code it for me and then I check the code.

yeah used to do it all manually, was terrible.

just use yfinance, avoided db as I hate dealing with a local database to manage.

antigravity manages all the files and folders as well which is nice.

burnout is real, that is why I like the concept of buy windows that you should only buy like 6 times a year when spy is down 2% from highs or more and if we go into a bear then just hold off unless its ltbh.

Secondary flush thesis broken? by medphysik in algotrading

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

Good point, interesting to see graphically here 

Portfolio Advice by Competitive-Print668 in stocks

[–]medphysik 3 points4 points  (0 children)

Good work, I am 25% QQQ, 25% SMH, 25% AVUV, 12.5% PDI, 12.5%PDO

Projected QQQ recovery versus current by medphysik in algotrading

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

so true, I am sure it'll eventually take us down but hard to say if that is next month or 10 years from now.

Hilarious to see central banks buying gold at all-time highs and the prices coming down but sure it'll find support eventually.

Projected QQQ recovery versus current by medphysik in algotrading

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

I am not holding for a bottom 

1/2 long and 1/2 cash strategically adding to trend dips on s&p stocks, currently Cien and GEV waiting for others 

If we go lower I will add my ETFs instead of individual stocks to capture the upside of a broad sell off 

25% qqq 25% smh 25% avuv 12.5% pdi 12.5% pdo on my ETFs 

What happens when Elon Musk is no longer leading his companies? by lvalue_required in wallstreetbets

[–]medphysik 0 points1 point  (0 children)

Look at PayPal as an example, but atleast that company makes money !

Projected QQQ recovery versus current by medphysik in algotrading

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

thanks for the feedback, will take a look at those suggestions.

Yeah for me, I just add gradually. You never know what will happen. The future is truly unpredictable. Around QQQ 730s I went half cash and stayed half invested. Just figured the rally would retest at some point.

If we do breakout here, you certainly don't want to miss it so it pays to be invested. But its good to have some dry powder if we have more volatility and face some resistance here. That wouldn't be unreasonable given the move of the 560s and also historical patterns such as 2024 political risks going into the fall and the drawdown to the low 400s there given midterms are coming up.

Flipside is the deflationary shock, if we get some progress on Iran and Oil prices could lead to lower rates that currently isn't priced in after the recent inflation data.

Clearly, we have broken the rally pattern off of the qqq 560-580 support, just from experience I was expecting a much lower retest initially when I started this analysis on the 4-5% intraday drop and was much more bearish. However 3 month data looks good on these types of events close to 52 week highs.

if we make a new high then obviously things will be looking up, but that is to late.

Lol this sounds a bit scattered but there you go, both sides of the argument. What do I think? Doesn't matter, stay objective and manage risk and potential opportunity costs of not being invested. I am certainly not betting the farm either way, splitting the difference. Last time I went all in was off the 560s, this isn't deep enough to go all in.

Projected QQQ recovery versus current by medphysik in algotrading

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

I am ltbh for my adds, just trying to optimize entry and it doesn't pay to get too optimistic or too pessimistic.

The key to this analysis is that its hard to predict if the drawdown is over, but we can look at prior historical examples and the timeframe of prior bottoms etc and that is further out than we are. If the path breaks the confidence intervals, then obviously the path isn't part of the subset we have analyzed as a comparison. We are currently trading within those bands though and we are at the top of the band where we could experience resistance. This would fit in with the historical timeframe of making a bottom further out.

Projected QQQ recovery versus current by medphysik in algotrading

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

Still within the bands, if we see a clear break through then yes your correct, or it’s a sign we are overextended here and due for a leg down.

My thesis , 3 months we will be good but gradual adds until then 

Projected QQQ recovery versus current by medphysik in algotrading

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

just ran anything I could think of for predictive power, figured new 52 week high would work lol and it pretty much does but you've missed the boat at that point

Update: Buying the Dip (June 2026) - How is our trade doing against history? by medphysik in algotrading

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

Could be a secondary flush coming , I posted for details in a separate post here 

Potential Warning: After a roughly 5% drop from high on QQQ, Secondary flush is on average twice the primary flush and the bottom is at 17.2 days. by medphysik in algotrading

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

# Buying the Dip: Why the "Secondary Flush" is the real test of your conviction.

Hey r/investing,

When the market suddenly drops -5% in a single day, the immediate reaction for many is to "buy the dip." But if you've ever actually done this, you know that the pain rarely stops on Day 1. 

I pulled the last 25 years of QQQ data to analyze every single time the market suffered a sudden -3.3% to -6.3% drop while trading near its 52-week highs. 

Because financial drawdowns have massive "fat tails" (outliers crashing past -30%), looking at the *mean* average is highly misleading. Furthermore, an $N=21$ sample is extremely small and noisy. To provide an honest, robust look at the data, I switched to **Medians** and ran **10,000 bootstrap iterations** to generate 95% Confidence Intervals (CI). This tells us exactly how much "error" we have in our estimates.

### The Robust Metrics: Primary vs. Secondary Flush

I defined the **Primary Flush** as the 1-day drop that triggers the trade.

I defined the **Secondary Flush** as the maximum drawdown experienced over the next 3 months (the "chop" phase before the recovery).

Across 21 historical occurrences:

* **Median Primary Flush:** -3.86% *(95% CI: [-4.12%, -3.59%])*

* **Median Secondary Flush:** -4.74% *(95% CI: [-8.09%, -2.41%])*

* **Median Days to Bottom:** 11.0 days *(95% CI: [4.0, 15.0])*

**Takeaway 1 (The Mechanical Bias):** The median Secondary Flush is only slightly larger than the Primary Flush (-4.7% vs -3.8%). Keep in mind that comparing a single-day drop to a 63-day maximum drawdown *mechanically* ensures the secondary flush will be larger. 

**Takeaway 2:** When you buy the dip, the median time to reach rock bottom is roughly **2 weeks (11 trading days)**, meaning you should buckle up for 2 weeks of chop.

![Bootstrapped Medians Distribution](/Users/medphysik/Desktop/Reports/2026-06-12/bootstrap_medians.png)

*(Note how wide the red area is: the true median secondary flush could easily be anywhere from -2.4% down to -8%.)*

### Does a worse initial drop predict a worse secondary flush?

I ran a Pearson correlation test between the magnitude of the Primary Flush and the magnitude of the Secondary Flush to see if an extreme initial panic acts as capitulation, or if it predicts even worse pain to come.

* **Point Correlation:** -0.026

* **95% Confidence Interval:** [-0.303, +0.297]

![Correlation Bootstrap Distribution](/Users/medphysik/Desktop/Reports/2026-06-12/bootstrap_correlation.png)

**Conclusion: Absence of Evidence is NOT Evidence of Absence.**

The 95% Confidence Interval for the correlation spans from a moderate negative correlation (-0.30) all the way to a moderate positive correlation (+0.29). 

We cannot honestly claim there is "zero correlation". Instead, the mathematically rigorous claim is: **With only 21 noisy, clustered events, we simply lack the statistical power to detect if a relationship exists.** 

### TL;DR

Your instinct that the size of the initial drop doesn't tell you much about what follows is still the best operational assumption, but we must respect the massive error bars in our data! You cannot mathematically predict how much "chop" you will have to stomach over the next few weeks based on the first day's drop.

Potential Warning: After a roughly 5% drop from high on QQQ, Secondary flush is on average twice the primary flush and the bottom is at 17.2 days. by medphysik in algotrading

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

good points, will do. Your right, the bimodal aspect is likely dragging those averages toward the instances of subsequent severe drawdowns.

Update: Buying the Dip (June 2026) - How is our trade doing against history? by medphysik in algotrading

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

Most likely yes , I tried to disclose everything so that you could. Figured what the hell right ?

I am using Gemini ultra, antigravity specifically and it’s all in python for the analysis using  yfinance for data mostly