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)
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在
使用條款閱讀更多資訊。