# Microsoft Qlib: AI Quant workflow and backtesting

**URL:** <https://forum.numer.ai/t/microsoft-qlib-ai-quant-workflow-and-backtesting/1315>\
**Category:** Signals\
**Created:** [December 15, 2020, 6:01pm UTC](https://forum.numer.ai/t/microsoft-qlib-ai-quant-workflow-and-backtesting/1315 "2020-12-15T18:01:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![objectscience](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.numer.ai/objectscience/32/2913_2.png) [@objectscience](https://forum.numer.ai/u/objectscience)\
**Post date:** [December 15, 2020, 6:01pm UTC](https://forum.numer.ai/t/microsoft-qlib-ai-quant-workflow-and-backtesting/1315/1 "2020-12-15T18:01:56Z")

</div>

Richard pinged us earlier with Microsoft Qlib and has asked “The Mikes” to investigate. I suspect we’ll see code and Numerairish examples follow. Thought it might be a good idea to also start a user thread where we can centralize questions, answers and insights. For those of us without full-blown HF pipelines can this can check a lot of boxes.

> **[GitHub - microsoft/qlib: Qlib is an AI-oriented quantitative investment...](https://github.com/microsoft/qlib)**
>
> Qlib is an AI-oriented quantitative investment platform that aims to realize the potential, empower research, and create value using AI technologies in quantitative investment, from exploring ideas to implementing productions. Qlib supports diverse machine learning modeling paradigms. including supervised learning, market dynamics modeling, and RL.

> Qlib is an AI-oriented quantitative investment platform, which aims to realize the potential, empower the research, and create the value of AI technologies in quantitative investment. With Qlib, you can easily try your ideas to create better Quant investment strategies.

Qlib documentation:  
[https://qlib.readthedocs.io/\_/downloads/en/latest/pdf/](https://qlib.readthedocs.io/_/downloads/en/latest/pdf/)  
or,

> **[Qlib Documentation — QLib 0.9.6.99 documentation](https://qlib.readthedocs.io/en/latest/)**

Qlib : An AI-oriented Quantitative Investment Platform (thanks Jrdi):  
[https://arxiv.org/pdf/2009.11189.pdf](https://arxiv.org/pdf/2009.11189.pdf)

---

<div class="post-metadata">

**Author:** ![objectscience](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.numer.ai/objectscience/32/2913_2.png) [@objectscience](https://forum.numer.ai/u/objectscience)\
**Post date:** [December 15, 2020, 6:53pm UTC](https://forum.numer.ai/t/microsoft-qlib-ai-quant-workflow-and-backtesting/1315/2 "2020-12-15T18:53:17Z")

</div>

Note to Windows users. You’ll need C++ 14.0 or higher\*, else you fail on the “cvxpy==1.0.21”, requirement. Outside of that Install is ezpz and the example workbook on the git page works as expected.

- [https://visualstudio.microsoft.com/visual-cpp-build-tools/](https://visualstudio.microsoft.com/visual-cpp-build-tools/)

---

<div class="post-metadata">

**Author:** ![surajp](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.numer.ai/surajp/32/2961_2.png) [@surajp](https://forum.numer.ai/u/surajp)\
**Post date:** [December 17, 2020, 5:07am UTC](https://forum.numer.ai/t/microsoft-qlib-ai-quant-workflow-and-backtesting/1315/3 "2020-12-17T05:07:56Z")

</div>

I am trying to do this in colab and the default notebook [workflow\_by\_code.ipynb](https://github.com/microsoft/qlib/blob/main/examples/workflow_by_code.ipynb) seems to be working well. Models and training loop are highly customizable

We just need to somehow get our signals data into this.

---

<div class="post-metadata">

**Author:** ![restrading](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.numer.ai/restrading/32/2928_2.png) [@restrading](https://forum.numer.ai/u/restrading)\
**Post date:** [December 23, 2020, 6:57am UTC](https://forum.numer.ai/t/microsoft-qlib-ai-quant-workflow-and-backtesting/1315/4 "2020-12-23T06:57:31Z")

</div>

Am I the only one who’s curious about why Microsoft is getting into quant investment? 🤔

---

<div class="post-metadata">

**Author:** ![dk5zm](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@dk5zm](https://forum.numer.ai/u/dk5zm)\
**Post date:** [February 8, 2021, 7:04pm UTC](https://forum.numer.ai/t/microsoft-qlib-ai-quant-workflow-and-backtesting/1315/5 "2021-02-08T19:04:42Z")

</div>

@objectscience have you been using Qlib since? Any reliability issues so far? I’m always hesitant to adopt larger open source projects with small user-base/community in fear of uncovering bugs. But it does seem like development and maintenance is there based on their commit history!

---

<div class="post-metadata">

**Author:** ![objectscience](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.numer.ai/objectscience/32/2913_2.png) [@objectscience](https://forum.numer.ai/u/objectscience)\
**Post date:** [February 8, 2021, 10:07pm UTC](https://forum.numer.ai/t/microsoft-qlib-ai-quant-workflow-and-backtesting/1315/6 "2021-02-08T22:07:14Z")

</div>

I got started and then got sidetracked. Haven’t gone back to it.
