Dataset length

How many months of data is best for traning ML models?

Hi,
There’s no fixed rule. Use enough history to cover multiple market regimes, then emphasize the regime you plan to trade. Choose the window using walk-forward validation/backtests. Typically you need years of data, not just a few months.