OPEN-SOURCE SCRIPT

All-Time High Marker

119
//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提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。