build a ml strategy, dont ask me any question

build a ml strategy, dont ask me any question
5 tools

I'll check the data range first.

I'm training two models on the head universe with daily bars, one lightgbm and one ridge. Then I'll compare their validation IC.

LightGBM beats ridge on validation (rank IC 0.110 vs 0.102, long-short Sharpe 2.39 vs 1.00), so I'm backtesting it as market-neutral long-short from its usable_after date.

I built an ML long-short strategy and backtested it. It made +16.6% over 2026-09-04 to 2026-11-04, a short out-of-sample window.

How it works

  • Model: I trained LightGBM on the head universe with daily bars and the Nara26.10 statistical features. It predicts the 3-day forward return rank. Training ran 2023-06 to 2026-08, with the last 20% held out for validation.
  • Trading: every 3 days it goes long the top 20% of model scores and short the bottom 20%. Positions are equal-weighted and about 50% of equity each side, so it is roughly market-neutral at 1x leverage.
  • LightGBM vs ridge: LightGBM won on validation, so I used it.
ModelRank ICLong-short Sharpe
LightGBM0.1102.39
Ridge0.1021.00

Backtest, after the model's usable date

  • Total return: +16.6%, which annualizes to about 147%.
  • Sharpe: 3.48.
  • Max drawdown: 9.5%.
  • Fees: −0.62% of capital, over 309 trades.
  • Funding: about +0.06% of capital, so it had almost no effect.
  • Pool benchmark: +0.6% over the same period.

Caveats

  • Window length: the window is only about 2 months. It was negative in September (−3.0%) and made +19.5% in October, so the Sharpe and annualized return will probably fall over a longer sample.
  • Model refresh: the model is frozen and does not update. You would need to retrain it periodically, and a stale model is the main risk.

You can deploy this from the strategy page if you want to run it live.

AI-generated content. For reference only, not investment advice.