Indicator/Strategy alerts #75
-
Hello, Thank you for developing this package. But I need a little help. (Suggestion or sniplett) We can get the indicator data which is great. I want to receive the indicator alert data via websocket client. (I don't want to use webhook) const client = new TradingView.Client(); //connection ok The client object has the onData function, but as output; In short: Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
I try in safari and chrome |
Beta Was this translation helpful? Give feedback.
-
Suggestion: |
Beta Was this translation helpful? Give feedback.
Hello,
So you are talking about Alerts.
It turns out that the alert system does not go through websockets. There are no plans to implement the alert system in the library.
I suggest you to use the
getDrawings
function. Then you check if the price (or indicator plot value) crosses a line.