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

Support source as an input value type #241

Open
conkolas opened this issue May 14, 2024 · 0 comments
Open

Support source as an input value type #241

conkolas opened this issue May 14, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@conkolas
Copy link

I have a strategy builder that takes in multiple different inputs as a source from other indicators and executes actions according to the conditions.

image

In order to test this indicator it would require passing other indicator output references as an input value but currently, these are the supported input types:

const types = {
  bool: 'Boolean',
  integer: 'Number',
  float: 'Number',
  text: 'String',
};

Also, the study holds only one indicator instance so it loses reference when the new indicator is added.

this.instance = indicator;

So for all this to work the study would need to handle and track multiple indicators and set PineIndicator inputs as a source from a different indicator.

While debugging TV ws messages I noticed that it sends input.source value as an indicator id in the study with the output id prefix like st4$4 where st4 is id and $4 is an output id prefix.
image

Is that something that would be possible to implement?
That would be a game changer!

@conkolas conkolas added the enhancement New feature or request label May 14, 2024
@conkolas conkolas changed the title Support source as input value type Support source as an input value type May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants