Is it possible to manually add sound to any indicator?

4 Views
Marianne Richardson
Answered 7 months, 1 week ago
<p id="isPasted">In the "Add Alert" section of your chart the user is allowed to click more actions and Play a sound of their choice such as thin, three notes reverb, alarm clock, etc.</p><p>What would be nice is to allow the user to select their own custom created sounds. For example, what if I created an audio sound file that says "Tesla Less Than 800" or any custom audio that I want to create. With the ability to create custom sounds I can track multiple stocks and then when I get an audio alert of this custom nature I know exactly …</p>
3 Views
Diane Dunn
Answered 2 days, 4 hours ago
<p id="isPasted">In TradingView (Pine Script)</p><p>You can’t play sound directly from code, but you can create a condition that triggers an alert, and TradingView alerts can play sounds.</p><p><strong>How to add a sound alert</strong></p><ul><li>Open the indicator’s Pine Script (if open-source).</li><li>Add a condition, for example: pine</li></ul><p>alertcondition(cross(close, sma(close,14)), "Cross Signal", "Price crossed moving average")</p><ul><li id="isPasted">Add the alert using the “Alerts” panel and choose the sound.</li></ul><p><br></p><p>If the script is NOT open-source:</p><p>You can still set alerts using TradingView’s built-in alert system if the indicator provides alert triggers.</p>