Research

Deployment

Introduction

This page is an introduction to the Research Environment for the Algorithm Lab. For more comprehensive information on using research notebooks, see the Research Environment documentation product.

Resources

Research nodes enable you to use the Research Environment. Several models of research nodes are available. More powerful research nodes allow you to handle more data and run faster computations in your notebooks. The following table shows the specifications of the research node models:

TypeNumber of CoresProcessing Speed (GHz)RAM (GB)
R1-412.44
R2-822.48
R4-1242.412
R8-1682.416

Refer to the Pricing page to see the price of each research node model. You get one free R1-4 research node in your first organization, but the node is replaced when you subscribe to a new research node in the organization.

You need an idle research node in your organization to launch the Research Environment. You can view all of your organization's nodes from the Resources page or the Resources panel in the IDE. The Resources panel lets you select a specific research node to use.

Sharing

The Research Environment does not currently support simultaneous coding between two peers. You can view the notebook of your colleague, but you can't edit the notebook at the same time. We recommend that only one person opens a notebook because your work may not save if several people open the same notebook. To enable your team members to see your notebook, add them to the project.

Sharing your notebooks is helpful when publishing your findings online, getting feedback on your research process, and explaining your methodology to others. To share a notebook with members not in your organization, run a backtest, generate a link to share the backtest, and then give the backtest link to the other person. They will be able to clone the project and launch the Research Environment using the notebook files.

Historical Data

On our platform, you can access historical data for all of the asset classes that we support. We have datasets for Equities, Options, Futures, Crypto, Forex, CFD, Indices, and alternative data. View the Dataset Market to see all of the datasets that we support. To import custom data, see Custom Data.

Look-Ahead Bias

Look-ahead bias occurs when an algorithm makes decisions using data that would not have yet been available. As you work in the Research Environment, take measures to reduce look-ahead bias in your workflow. If look-ahead bias seeps into your research, you may find profitable results on historical data, however, you will not be able to apply your findings in a live trading algorithm because the data does not exist in real-time.

An example of look-ahead bias is using the closing price to make trading decisions and filling your orders at the same closing price. This can happen in the Research Environment because all of the data is available at the same time. This type of look-ahead bias cannot occur when backtesting with Lean because the data is fed into your algorithm in discrete slices of time and an order is filled using a slice that occurs after the order was placed.

A second example of look-ahead bias occurs when researchers test a model on the same dataset that was used to train the model. In this situation, the model is trained using data that would not have been available when the model was created in practice. A third example of look-ahead bias is when researchers select a universe to apply their trading strategy to based on the past performance of the universe.

You can also see our Videos. You can also get in touch with us via Discord.

Did you find this page helpful?

Contribute to the documentation: