Euro / U.S. Dollar

Mast Trend alert

90
Buy1=dir == -1 and dir[1] == 1
Sell1=dir == 1 and dir[1] == -1





alertcondition(Buy1 or Sell1, "Buy/Sell", "Buy/Sell")
alertcondition(Buy1, "Buy", "Buy")
alertcondition(Sell1, "Sell", "Sell")


plotshape(Sell1, text = "Sell", textcolor=color.black, style = shape.labeldown, location = location.abovebar, color=color.red)
plotshape(Buy1, text = "Buy", textcolor=color.black, style = shape.labelup, location = location.belowbar, color=color.green)

Disclaimer

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.