OPEN-SOURCE SCRIPT

TSEP Dual SMA + Optional BB

37
//version=5
indicator("50-Day ADTV", overlay=false)

// Calculate 50-day Average Daily Trading Volume
adtv_50 = ta.sma(volume, 50)

// Plot the ADTV as a line
plot(adtv_50, color=color.blue, title="50-Day ADTV", linewidth=2)

// Add a label to display the current ADTV value
label.new(bar_index, adtv_50, text="ADTV: " + str.tostring(adtv_50, "#.##"), color=color.blue, textcolor=color.white, style=label.style_label_down)

免責聲明

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