Research, Backtest, and Trade
Your Investment Strategies

Research, backtest, optimize and deploy multi-asset strategies on one platform, with AI agents working every stage of the pipeline alongside you.

quantconnect.com/project/18274593 LIVE
$248,600 Equity
+148.6% Net Profit
91.2% PSR
+2.4% Return
$6.4M Volume
Strategy Equity $248,600
Asset Volume
Drawdown -7.4%
Exposure 84%
Capacity $42.6M
Orders
Symbol Avg. Price Quantity Market Price Market Value
NVDA184.20450185.06$83,277
SPY603.88200605.41$121,082
TSLA262.55-325261.10-$84,858
GLD318.90150318.02$47,703

AWARD WINNING QUANT ANALYTICS PLATFORM

AS SEEN ON

Research Pipeline

Move every idea through a single, automated pipeline, from generation and research to backtesting, paper trading, and live deployment. A specialist AI assistant staffs each stage, does the work, and decides what earns promotion.

Research a suite of ideas in parallel, tracked in a central location, with the progression of each idea gated by evidence: statistical validation of the research, backtests with realistic reality modeling, then out-of-sample paper trading that must land inside the backtest's statistical envelope.

Research Multiple Ideas at Once
Validate with Statistical Tests
Deploy to Live Trading
Monitor Live Risk and News
Create Free Account
quantconnect.com/research-pipeline AGENTS
Generating Idea
Fear Greed Skew Rotation

Unified Quant Infrastructure

Finding alpha is a challenging task. As the universe of data expands rapidly and the pace of technological development accelerates, you need every advantage the market has to offer.

Cloud Research

Our cloud-based research terminals attach to terabytes of financial, fundamental, and alternative data, preformatted and ready to use.

Alternative data is linked to the underlying securities, tagged with the FIGI, CUSIP, and ISIN to facilitate building strategies.

Access popular machine learning and feature selection libraries to quantify factor importance. We can install custom packages on request.

Train Machine Learning Models
Visualize and Explore Data
Fast Cloud Cores
Create Research Notebook
quantconnect.com/project/18274593/research RESEARCH
||
Code
research.ipynb|Python 3.11.2

Momentum Regime Rotation — Research

Scratch pad for the Nasdaq 100 alpha models. Pull history through QuantBook, check the regime filters against realised volatility, and chart indicators before wiring anything into main.py.

In [1]:
# QuantBook Analysis Tool
# For more information see https://www.quantconnect.com/docs/v2/research-environment
qb = QuantBook()
spy = qb.AddEquity("SPY")
history = qb.History(qb.Securities.Keys, 360, Resolution.Daily)
In [2]:
# Indicator analysis over the research window
bbdf = qb.Indicator(BollingerBands(30, 2), spy.Symbol, 360, Resolution.Daily)
bbdf.drop('standarddeviation', axis=1).plot(figsize=(12, 4))
Out[2]:
3804004204402022-082022-112023-012023-042023-06lowerbandmiddlebandupperbandprice
In [3]:
history.loc['SPY'].tail()
Out[3]:
closehighlowopenvolume
time
2023-06-26433.21435.60432.47434.5571242300
2023-06-27438.29438.71433.62434.1468015400
2023-06-28438.55439.32436.63437.6059437100
2023-06-29439.20440.13436.90437.7162204800
2023-06-30443.28443.90440.05441.0284338900
In [  ]:

FROM RESEARCH TO PRODUCTION

Backtesting

With minimal-to-no code changes, move from research to point-in-time, fee, slippage, and spread-adjusted backtesting on lightning-fast cloud cores. Perform multi-asset backtesting on portfolios comprised of thousands of securities with realistic margin-modeling.

Import custom and alternative data linked to underlying securities for realistically modeling live-trading portfolios and avoiding common pitfalls like look-ahead bias.

Our technology has been battle-tested with thousands of unit and regression tests, and more than 15,000 backtests are performed on QuantConnect daily.

