OPEN-SOURCE SCRIPT
TSEP Dual SMA + Optional BB

//version=6
indicator(title="TSEP Chart Info Overlay", shorttitle="TSEP Overlay", overlay=true)
// === INPUTS ===
tickerID = input.string(title="Ticker Symbol", defval="TYPE", tooltip="Manually enter the ticker symbol for this chart.")
showOverlay = input.bool(true, title="Show TSEP Overlay")
// === PRICE ===
currentPrice = close
// === VOLUME ===
currentVol = volume
adtv50 = ta.sma(volume, 50)
// === TIMESTAMP ===
timestampText = "🕓 01:40 AM CDT 07/10/2025" // Replace automatically on future updates if needed
// === DISPLAY STRING ===
labelText = "Ticker: " + tickerID + "\nPrice: $" + str.tostring(currentPrice, "#.##") +
"\nVolume: " + str.tostring(currentVol, "#.##") +
"\n50-day ADTV: " + str.tostring(adtv50, "#.##") +
"\n" + timestampText
// === RENDER ===
if showOverlay
label.new(x=bar_index, y=high, text=labelText, style=label.style_label_left,
textcolor=color.white, size=size.normal, color=color.new(color.black, 85))
indicator(title="TSEP Chart Info Overlay", shorttitle="TSEP Overlay", overlay=true)
// === INPUTS ===
tickerID = input.string(title="Ticker Symbol", defval="TYPE", tooltip="Manually enter the ticker symbol for this chart.")
showOverlay = input.bool(true, title="Show TSEP Overlay")
// === PRICE ===
currentPrice = close
// === VOLUME ===
currentVol = volume
adtv50 = ta.sma(volume, 50)
// === TIMESTAMP ===
timestampText = "🕓 01:40 AM CDT 07/10/2025" // Replace automatically on future updates if needed
// === DISPLAY STRING ===
labelText = "Ticker: " + tickerID + "\nPrice: $" + str.tostring(currentPrice, "#.##") +
"\nVolume: " + str.tostring(currentVol, "#.##") +
"\n50-day ADTV: " + str.tostring(adtv50, "#.##") +
"\n" + timestampText
// === RENDER ===
if showOverlay
label.new(x=bar_index, y=high, text=labelText, style=label.style_label_left,
textcolor=color.white, size=size.normal, color=color.new(color.black, 85))
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。