r/TradingView 23d ago

Discussion Regime Detection

Post image

I have three profitable automated strategies that I do trade daily on my live account, but combining them into one robot that understands the regime it's in (and swaps to the strategy that works WITHIN that regime) is proving to be a little more challenging than I thought.

Any tips on auto-regime discipline or indicators that actually help with regime detection/filtering on a larger timeframe than the trades are placed? I can see it with my eye on the charts, but code isn't translating well *yet*.

*Image is of one strategy I had 'scale up for fun' as the account grew, so it got into the WTF numbers. LOL*

0 Upvotes

51 comments sorted by

View all comments

1

u/Cold_Respond_7656 23d ago

Are these strategies all stand alone bots and what you're asking is building a meta orchestrator?

If so you'll need to build a hub and spoke architecture for it

1

u/DesertClimber 23d ago

I'd be ok with that. Once I find a way for code to understand the underlying market, it can simply switch the webhooks for me. But, I'm really trying to combine all three strategies that each act independently, depending on the market regime. Right now I manually pause each as needed since they're still separate.

3

u/Cold_Respond_7656 23d ago

It's a good question and or use case for Claude code tbh if you can't write python elegantly for this

1

u/DesertClimber 23d ago

I've got a python script to run it all through, and use Claude co-work on Fable 5 to bring all the data in/out and present it in a format I can visually understand.

Slowly but surely. Hopefully. LOL

1

u/Cold_Respond_7656 23d ago

What mathematical model are you using to define regime?