Backtest Your Algorithm
quantconnect.com/project/18274593/backtest BACKTEST
$1,008,763.83
Equity
-$8,711.03
Fees
$242,445.68
Holdings
$5,772.61
Net Profit
18.120%
PSR
0.88 %
Return
$2,847.38
Unrealized
$5,894,552.90
Volume
Strategy Equity$1,008,763.83
1m3m1yAll
980k990k1 000k1 010kEQUITYJul '22Aug '22Sep '22Oct '22Nov '22Dec '22Jan '23Feb '23Mar '23Apr '23May '23Jun '23Jul '23Equity
Exposure0.122
1m3m1yAll
0.20.10-0.1-0.2EQUITY - LONG RATIOJul '22Aug '22Sep '22Oct '22Nov '22Dec '22Jan '23Feb '23Mar '23Apr '23May '23Jun '23Jul '23Equity - Long RatioBase - Long RatioEquity - Short RatioBase - Short Ratio
Stockplot GILD$74.00
1m3m1yAll
5060708090PRICEJul '22Aug '22Sep '22Oct '22Nov '22Dec '22Jan '23Feb '23Mar '23Apr '23May '23Jun '23Jul '23PriceBuySell
Assets Sales Volume$5.89M
Capacity$78M
1m3m1yAll
050M100M150MSTRATEGY CAPACITYSep '22Jan '23May '23Sep '23Strategy Capacity
Benchmark
1m3m1yAll
0BENCHMARKSep '22Jan '23May '23Sep '23Benchmark
Select Chart
Strategy Equity
Assets Sales Volume
Exposure
Capacity
Benchmark
Portfolio Turnover
Stockplot GILD
Ranking
PSR: 18.1%Rank: 23
0%100%
Research Guide
87 Backtests Remai…
Likely Not Overfit
13 Parameters Dete…
Likely Overfitting
5 Minutes Research
Likely Not Overfit

FROM RESEARCH TO PRODUCTION

Parameter Optimization

Our parameter sensitivity testing allows you to run thousands of full backtests on our scalable cloud compute, completing weeks of work in minutes.

Visualize all the iterations of parameters on heatmaps to quickly understand your strategy's sensitivity to parameters for robust out-of-sample trading.

Explore further by opening each result and seeing its trades and backtest logs to understand the source of your alpha.

Launch an Optimization
quantconnect.com/project/18274593/optimization OPTIMIZATION
18
Completed
0
Failed
0
Running
0
In Queue
00:00:04
Average Length
00:01:16
Total Runtime
18
Total
5.42 QCC
Consumed
Strategy Equities18 runs
10m1h1d1wAll
95k100k105k110k115kEQUITYNov '13Dec '13Jan '14Feb '14Mar '14Apr '14May '14Jun '14Jul '14Aug '14Sep '14Oct '14Nov '14
Sharpe Ratio (ema-fast, ema-slow, ema-medium)
0.4120.8650.5981.0420.7321.2130.3310.4890.7020.1870.9060.2740.2560.1180.3940.6120.5040.000
0%
100%
Drawdown (ema-fast, ema-slow, ema-medium)
5.4%4.1%6.8%3.2%6.1%3.8%7.2%5.9%4.4%7.1%3.6%6.6%6.3%8.1%5.2%4.7%6.4%0.0%
0%
100%
Compounding Annual Return (ema-fast, ema-slow, ema-medium)
4.2%8.9%6.1%10.4%7.0%11.2%3.4%5.0%7.2%1.9%8.3%3.4%2.6%1.2%4.0%6.3%5.5%0.0%
0%
100%
BacktestsOptimization Id: O-ef30a0bd82eee04b939086916c1b4160
Name
PSR
Sharpe Ratio
Net Profit
Drawdown
ema-fast
ema-slow
ema-medium
Jumping Green Whale(70,90,140)
64.016%
1.213
11.247
3.8%
70
140
90
Dancing Tan Caterpillar(70,75,140)
42.475%
0.732
6.987
6.1%
70
140
75
Well Dressed Magenta Sheep(70,90,120)
23.053%
0.274
3.409
6.6%
70
120
90
Energetic Red Owlet(70,75,120)
50.575%
0.906
8.336
3.6%
70
120
75
Hyper-Active Yellow Donkey(70,90,100)
0%
0
0
0%
70
100
90
Calm Magenta Bear(70,75,100)
32.132%
0.504
5.538
6.4%
70
100
75
Filters
Columns
Status
Completed
Configuration
Optimization Strategy
Grid Search : Max of Sharpe Ratio
Parameters
EMA-FAST
Min: 50  Max: 70
EMA-SLOW
Min: 100  Max: 140
EMA-MEDIUM
Min: 75  Max: 90
Constraints
Parameter Chart
Strategy Equities
Sharpe Ratio (ema-fast…
Drawdown (ema-fast, …
Compounding Annual …
Server Statistics
HOST
O4-12x 35

FROM RESEARCH TO PRODUCTION

Institutional-Grade Live Trading

Since 2012, QuantConnect has deployed more than 375,000 live strategies to a managed, co-located live-trading environment. Our platform processes more than $100B in notional volume per month.

Execute trades directly through our 20 integrations or to EMSX Net's 1,300 liquidity providers.

Our live feeds include US SIP, CME, FX, and major crypto exchanges. Other live feed options are available upon request.

Low Latency Dedicated Infrastructure
Redundant 10GB Fiber Internet
Integrations to 20 Destinations
Deploy Your Algorithm
quantconnect.com/project/18274593/live LIVE
Support/Momentum Regime Rotation
PaperBrokerage
62.410%
PSR
$1,284.50
Unrealized
$214.86
Fees
$10,472.31
Net Profit
10.5%
Return
$110,472.31
Equity
$48,902.10
Holdings
$1,284,650.00
Volume
Strategy Equity$110,472.31
10m1h1d1wAll
95k100k105k110k115kEQUITY7. Aug21. Aug4. Sep18. Sep2. Oct16. Oct30. Oct13. Nov27. Nov11. Dec25. Dec8. JanEquity
Stockplot SPY$460.00
10m1h1d1wAll
425450475PRICE7. Aug21. Aug4. Sep18. Sep2. Oct16. Oct30. Oct13. Nov27. Nov11. Dec25. Dec8. JanPriceBuySell
Assets Sales Volume$1.28M
Orders5 open
Symbol
Avg. Price
Quantity
Market Price
Market Value
SPY
443.18
1,250
474.86
$593,575
BTCUSD
38,412.60
1.85
41,208.44
$76,235
QQQ
372.44
-400
381.02
-$152,408
NVDA
186.26
800
185.90
$148,720
MSFT
432.49
-450
432.33
-$194,548
Select Chart
Strategy Equity
Assets Sales Volume
Stockplot SPY
Server Statistics
CPU
4.4%
RAM
561 MB / 512 MB
Host
LIVE-150-a07155520
Up Time
1d 07:07:09
Broker Connected

FROM RESEARCH TO PRODUCTION

Bring Agentic AI to QuantConnect with Mia

Empower Mia — your agentic AI assistant — to design, backtest, optimize, and live-trade your quantitative strategies on QuantConnect through a streamlined, AI-ready workflow. Built for professional quant teams, Mia delivers the reliability, flexibility, and security needed for real-world trading systems.

Natural-language strategies
Auto backtesting
Smart code edits
Parameter optimization
One-step deployment
quantconnect.com/project/18274593/terminal TERMINAL
Projects
Momentum Regime Rotation
Running
SPX Overnight Edge
Running
Nasdaq Vol Carry
Completed
Earnings Drift Basket
Completed
Crypto Trend Follower
Completed
Sector Rotation ETF
Completed
Mean Reversion Pairs
Completed
Gold Macro Filter
Completed
Small Cap Quality
Completed
FX Carry Overlay
Completed
Options Vol Surface
Completed
Index Rebalance Alpha
Completed
High Yield Credit Beta
Completed
Commodity Term Structure
Completed
Low Beta Defensive
Completed
Treasury Curve Carry
Completed
Build a momentum rotation strategy on the Nasdaq 100 and backtest it
Build a momentum rotation strategy on the Nasdaq 100 and backtest it
Three candidates came out of the screen. Momentum rotation scores best
on trend persistence, so I'll build that one.
Pulled three years of daily history and tested the regime filter: it keeps
the book flat through 71% of the drawdown days. Here is the research cell:
In [1]:
qb = QuantBook()
universe = qb.AddUniverse(Universe.Nasdaq100)
history = qb.History(universe, 756, Resolution.Daily)
history.close.pct_change().groupby(level=0).std().nlargest(5)
Out[1]:
symbol      
NVDA        0.0311
TSLA        0.0287
AMZN        0.0221
MSFT        0.0164
AAPL        0.0182
Backtested 2022-2023 18.1% PSR on a 0.88% return, against a 3.2% max
drawdown. Chart is in the Backtest panel. Want me to paper trade it?
Yes, paper trade it for a month
Deployed to paper with the same universe and a 21-day rebalance.
Fills are showing in the Paper Trading panel.
Paper cleared its first week inside tolerance promoting the allocation
to live now.
Ideas
Rotate monthly into the top decile of Nasdaq 100 names ranked on six-month trend persistence, sized down when the volatility regime turns.
512
Screened
3
Shortlisted
Research
0.71
Regime hit
3Y
Window
Backtest
18.1%
PSR
+0.88%
Return
1.21
Sharpe
Paper Trading
$100,842
Equity
+0.31%
Day
Live Trading
SPY474.86+1,284
QQQ381.02-486
NVDA185.90+932
Interactive Brokers Coinbase Bitfinex Tradier Trading Technologies Terminal Link Binance Alpaca TradeStation Charles Schwab Kraken EZE Samco Zerodha TD Ameritrade

Multi-Asset Portfolio Modeling

We accurately model multi-asset portfolio strategies, tracking real-time strategy equity across complex portfolios in backtesting and live trading. You can easily access the margin remaining for your strategy and size positions to reduce cash.

Equity

US Stock and ETFs since 1998, managing corporate actions, from tick to daily resolutions.

Equity Options

US Equity Options at minute resolution since 2010, with realistic portfolio modeling.

Indexes

US Cash Indexes since 1998 from tick to daily resolution bars on NDX, SPX, and VIX.

Index Options

US Index Options since 2012 from minute to daily resolutions, with portfolio modeling.

Futures

US Future markets at tick to daily resolutions since 2009, for the most liquid 70 contracts.

Future Options

Future Option markets at minute to daily resolutions since 2012, for the most liquid 70 contracts.

Forex

Interbank and market maker brokerage spreads, with realistic cashbook and margin lending.

CFD

Derivative CFD assets for leading brokerages for international traders with realistic spreads.

Crypto

Thousands of cryptocurrency pairs from six exchanges with cash and margin account modeling.

Rich Library of Alternative Data

Orthogonal signals are critical to building a robust strategy. We serve a rich library of alternative data with more than 40 distinct vendors covering millions of potential strategies.

Each dataset is processed with a uniform timestamp and delivered to your strategy point-in-time to avoid selection bias. With one simple line of code, your alternative data automatically links to underlying assets and tracks corporate actions through time.

Data is ready to be used in live trading, delivered in real-time in our co-located live-trading environment. Prefer to do your research on-premises? Export and download the data through our Datasets Marketplace.

Browse Datasets

Explore alternative data with a single line of code

Alternative data vendors on QuantConnect

Build vs Buy: Your Firm's Dream Quantitative Research Platform

Have you ever thought about creating your own algorithmic trading platform but aren't sure about the expenses? Use our Build vs. Buy cost calculator to accurately assess the costs of developing a professional-grade quantitative trading platform. Compare these costs with using a ready-made solution like QuantConnect to make an informed decision.

Compare Now
Build vs. buy cost comparison

Open-Source Algorithmic Engine

LEAN is the algorithmic trading engine at the heart of QuantConnect. More than 180+ engineers contributed to the development of this lightning-fast, open-source platform. It provides modeling that surpasses the best financial institutions in the world. LEAN can be run on-premises or in the cloud.

21,581 stars 5,240 forks

Local Development, Cloud Backtesting

Code locally in your favorite development environment, then synchronize your projects to the cloud to work on the go with QuantConnect's IDE.

lean backtest "My Project" —debug

lean cloud backtest "My Project"

lean cloud live "My Project"

Installation: pip install lean

Enterprise-Grade Performance At Any Scale

Built on open-source LEAN and continuously rebased on it, LEAN Enterprise optimizes the layers your algorithm never touches: data decompression, memory allocation, and the hot paths under every bar. Your code doesn't change; the engine underneath it does.

Up to 40% faster execution with substantially higher data throughput.

LEAN ENTERPRISE
LEAN

More than 2x faster on large-scale, high-frequency datasets.

LEAN ENTERPRISE
LEAN

Up to ~45% faster indicator computation, accelerating research and optimization cycles.

LEAN ENTERPRISE
LEAN
Learn More Talk to Us

An Inspired and Connected Global Community

QuantConnect has a global community of 540K quants, researchers, data scientists, and engineers. Collectively we are the biggest quant research community in the world with more than 1,200 strategies shared through the forums, a vast library of public quant research.

Every month, the brightest quantitative minds use our platform to generate research. On an average month 50,000 QuantConnect users create 2,500 new algorithms and write 1M lines of code.

to