feat: implement TDSequential (TD Sequential Candlestick Indicator) #6620#9325
Open
vibeyclaw wants to merge 1 commit intoQuantConnect:masterfrom
Open
feat: implement TDSequential (TD Sequential Candlestick Indicator) #6620#9325vibeyclaw wants to merge 1 commit intoQuantConnect:masterfrom
vibeyclaw wants to merge 1 commit intoQuantConnect:masterfrom
Conversation
Implements the TD Sequential indicator as requested in QuantConnect#6620. TD Sequential, developed by Tom DeMark, identifies potential trend exhaustion via two phases: - Setup: 9 consecutive bars where each close is higher (sell) or lower (buy) than the close 4 bars prior. SetupValue reports +1..+9 for sell setups and -1..-9 for buy setups. - Countdown: After a completed 9-bar setup, accumulates up to 13 qualifying bars (close >= high[2] for sell, close <= low[2] for buy). CountdownValue reports +1..+13 (sell) or -1..-13 (buy); ±13 signals trend exhaustion. The indicator extends BarIndicator and implements IIndicatorWarmUpPeriodProvider (WarmUpPeriod = 5). A RollingWindow<IBaseDataBar> of size 5 maintains the look-back bars needed by both phases. Closes QuantConnect#6620
Member
|
Hey @vibeyclaw! Thanks for the contribution, this is lacking a few pieces, specially tests! please take a look at other indicator PRs , like https://github.com/QuantConnect/Lean/pull/9109/changes . But there are many examples see https://github.com/QuantConnect/Lean/pulls?q=is%3Apr+indicator+is%3Aclosed |
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.
Summary
Implements the TD Sequential candlestick indicator as requested in #6620.
TD Sequential, developed by Tom DeMark, is a momentum-based indicator that identifies potential trend exhaustion points through two sequential phases.
Implementation
Setup Phase
SetupValuereports +1 to +9 for sell setups, -1 to -9 for buy setupsCountdown Phase
CountdownValuereports +1 to +13 (sell) or -1 to -13 (buy)Class Details
BarIndicator(consumesIBaseDataBar)IIndicatorWarmUpPeriodProviderwithWarmUpPeriod = 5RollingWindow<IBaseDataBar>of size 5 for efficient look-backSetupValueandCountdownValueReset()supportReference
Closes #6620