Interface: CrossHairMovedEventParams
Charting Library.CrossHairMovedEventParams
Crosshair move event information.
Properties
entityValues
Optional
entityValues: Record<EntityId, CrossHairMovedEventSource>
Series and study values at the crosshair position. The object keys are study or series IDs, and the object value are study or series values.
The ID for the main series will always be the string '_seriesId'.
offsetX
Optional
offsetX: number
X coordinate of the crosshair relative to the left edge of the element containing the library.
offsetY
Optional
offsetY: number
Y coordinate of the crosshair relative to the top edge of the element containing the library.
price
price: number
The price coordinate of the crosshair.
time
time: number
The crosshair time coordinate represented with a UNIX timestamp in UTC. You can use this property to do some calculations or retrieve additional data from the datafeed.
userTime
Optional
userTime: number
The crosshair time coordinate represented with a UNIX timestamp in the selected time zone. You can use this property to display the crosshair time value in the UI, for example, in a tooltip or data window.