Repository navigation
Add time-series and cross-sectional information coefficient indicators - #10231
Merged
Martin-Molinero merged 2 commits intoNov 24, 2026
Merged
Conversation
Adds TSIC and CSIC, with their algorithm helpers and Python overloads. The cross-sectional IC aligns its periods through MultiSymbolIndicator, correlates the assets that have data when a period is incomplete, and follows a changing cross-section with Add and Remove. Takes over #10105. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 of 6 tasks
MultiSymbolIndicator's symbol data now takes the resolution of its first input when the indicator's first input didn't set one, such as for an asset added afterwards, and clears it on reset. The cross-sectional IC no longer tracks the assets added after its first input, and SetResolution is private again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Martin-Molinero
deleted the
feature-10104-information-coefficient-indicators
branch
November 24, 2026 19:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds two information coefficient (IC) indicators and their algorithm helpers:
TimeSeriesInformationCoefficient(TSIC(symbol, signal, period, resolution, selector)): one asset's Spearman correlation, over the lastperiodperiods, between the signal's value at the end of each period and the asset's return over the next one.CrossSectionalInformationCoefficient(CSIC(symbols, signalFactory, resolution, selector)): each period, the Spearman correlation across the assets between their signal values at the end of the previous period and their returns over this one.Behavior:
CompositeIndicatorsignal is rejected. A signal chained with.Of()can't be detected; the XML docs say so.MultiSymbolIndicator's alignment (UTC end time truncated to the resolution), so assets whose bars end at different local times share a period. A period is correlated as soon as every tracked asset has an input for it, or else across the assets that have one when the next period starts, such as after a delisting. A period needs at least 3 assets.Add/Removefollow a changing cross-section, as in the breadth indicators.Correlationdoes.tsic/csicoverloads convert Python signals the same wayregister_indicatordoes.MultiSymbolIndicator's symbol data takes the resolution of its own first input when the indicator's first input didn't set one, so assets added afterwards align too. Its other subclasses behave as before.This takes over #10105 without its output time zone handling: like every other indicator, a value carries its input's exchange time. Publishing indicators over several exchange time zones in one clock is #10230.
Related Issue
Closes #10104
Motivation and Context
LEAN had no built-in information coefficient indicator.
Requires Documentation Change
Yes: QuantConnect/Documentation#2896, to merge after a release that includes this change.
How Has This Been Tested?
TimeSeriesInformationCoefficientTestsandCrossSectionalInformationCoefficientTestscheck each value againstscipy.stats.spearmanr, including missing data, delistings,Add/Remove, assets whose bars end at different local times, the zero-price skip, warm-up,Reset, signal ownership errors, one value per period, and a 1,000-asset cross-section.InformationCoefficientHelpersAcceptCustomPythonSignalscovers custom Python signals under automatic warm-up.add/remove, futures of different exchanges,indicator_history) matched a scipy model on every value. This branch gives the same values; it only drops the output time zone conversion of Add information coefficient indicators #10105's last two commits.Types of changes
Checklist:
bug-<issue#>-<description>orfeature-<issue#>-<description>🤖 Generated with Claude Code