As discussed in the video, below are the steps to define fully customisable alert templates and alerts in pine script. This is a generic idea which can be implemented for any script.
Step 1. What all parameters(keys) need to be sent in alerts. Step 2. Create a default alert template Step 3. Create a user input where users can alter the default alert template Step 4. Define your alert condition. Step 5. Calculate the values for all the keys Step 6. In the template, replace all keys with values and send alert
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.