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:
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.