OPEN-SOURCE SCRIPT

Custom Alert Message With alertcondition Example [BigBitsIO]

By BigBitsIO
Updated
This was a follower suggested script. This script shows an example of how to create a custom alert message using the alertcondition() function in pine.

Features:
- Well documented code with links to documentation for specific functions.
- Two alertconditions in a different order than the plots they reference to show the importance of plot IDs.

In order to actually get an alert with this script, you must create an alert through TradingView and reference this indicator and then reference the specific alert condition you want that alert to use.

For more information, contact me on social media or check YouTube for the associated video.

*** DISCLAIMER: For educational and entertainment purposes only. Nothing in this content should be interpreted as financial advice or a recommendation to buy or sell any sort of security or investment including all types of crypto. DYOR, TYOB. ***
Release Notes
I added some comments.
Release Notes
Update to include examples of referencing plot values by their name instead of their ID. With this method, you shouldn't have to worry about what order you plot data to reference later. Details in the script comments.
alertalertconditioncustomcustomalertcustommessageExponential Moving Average (EMA)examplemessageOscillatorsRelative Strength Index (RSI)
BigBitsIO
Like and follow!

💻 Website: bigbits.io
📺 YouTube: youtube.com/bigbits
🎮 Discord: discord.gg/rapMn4z
🐦 Twitter: twitter.com/BigBitsIO
💸 Save $30 on TradingView Paid Plan: bit.ly/2CaRfjs

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer