9 Comments
User's avatar
Deep  Joshi's avatar

deepseek link not working for me interested to read more about the technical details

Expand full comment
Tarek Hanani's avatar

Me too

Expand full comment
Nick's avatar

Is there ipynb file for this?

It’s 🔥

Expand full comment
Ismail Farhat's avatar

Would be great to the full ipynb

Expand full comment
Giorgio Borelli's avatar

first of all, thank you for sharing your code and your overall efforts. I read quickly, so apologies if i missed something. Some remarks:

- it would be best to look for regimes in a walk forward manner

- in-sample backtest plus optimised KAMA say little about ability to generalise to future states

- you imply it in your text: we need features to avoid jumping from one state to another, and KAMA is just one price feature

- in summary: walk forward, some more relevant features (prices, but of competing asset classes or of even better of risk premia)

I know, you won’t make all of that public, but still worth mentioning

Expand full comment
Andrea Costa's avatar

Doesn't

`filtr = gamma * np.std(kama_diff)`

in `get_kama` suffer from look-ahead bias?

I think that

`kama_diff.rolling(window=n_window, min_periods=1).std()`

would be a suitable fix.

What do you think?

Expand full comment
Biotech Bagholder's avatar

Nice write up

Expand full comment
You Got This Trading's avatar

Cool stuff would be useful for filters on trading systems.

Expand full comment
Machina Quanta's avatar

Great piece

Expand full comment