-
Notifications
You must be signed in to change notification settings - Fork 0
WatchedValue
Kai Mun Lee edited this page Nov 20, 2018
·
1 revision
WatchedValue object is returned by some methods of the Trading Terminal. Using this object you can get/set some value and be notified when the value is changed.
Returns current value.
Sets new value.
-
callback
is a function to be called when the value is changed -
options
is an object with the following properties:-
once
- if it is set to true then the callback will be executed only once -
callWithLast
- if it is set to true then the callback will be executed with the previous value (if available)
-
Use the same function that you used in the subscribe
function to unsubscribe from the updates.
- 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