Skip to content

Is is possible to add a study/indicator to the chart? #647

Answered by timocov
timocov asked this question in Q&A
Discussion options

You must be logged in to vote

This is related to #633.

Yes, it is possible.

lightweight-charts knows nothing about what exactly you display in the chart - for the library all data sources are series (with different types of the data/displaying).

If you'd like to add several indicators to the chart, just create several series (one series for one single-valued study) with their own options and study/indicator's data.

If your study has several outputs (like Bollinger Bands), you can create several series - one series for one study output/plot. But in this case you need to pay attention on what price scale that series are using - quite probably you want to be sure that all a study's outputs are attached to the same price …

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@big-javascript-fan
Comment options

@timocov
Comment options

Answer selected by timocov
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@romfrancois
Comment options

@dokocat
Comment options

@romfrancois
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants