OPEN-SOURCE SCRIPT

All-Time High Marker

129
//version=5
indicator("All-Time High Marker", overlay=true)

// 計算歷史最高價
allTimeHigh = ta.highest(high, bar_index + 1)

// 如果現價等於歷史最高,就畫個符號
isATH = close >= allTimeHigh

plotshape(isATH, title="All-Time High", style=shape.labelup,
color=color.green, text="ATH", location=location.abovebar)

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。