Skip to content

Support source as an input value type #241

Open

Description

@conkolas

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!

Activity

  1. changed the title [-]Support source as input value type[/-] [+]Support source as an input value type[/+] on May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions