Skip to content

FEATURE: [indicator] porting SuperTrend to indicatorv2#2365

Merged
dboyliao merged 1 commit intomainfrom
dboy/indicator/supertrend
Mar 12, 2026
Merged

FEATURE: [indicator] porting SuperTrend to indicatorv2#2365
dboyliao merged 1 commit intomainfrom
dboy/indicator/supertrend

Conversation

@dboyliao
Copy link
Copy Markdown
Collaborator

supertrend

@dboyliao dboyliao requested a review from gx578007 December 28, 2025 16:11
@dboyliao dboyliao requested a review from c9s as a code owner December 28, 2025 16:11
c9s
c9s previously approved these changes Dec 30, 2025
@c9s
Copy link
Copy Markdown
Owner

c9s commented Dec 30, 2025

圖看起來怪怪的

@c9s c9s dismissed their stale review December 30, 2025 15:01

few questions

Comment thread pkg/indicator/v2/supertrend.go Outdated

type SuperTrendBand struct {
UppderBand float64
LowerBand float64
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can just store one band value and use the direction to remember which side it is ?

Copy link
Copy Markdown
Collaborator Author

@dboyliao dboyliao Jan 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am thinking we can draw the tunnel if we have both upper and lower band.
That's why I have a method .Band() to do the side selection for convenience.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, I also need to keep track of previous upper/lower bound value to detect the trend switch.

@dboyliao dboyliao requested a review from c9s January 4, 2026 02:07
@dboyliao dboyliao force-pushed the dboy/indicator/supertrend branch from f9ddebd to 79c40ca Compare March 12, 2026 05:43
@dboyliao dboyliao merged commit 4045ce8 into main Mar 12, 2026
3 checks passed
@dboyliao dboyliao deleted the dboy/indicator/supertrend branch March 12, 2026 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants