Repository navigation
Subscription
Jenkins edited this page Apr 10, 2018
·
6 revisions
Subscription object is returned by Chart Methods. This object allows you to subscribe and unsubscribe to a chart event. It has two methods:
-
objectis a context to be used asthispointer for themethodfunction. Usenullif you don't need the context. -
methodis a function to be called when the event happens. -
singleshotis an optional argument. Set it totrueif you wish to be unsubscribed automatically when the event happens for the first time.
Use the same object and method that you used in the subscribe function to unsubscribe from the event.
Use the same object that you used in subscribe function to unsubscribe object from all events.
- What is Charting Library
- Getting Started
- Data Binding
- Chart Customization
- Customization Overview
- Client-Side Customization
- Server-Side Customization
- Customization Use Cases
- Trading Terminal
- Saving/Loading Charts
- Creating Custom Studies
- Breaking changes in versions