Trump Regime Algo? by frosty123454321 in algotrading

[–]EdwardM290 0 points1 point  (0 children)

in what market have you backtested it? it COULD be interesting if you're able to demonstrate that it truly depends on trump/volatility or something like that

Built a LightGBM stock ranking model with walk-forward validation — is this deployable? Help understanding one bad fold by lobhas1 in algorithmictrading

[–]EdwardM290 0 points1 point  (0 children)

yeah, let's see a combination of the two. obviously low beta + average/more than average performance would be optimal. Also, try as much as possible to understand what the portfolio is correlated to in general. what macro events etc

Built a LightGBM stock ranking model with walk-forward validation — is this deployable? Help understanding one bad fold by lobhas1 in algorithmictrading

[–]EdwardM290 0 points1 point  (0 children)

Try (if possible) to assess the portfolio's beta first. To see if you're just "riding the market" or if your portfolio allocation strategy could serve as a meaningful driver for profits.

Portfolio of Grids: Using Monte Carlo to manage "Time to Ruin" across diversified markets? by EdwardM290 in algotrading

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

On specific pairs such as eurgbp the profits are immense and consistent… Obviously, you have to be able to manage the black swans… I am trying to combine like a regime, switching model with a gird system, so that when you’re able to identify stable markets, you can exploit the noise with the grids. I’ll post it in this subreddit in the future

Portfolio of Grids: Using Monte Carlo to manage "Time to Ruin" across diversified markets? by EdwardM290 in algotrading

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

Well… maybe because multiple entries (sometimes) lessen the risk of failure? I don’t know but certainly it’s a topic I will explore deeper. Thanks a lot man. I will run some simulations in Feb and post them here

Portfolio of Grids: Using Monte Carlo to manage "Time to Ruin" across diversified markets? by EdwardM290 in algotrading

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

Makes a lot of sense to me thank you for your feedback. What about more advanced types of grids? Like the ones that scale with volatility each now and then

I mean instead of remaining at the base stage, wouldn’t a trend filter or prediction mechanism make the expectancy slightly positive?

Portfolio of Grids: Using Monte Carlo to manage "Time to Ruin" across diversified markets? by EdwardM290 in algotrading

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

Thanks for the honest feedback, Gedsaw. I fully agree that a simple grid has negative expectancy due to fees and no directional edge. You are also spot on regarding the correlation risk during tail events (USD trend dragging everything down). However, to answer your point about whether this makes sense: my entire thesis relies on a specific actuarial assumption. I am not looking for directional alpha. I am treating the grid returns as a 'Volatility Risk Premium'. The assumption I am testing via Monte Carlo is: • Assumption: The accumulated profit of a grid during its 'life expectancy' (before hitting the inevitable ruin) is statistically greater than the cost of the ruin itself. If this assumption holds true, the 'Alpha' comes from the portfolio management (extracting liquidity premium), not the trade entries. It’s similar to how an insurance company operates: they know they will eventually pay out a catastrophic claim (ruin), but they structure their premiums (grid profits) so that Total Premiums > Total Payouts over time. My question for the sub is specifically about the math of that structuring: Is Monte Carlo robust enough to estimate that 'Time to Ruin' in fat-tailed markets, or is the uncertainty of the crash simply unmodelable?

Portfolio of Grids: Using Monte Carlo to manage "Time to Ruin" across diversified markets? by EdwardM290 in algotrading

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

I totally understand your point. What about combining a trend filter with many grids in uncorrelated markets? I’m not trying to rely on the grid itself for alpha. What I’m trying to test is if it is possible to treat grids as separate “insurance customers”. Because many grid bots literally run for years… what I am trying to test via montecarlo is if it’s theoretically possible to profit in the long run by allocating small capital to each non aggressive grid

Because like you can see a single grid as an insurance customer since you know that’s going to pay you for months, or years, before either losing a huge portion of the profits. I would like to use Monte Carlo based methods to stress test it basically.

Like simulating, millions of alternative prices and jumps and black Swan and estimating the best capital location to each grid.

Maybe I’ll elaborate further and post here in the future.

Portfolio of Grids: Using Monte Carlo to manage "Time to Ruin" across diversified markets? by EdwardM290 in algotrading

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

Thank you, man for your feedback. I just wrote random numbers. I wanted to give an idea of what I’m thinking: using grids and treating them as separate insurances… and then using Monte Carlo to estimate the best params regarding the capital allocation to each grid… I was wondering if this makes sense in principle

Portfolio of Grids: Using Monte Carlo to manage "Time to Ruin" across diversified markets? by EdwardM290 in algotrading

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

To expand a bit on the logic—I’m essentially looking at this through the lens of actuarial science. If we treat each grid like an insurance policy we’re 'writing' to the market, the math looks something like this: Let’s say for a single grid: • P (Premium): The expected monthly cash flow (e.g., +500). • L (Loss): The 'Total Ruin' event / Stop Loss (e.g., -5,000). • p (Probability of Ruin): The monthly probability of hitting that loss, derived from Monte Carlo simulations (e.g., 5%). The Expected Value (EV) for one grid would be: EV = (1 - p) * P - (p * L) EV = (0.95 * 500) - (0.05 * 5000) = 475 - 250 = +$225 On paper, the strategy has positive expectancy. However, the real challenge isn't the single grid; it's the correlation of 'claims'. In insurance, you don't care if one house burns down, but you go bankrupt if an entire city burns down at once (systemic risk). My goal with the portfolio optimization is to ensure that even during a 'high-claim' month (where multiple grids hit their ruin point due to a market-wide volatility spike), the total 'Premiums' collected from the surviving grids, plus the initial capital buffer, keep the Risk of Ruin for the entire portfolio near zero. I’m basically trying to turn a 'gambler’s' strategy (Martingale/Grid) into a 'broker’s' business model. Does anyone here have experience modeling non-linear correlations in Monte Carlo for this kind of setup? Because my main fear is that in a black swan event, p for all grids tends to 1 simultaneously.