I have a strategy builder that takes in multiple different inputs as a source from other indicators and executes actions according to the conditions.
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:
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.
Is that something that would be possible to implement?
That would be a game changer!
I have a strategy builder that takes in multiple different inputs as a source from other indicators and executes actions according to the conditions.
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:
Also, the study holds only one indicator instance so it loses reference when the new indicator is added. https://github.com/Mathieu2301/TradingView-API/blob/693f205282c716ed71b340b20b9c5e3e7398ed97/src/chart/study.js#L382
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
wherest4
is id and$4
is an output id prefix.Is that something that would be possible to implement? That would be a game changer!