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 a publication is governed by House Rules. You can favorite it to use it on a chart.
// === /PLOTTING ===
// Send alert to TV alarm sub-system
If you search for some aleatory script with alerts, you will see that the alerts dont exist. it just because they only set one alert for each condition. Maybe in your monitor not, but trading view have this issue. I not write very well in english, so, if you didn't understand something, just say. Thanks man!
if you are only seeing an alert buy and a sell at the time of creating the alert then it means that the resolution of the trading view on your monitor presents this problem, and the way I wrote the script you did not realize the error. However, if I had just placed a buy or sell sign, you would not be able to create the alerts, because you would not see them.