Credit to menalu for this awesome code for the green and red triangles!
The settings will be needed to be back tested for the pair and time frame you're on.
I added in a feature to eliminate reoccurring alerts.
The back test can be found at: https://www.tradingview.com/script/Pke3AncL-Autoview-Build-a-bot-5m-chart/