Mast Trend alert

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)

คำจำกัดสิทธิ์ความรับผิดชอบ