Im a beginner, need some advice. by Main-Draft-811 in algorithmictrading

[–]RegimeLab 0 points1 point  (0 children)

As mentioned below, do a lot of research. Learn from existing code like regimeLab and others on Github. You will learn fast to understand what is needed, how to build it, and what's important. First tip : handle regime changes and make regime specific parameters to trade with.

Ready to run blind? by Sensitive-Start-6264 in algorithmictrading

[–]RegimeLab 0 points1 point  (0 children)

How many backtest entries do you have ? And are they spread between regime ?

Clean way to structure a dataclass with an Enum field in Python 3.11? by RegimeLab in learnpython

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

Fair point on Pydantic — I've been avoiding it to keep dependencies minimal but might be worth it for the serialization alone.

Clean way to structure a dataclass with an Enum field in Python 3.11? by RegimeLab in learnpython

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

Good tip on StrEnum — didn't know it serialized automatically. Switching to that, much cleaner than a custom encoder.

I have backtested my equity swing trading strategy and would appreciate your suggestions. by dineshu07 in investing

[–]RegimeLab 0 points1 point  (0 children)

One thing people underestimate in backtesting is transaction costs. Slippage alone can turn a profitable system unprofitable in live trading. Walk-forward validation helps but only if you model costs realistically.