'Is there a function that returns with a boolean value of a mouse hover? V5
I would like to plot something only for that certain candle which (or the vertical position of which) the mouse is pointed on.
For example:
plot(MouseIsHovering ? SuperDuperEMA : na)
Solution 1:[1]
No, it is not possible to check where the mouse hovers through Pine. The closest you can get to this is an interactive moveable input with input.time(confirm=true):
//@version=5
indicator("My script")
bar = input.time(0, confirm=true)
sma = ta.sma(close, 100)
plot(time == bar ? sma : na)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | beeholder |
