OPEN-SOURCE SCRIPT

All-Time High Marker

83
//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에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.