JorrinKievit / react-ts-tradingview-widgets

This is a React component library for TradingView Widgets
https://tradingview-widgets.jorrinkievit.xyz/
MIT License
154 stars 48 forks source link

Save user's choice of indicators, and stock #18

Closed ojaylu closed 1 year ago

ojaylu commented 1 year ago
  1. Is it possible to save the user's choice of indicators, and stock? Or possibly a hook that returns the selected indicators, and stock?
  2. What does datasource_copypaste in WidgetFeatures do?
  3. Is it possible to have your email as I'm currently working on my final year university project which utilizes this library as a main component?

Many thanks for the help in advance.

JorrinKievit commented 1 year ago

Hey,

  1. Just an idea: Maybe save the user's stocks and indicators in localstorage and apply them when loading your page?
  2. Enables copying of drawings and studies -> docs
  3. What would you need my email for? Can't you just link to this GitHub project?
ojaylu commented 1 year ago

Thanks for the reply!

  1. And how can I access the value of the stock symbol and choice of indicators? By querying the values of the html elements via the document or jQuery api? Is there a more effective way of getting those data?
  2. I tried enabling and disabling this feature but it does not seem to make a difference. Would be grateful if you can show where this feature is implemented.
  3. Apologies, I'm still kinda new to GitHub. Thought Issues is for raising bug issues. Was hoping to continue this convo via email for easier communication and for raising implementation queries rather than bugs issues.
JorrinKievit commented 1 year ago
  1. Now when I think about it, it is quite hard to obtain that kind of information because the widget is loaded in a iframe, and CORS will block you. So at the moment I don't think its possible
  2. I honestly don't know, not all features offered by the widgets are documented by TradingView, or very poorly. Some found in that list might be deprecated/removed.
  3. Others might learn from it if they experience similar issues :D
JorrinKievit commented 1 year ago

Closing due to inactivity

ojaylu commented 1 year ago

Thanks for the help!