This section highlights your contributions and engagement across the QuantConnect platform — including backtests, live trades, published research, and community involvement through comments and threads. It reflects your overall activity as part of the QuantConnect community.
20.363Net Profit
4.893PSR
-0.12Sharpe Ratio
-0.024Alpha
0.228Beta
3.775CAR
23.1Drawdown
-0.39Loss Rate
19Parameters
1Security Types
1255Tradeable Dates
352Trades
-0.039Treynor Ratio
0.37Win Rate
-8.074Net Profit
0.08PSR
-0.806Sharpe Ratio
-0.041Alpha
-0.092Beta
-1.669CAR
13Drawdown
-0.14Loss Rate
9Parameters
1Security Types
0Tradeable Dates
1796Trades
0.516Treynor Ratio
0.11Win Rate
-7.672Net Profit
0.086PSR
-0.805Sharpe Ratio
-0.04Alpha
-0.095Beta
-1.583CAR
13Drawdown
-0.14Loss Rate
8Parameters
1Security Types
0Tradeable Dates
1780Trades
0.493Treynor Ratio
0.11Win Rate
55.806Net Profit
18.597PSR
0.31Sharpe Ratio
0.028Alpha
0.042Beta
9.271CAR
13.9Drawdown
-0.23Loss Rate
11Parameters
1Security Types
1255Tradeable Dates
5462Trades
0.734Treynor Ratio
0.39Win Rate
9.608Net Profit
1.233PSR
-0.147Sharpe Ratio
-0.019Alpha
0.015Beta
1.851CAR
23.4Drawdown
-0.28Loss Rate
10Parameters
1Security Types
1255Tradeable Dates
3454Trades
-1.14Treynor Ratio
0.59Win Rate
Derek left a comment in the discussion Piotroski F-Score Investing
Hi everyone,
Derek left a comment in the discussion Gradient Boosting Model
Hi Ben,
Derek left a comment in the discussion QuantConnect MCP Server
Hi Hao, (1) we are in the process of testing various integrations and will be creating docs for...
Derek left a comment in the discussion QuantConnect MCP Server
There are some simple examples here:...
20.363Net Profit
4.893PSR
-0.12Sharpe Ratio
-0.024Alpha
0.228Beta
3.775CAR
23.1Drawdown
-0.39Loss Rate
19Parameters
1Security Types
1255Tradeable Dates
352Trades
-0.039Treynor Ratio
0.37Win Rate
-8.074Net Profit
0.08PSR
-0.806Sharpe Ratio
-0.041Alpha
-0.092Beta
-1.669CAR
13Drawdown
-0.14Loss Rate
9Parameters
1Security Types
0Tradeable Dates
1796Trades
0.516Treynor Ratio
0.11Win Rate
-7.672Net Profit
0.086PSR
-0.805Sharpe Ratio
-0.04Alpha
-0.095Beta
-1.583CAR
13Drawdown
-0.14Loss Rate
8Parameters
1Security Types
0Tradeable Dates
1780Trades
0.493Treynor Ratio
0.11Win Rate
55.806Net Profit
18.597PSR
0.31Sharpe Ratio
0.028Alpha
0.042Beta
9.271CAR
13.9Drawdown
-0.23Loss Rate
11Parameters
1Security Types
1255Tradeable Dates
5462Trades
0.734Treynor Ratio
0.39Win Rate
9.608Net Profit
1.233PSR
-0.147Sharpe Ratio
-0.019Alpha
0.015Beta
1.851CAR
23.4Drawdown
-0.28Loss Rate
10Parameters
1Security Types
1255Tradeable Dates
3454Trades
-1.14Treynor Ratio
0.59Win Rate
-36.054Net Profit
0PSR
-1.476Sharpe Ratio
0Alpha
0Beta
-8.551CAR
39.8Drawdown
-0.39Loss Rate
13Parameters
1Security Types
0Tradeable Dates
777Trades
0Treynor Ratio
0.39Win Rate
-99.904Net Profit
0PSR
-0.999Sharpe Ratio
-0.423Alpha
0.316Beta
-75.071CAR
99.9Drawdown
-0.2Loss Rate
0Parameters
1Security Types
0Tradeable Dates
31447Trades
-1.272Treynor Ratio
0.08Win Rate
-16.425Net Profit
0.001PSR
-1.431Sharpe Ratio
-0.034Alpha
-0.163Beta
-3.524CAR
20.9Drawdown
-0.51Loss Rate
14Parameters
1Security Types
1255Tradeable Dates
27Trades
0.374Treynor Ratio
0.33Win Rate
-1.266Net Profit
0.284PSR
-1.434Sharpe Ratio
-0.044Alpha
0.07Beta
-0.254CAR
6.4Drawdown
-0.69Loss Rate
12Parameters
1Security Types
1255Tradeable Dates
65Trades
-0.559Treynor Ratio
0.49Win Rate
-1.266Net Profit
0.284PSR
-1.434Sharpe Ratio
-0.044Alpha
0.07Beta
-0.254CAR
6.2Drawdown
-0.69Loss Rate
12Parameters
1Security Types
1255Tradeable Dates
65Trades
-0.559Treynor Ratio
0.49Win Rate
45.097Net Profit
3.285PSR
0.213Sharpe Ratio
-0.012Alpha
1.13Beta
7.73CAR
50.5Drawdown
-5.47Loss Rate
9Parameters
1Security Types
0Tradeable Dates
135Trades
0.058Treynor Ratio
3.79Win Rate
99.909Net Profit
21.691PSR
0.501Sharpe Ratio
0.006Alpha
0.993Beta
14.854CAR
28.6Drawdown
-0.16Loss Rate
22Parameters
1Security Types
0Tradeable Dates
1418Trades
0.076Treynor Ratio
0.22Win Rate
-61.194Net Profit
0.214PSR
-0.144Sharpe Ratio
-0.18Alpha
1.623Beta
-17.242CAR
78.8Drawdown
-1.74Loss Rate
9Parameters
1Security Types
0Tradeable Dates
1076Trades
-0.041Treynor Ratio
1.43Win Rate
-45.296Net Profit
0PSR
-0.939Sharpe Ratio
-0.115Alpha
0.061Beta
-11.373CAR
49.5Drawdown
-0.52Loss Rate
14Parameters
1Security Types
0Tradeable Dates
1592Trades
-1.815Treynor Ratio
0.38Win Rate
36.539Net Profit
2.888PSR
0.179Sharpe Ratio
-0.013Alpha
0.939Beta
6.432CAR
58.5Drawdown
-1.25Loss Rate
18Parameters
1Security Types
1255Tradeable Dates
650Trades
0.056Treynor Ratio
1.09Win Rate
1.959Net Profit
0.644PSR
-0.788Sharpe Ratio
-0.033Alpha
-0.015Beta
0.389CAR
12.4Drawdown
-0.38Loss Rate
12Parameters
1Security Types
1255Tradeable Dates
418Trades
2.192Treynor Ratio
0.37Win Rate
26.359Net Profit
2.266PSR
0.089Sharpe Ratio
-0.075Alpha
1.251Beta
4.789CAR
36.6Drawdown
-0.11Loss Rate
13Parameters
1Security Types
0Tradeable Dates
1806Trades
0.015Treynor Ratio
0.14Win Rate
-3.201Net Profit
0.265PSR
-0.6Sharpe Ratio
-0.056Alpha
0.212Beta
-0.648CAR
12.6Drawdown
-1.08Loss Rate
16Parameters
1Security Types
1255Tradeable Dates
326Trades
-0.188Treynor Ratio
1.41Win Rate
-8.055Net Profit
0.106PSR
-0.708Sharpe Ratio
-0.049Alpha
0.033Beta
-1.665CAR
15.1Drawdown
-0.19Loss Rate
9Parameters
1Security Types
0Tradeable Dates
3717Trades
-1.406Treynor Ratio
0.2Win Rate
-48.939Net Profit
1.654PSR
0.166Sharpe Ratio
-0.058Alpha
2.274Beta
-12.572CAR
83Drawdown
-4.22Loss Rate
10Parameters
1Security Types
1552Tradeable Dates
655Trades
0.049Treynor Ratio
4.2Win Rate
-48.939Net Profit
1.654PSR
0.166Sharpe Ratio
-0.058Alpha
2.274Beta
-12.572CAR
83Drawdown
-4.22Loss Rate
11Parameters
1Security Types
1552Tradeable Dates
655Trades
0.049Treynor Ratio
4.2Win Rate
-33.436Net Profit
0.056PSR
-0.409Sharpe Ratio
-0.153Alpha
1.035Beta
-7.815CAR
62.1Drawdown
-0.06Loss Rate
15Parameters
1Security Types
0Tradeable Dates
6455Trades
-0.073Treynor Ratio
0.03Win Rate
-23.359Net Profit
0PSR
-2.403Sharpe Ratio
-0.073Alpha
0.003Beta
-5.18CAR
24.6Drawdown
-0.07Loss Rate
19Parameters
1Security Types
0Tradeable Dates
7500Trades
-28.408Treynor Ratio
0.07Win Rate
-7.32Net Profit
0.105PSR
-0.709Sharpe Ratio
-0.049Alpha
0.034Beta
-1.508CAR
15.2Drawdown
-0.19Loss Rate
7Parameters
1Security Types
0Tradeable Dates
3768Trades
-1.384Treynor Ratio
0.2Win Rate
78.737Net Profit
11.104PSR
0.359Sharpe Ratio
0.006Alpha
0.761Beta
12.312CAR
36Drawdown
-1.46Loss Rate
7Parameters
1Security Types
0Tradeable Dates
219Trades
0.082Treynor Ratio
3.53Win Rate
-45.212Net Profit
0PSR
-1.559Sharpe Ratio
-0.094Alpha
0.075Beta
-8.145CAR
47.1Drawdown
-0.1Loss Rate
115Parameters
2Security Types
0Tradeable Dates
10108Trades
-1.15Treynor Ratio
0.1Win Rate
45.022Net Profit
19.724PSR
0.26Sharpe Ratio
-0.009Alpha
0.409Beta
7.715CAR
21.8Drawdown
-0.44Loss Rate
17Parameters
1Security Types
1255Tradeable Dates
340Trades
0.054Treynor Ratio
0.44Win Rate
38.146Net Profit
7.195PSR
0.134Sharpe Ratio
-0.026Alpha
0.54Beta
6.674CAR
35.4Drawdown
-0.77Loss Rate
27Parameters
1Security Types
1255Tradeable Dates
159Trades
0.028Treynor Ratio
1.28Win Rate
38.146Net Profit
7.195PSR
0.134Sharpe Ratio
-0.026Alpha
0.54Beta
6.674CAR
35.4Drawdown
-0.77Loss Rate
27Parameters
1Security Types
1255Tradeable Dates
159Trades
0.028Treynor Ratio
1.28Win Rate
9.632Net Profit
1.247PSR
-0.159Sharpe Ratio
-0.051Alpha
0.442Beta
1.855CAR
33.2Drawdown
-0.71Loss Rate
14Parameters
1Security Types
0Tradeable Dates
552Trades
-0.041Treynor Ratio
1.36Win Rate
Derek left a comment in the discussion [Python] PythonIndicator.current Property Undocumented and Non-Functional
Thanks, we'll update the docs
Derek left a comment in the discussion Piotroski F-Score Investing
Hi everyone,
Derek left a comment in the discussion Gradient Boosting Model
Hi Ben,
Derek left a comment in the discussion QuantConnect MCP Server
Hi Hao, (1) we are in the process of testing various integrations and will be creating docs for...
Derek left a comment in the discussion QuantConnect MCP Server
There are some simple examples here:...
Derek left a comment in the discussion Accessing underlying backtest data via API
The columns are OHLC
Derek submitted the research Probabilistic Sharpe Ratio
The Probabilistic Sharpe Ratio (PSR) is a method for evaluating investment performance that takes into account the non-normality of returns. The traditional Sharpe ratio assumes that returns are normally distributed, which can lead to misleading results for strategies with non-normal returns. The PSR addresses this limitation by considering the distribution of returns and estimating the probability that a given Sharpe ratio is a result of skill rather than luck. This provides a more accurate measure of a strategy's performance and allows for better comparisons between different strategies. The PSR is particularly useful for strategies with non-normal returns, as it takes into account the impact of skewness and kurtosis on the statistical significance of the observed Sharpe ratio.
Derek submitted the research Copying Congress Trades
This research explores a trading algorithm that mimics trades made by U.S. Congress members, leveraging their privileged access to market-moving information. The Stop Trading on Congressional Knowledge (STOCK) Act mandates disclosure of such trades, enabling public access. Using the Quiver Quantitative dataset, the algorithm employs an inverse-volatility weighting scheme to balance risk across assets, limiting individual asset exposure to 10% to mitigate concentration risk. By forming a portfolio based on these disclosures, the strategy aims to capitalize on the informational advantage indirectly.
Derek submitted the research Automating the Wheel Strategy
The Wheel strategy is a popular options trading approach that generates steady income from equities intended for long-term holding. It involves selling cash-secured puts and covered calls. Initially, out-of-the-money (OTM) puts are sold until shares are assigned. Once shares are held, OTM covered calls are sold until exercised. This strategy generates income through premiums from option sales. The underlying equity should be one the trader is comfortable owning. For implementation, SPY was used as the underlying asset, chosen for its stability and long-term hold potential. The strategy offers built-in risk management and downside protection by effectively managing option assignments and sales.
Derek submitted the research Reimagining the 60-40 Portfolio in an Era of AI and Falling Rates
During the initial outbreak of the COVID March 2020 the safety that the 60-40 stock-bonds portfolio offered seemed to break down, leading investors to seek new uncorrelated assets to hedge portfolios in times of crisis. This micro-study aims to determine the new 60-40 portfolio, as the interest from idle cash starts to diminish. It uses machine learning to select and weight portfolio assets based on the magnitude of the predicted returns. The strategy uses machine learning and economic factors to manage a portfolio of risk-on and risk-off assets. The algorithm rebalances the portfolio at the start of every month. During each rebalance, it allocates a portion of the portfolio to each asset the regression model predicts will have a positive return over the following month, scaling the positions based on the magnitude of the predicted returns.
Derek submitted the research Bitcoin as a Leading Indicator
This research explores Bitcoin's role as a leading indicator for US Equity market turbulence. Bitcoin, classically a risk-on asset that trades 24/7, can signal crises in other markets due to its liquidity and volatility. The study demonstrates a trading strategy using the LEAN engine, rotating capital between US Equities and cash based on Bitcoin's price action. When Bitcoin drops two standard deviations below its two-year moving average, the strategy shifts to cash, enhancing risk-adjusted returns for long-term investors.
Derek submitted the research Searching for Alpha in US Presidential Elections
This discussion explores the development of trading strategies around U.S. presidential elections, focusing on the potential for sector-based alpha generation. Initially, a strategy was tested based on the hypothesis that post-election, party-favored sectors outperform the market. The strategy involved rebalancing a portfolio monthly, favoring sectors like Healthcare and Technology for Democrats, and Energy and Financial Services for Republicans. Despite achieving a higher Sharpe ratio than SPY, the strategy was rejected due to potential look-ahead bias. Subsequent tests analyzed sector ETF returns and industry correlations with political parties, but found no consistent patterns. This research highlighted the challenges in predicting market behavior based on political events.
Derek submitted the research Country Rotation Based On Regulatory Alerts Sentiment
Abstract: This tutorial explores four alternative data strategies that utilize the US Regulatory Alerts dataset to make trading decisions. The strategies include capitalizing on movement in the healthcare sector in response to FDA announcements, capturing momentum in the Bitcoin-USD trading pair based on new Crypto regulations, exploiting trading patterns in the SPY based on specific regulatory alerts, and a country rotation strategy using NLP to detect sentiment in country ETFs. The results show that all four strategies outperform their respective benchmarks. The tutorial also discusses NLP and its role in trading strategies, as well as the implementation of the four strategies using the LEAN algorithmic trading engine.
Derek submitted the research Detecting Impactful News In ETF Constituents
Abstract: This tutorial focuses on utilizing natural language processing (NLP) to detect impactful news in ETF constituents. Building upon a previous NLP strategy, we monitor the Tiingo News Feed to determine intraday news sentiment of the largest constituents in the Nasdaq-100 index, while avoiding look-ahead bias. The results indicate that this strategy has experienced lower risk-adjusted returns compared to the QQQ ETF over the past two years. The tutorial discusses the implementation of this strategy as a framework algorithm using the LEAN trading engine, including universe selection and portfolio construction. Backtesting results show a Sharpe ratio of -0.659, with comparisons to other benchmarks provided.
Derek submitted the research Head & Shoulders TA Pattern Detection
This discussion focuses on the detection of the head and shoulders pattern in technical analysis. While technical analysis traders commonly use graphical patterns to identify trading opportunities, quant traders tend to overlook them due to subjectivity and difficulty in accurate detection. However, this tutorial presents a method to programmatically detect the head and shoulders pattern in an event-driven trading algorithm. The algorithm achieves greater risk-adjusted returns than the benchmarks during the backtesting period. The head and shoulders pattern consists of two shoulders, a tall head, and a neckline. It is believed to signal a bullish-to-bearish trend reversal. Further research can include testing other technical patterns, adjusting algorithm parameters, exploring new position sizing techniques, implementing different exit strategies, and incorporating risk management for corporate actions.
Derek submitted the research Futures Fast Trend Following, with Trend Strength
This research focuses on Futures Fast Trend Following strategies that can be applied to both long and short positions, taking into account the strength of the trend. The purpose of the research is to explore the effectiveness of these strategies and their potential implications for trading in the futures market. The research utilizes various methods to analyze historical data and identify trends, and the key findings highlight the profitability and consistency of the trend following strategies. The implications of the research suggest that these strategies can be valuable tools for traders seeking to capitalize on trends in the futures market.
Derek submitted the research Combined Carry and Trend
This research is a re-creation of strategy #11 from Advanced Futures Trading Strategies (Carver, 2023) that combines carry and trend strategies in futures trading. The algorithm incorporates exponential moving average crossover (EMAC) trend forecasts and carry forecasts to form a diversified portfolio. The results show that using both styles of strategies can improve risk-adjusted returns. Additionally, the research provides a background on how carry returns are calculated for different asset classes and how the strategy calculates and smooths carry from different future contracts.
Derek started the discussion New Insight Manager and Updates for Risk Management Models
Hi everyone,
Derek submitted the research Sector Rotation Based On News Sentiment
Abstract: This tutorial explores a sector rotation strategy based on news sentiment using the LEAN algorithmic trading engine and datasets from the QuantConnect Dataset Market. The strategy involves monitoring the news sentiment for 25 different sector Exchange Traded Funds (ETFs) and periodically rebalancing the portfolio to maximize exposure to sectors with the highest public sentiment. Backtesting results demonstrate that the strategy consistently outperforms benchmark approaches. The tutorial provides details on universe selection, implementation, and presents equity curves and Sharpe ratios for different versions of the strategy and benchmarks. To replicate the results, users are encouraged to clone and backtest each algorithm.
Derek started the discussion Plot Backtest Trade Fills in the Research Environment
Hi everyone!
Derek submitted the research Sortino Portfolio Optimization with Alpha Streams Algorithms
QuantConnect provides trading infrastructure and data for quants to develop and deploy algorithmic trading strategies. They offer the Alpha Streams platform for quants to license their proprietary signals to investors. To assist investors in analyzing the performance of these signals, QuantConnect has released a new notebook that determines the optimal portfolio weights for each alpha, maximizing the portfolio's Sortino ratio. The Sortino ratio measures the strategy's average daily return in excess of a risk-free rate, divided by the standard deviation of negative daily returns. The notebook uses a walk-forward approach to avoid bias and overfitting, and the optimization is done on a rolling monthly basis.
Derek submitted the research Residual Momentum
Residual momentum is a strategy where stocks with higher monthly residual returns outperform those with lower returns. It has been found to have less exposure to Fama-French factors, higher Sharpe ratios, and better out-of-sample performance compared to total return momentum strategies. Residual momentum is also more stable throughout the business cycle and tends to underperform during trending periods but outperform during reverting periods. This strategy is less concentrated in small-cap stocks, leading to lower trading costs and minimizing the impact of tax-loss selling. The algorithm imports custom data, selects a universe of stocks based on fundamental data and market cap, and rebalances the portfolio monthly by longing the top 10% and shorting the bottom 10% of stocks based on their scores.
Derek submitted the research Intraday ETF Momentum
This tutorial implements an intraday momentum strategy for trading actively traded ETFs. The strategy predicts the sign of the last half-hour return based on the return generated in the first half-hour of the trading day. The algorithm is a recreation of the research conducted by Gao, Han, Li, and Zhou (2017), which found that this momentum pattern is statistically and economically significant. The tutorial provides background information on the characteristics of the opening and closing periods of trading, as well as the selection of ETFs for the strategy. The conclusion states that the momentum pattern produces lower returns compared to the S&P 500 benchmark, but outperforms the benchmark during the downfall of the 2020 crash.
Derek submitted the research Ichimoku Clouds In The Energy Sector
Derek submitted the research Intraday Arbitrage Between Index ETFs
Derek submitted the research Gradient Boosting Model
This tutorial focuses on training a Gradient Boosting Model (GBM) to forecast intraday price movements of the SPY ETF using technical indicators. The implementation is based on research by Zhou et al (2013), who found that a GBM produced a high annualized Sharpe ratio. However, the tutorial's research shows that the model underperforms the SPY with its current parameter set during a 5-year backtest. The tutorial concludes by suggesting potential areas of further research to improve the model's performance. The GBM is trained by iteratively building regression trees to predict pseudo-residuals and making predictions based on the learning rate and regression tree outputs. Technical indicator values are used as inputs, and the mean squared error loss function is used to assess the model's performance.
Derek submitted the research Using News Sentiment To Predict Price Direction Of Drug Manufacturers
Abstract: This tutorial explores the use of news sentiment to predict the price direction of drug manufacturers. By implementing an intraday strategy, we aim to capitalize on the upward drift in stock prices following positive news releases. Our findings show that combining this effect with the day-of-the-week anomaly can lead to profitable trading during the 2020 stock market crash. However, our algorithm underperforms the S&P 500 market index ETF, SPY, during the same period. The algorithm is inspired by the work of Isah, Shah, & Zulkernine (2018). We conclude that while the sentiment analysis strategy may not provide accurate results in the US drug manufacturing industry, profitability can be achieved by restricting trading to the most profitable day of the week. The strategy produces a negative Sharpe ratio of -1.
Derek submitted the research Gaussian Naive Bayes Model
Abstract: This discussion focuses on the Gaussian Naïve Bayes (GNB) model and its application in forecasting the daily returns of stocks in the technology sector. The GNB model is trained using historical returns of the sector and compared to the performance of the SPY ETF over a 5-year backtest and during the 2020 stock market crash. The implementation of the GNB model shows a higher Sharpe ratio and lower variance compared to the SPY ETF. The algorithm used in this discussion is based on previous research and follows the principles of Naïve Bayes models. The GNB model assumes independence and normal distribution of feature vectors.
Derek started the discussion Strategy Library Addition: Intraday ETF Momentum
Hi everyone,
Derek started the discussion Strategy Library Addition: Momentum in Mutual Fund Returns
Hi everyone,
Derek started the discussion Strategy Library Addition: Gaussian Naive Bayes Model
Hi everyone,
QuantConnect Boot Camp is a comprehensive educational program designed to help individuals learn algorithmic trading and quantitative finance using the QuantConnect platform.
Get this certificate by completing QuantConnect Boot Camp Courses
Derek left a comment in the discussion [Python] PythonIndicator.current Property Undocumented and Non-Functional
Thanks, we'll update the docs
2 months ago