tradingview / charting-library-examples

Examples of Charting Library integrations with other libraries, frameworks and data transports
MIT License
1.44k stars 768 forks source link

How do I detect the creation of a trendline? #11

Closed ekkis closed 6 years ago

ekkis commented 6 years ago

I’ve looked carefully through the developer documentation for the library but cannot find a proper way to hook onto the creation of a trendline on the graph

I see onDataLoaded(), onSymbolChanged(), onIntervalChange() and dataReady(), none of which would trigger when the user drops a trendline on the chart. the best I seem to find is the crossHairMoved() which fires every time the cursor moves. I can use that to go find the trendline (using the getAllShapes() method) but that's both costly and stupid

what is the proper way?

ezhukovskiy commented 6 years ago

Hi, please ask all your questions in the charting_library repo.

ekkis commented 6 years ago

there's no such repo. here are the repositories listed under TradingView:

tv-pylint-translations-rule charting-library-examples tradingview dynamic-dual-import-webpack-plugin yahoo_datafeed saveload_backend tradingview.github.io webpack-uglify-parallel tv-polyfill react-redux-ts-demo css-file-rules-webpack-separator

timocov commented 6 years ago

This is private repo and request an access to this repository.