Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CompositeIndicator Support Python #8587

Open
3 tasks done
AlexCatarino opened this issue Feb 12, 2025 · 0 comments · May be fixed by #8598
Open
3 tasks done

CompositeIndicator Support Python #8587

AlexCatarino opened this issue Feb 12, 2025 · 0 comments · May be fixed by #8598

Comments

@AlexCatarino
Copy link
Member

Expected Behavior

Create CompositeIndicator in Python.

class GeekySkyBlueSardine(QCAlgorithm):
    def initialize(self):
        self.set_start_date(2023, 8, 11)
        self.add_equity("SPY", Resolution.MINUTE)
        close  = self.identity("SPY", Resolution.DAILY, Field.CLOSE)
        low = self.min("SPY", 420, Resolution.MINUTE, Field.LOW)
        min_1D = CompositeIndicator("test", close, low, lambda l,r: min(close, low))

Actual Behavior

Not supported

Potential Solution

Add overload and conversions to CompositeIndicator class

Checklist

  • I have completely filled out this template
  • I have confirmed that this issue exists on the current master branch
  • I have confirmed that this is not a duplicate issue by searching issues
@JosueNina JosueNina linked a pull request Feb 20, 2025 that will close this issue
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant