TSEP Dual SMA + Optional BB//@version=5
indicator("TSEP Volume + Price Overlay", overlay=true)
// === Data Calculations ===
currentVol = volume
avgVol50 = ta.sma(volume, 50)
currentPrice = close
timestampStr = str.tostring(year) + "-" + str.tostring(month, "00") + "-" + str.tostring(dayofmonth, "00")
// === Format Helpers ===
formatVal(val) =>
val >= 1e9 ? str.tostring(val / 1e9, "#.##") + "B" :
val >= 1e6 ? str.tostring(val / 1e6, "#.##") + "M" :
val >= 1e3 ? str.tostring(val / 1e3, "#.##") + "K" :
str.tostring(val, "#.##")
// === Label Text ===
labelText = "✅ Current Price: $" + str.tostring(currentPrice, "#.##") + " " +
"✅ 50-day ADTV: " + formatVal(avgVol50) + " " +
"✅ Current Volume: " + formatVal(currentVol) + " " +
"✅ Timestamp: " + timestampStr
// === Display Label ===
var label dataLabel = label.new(x=bar_index, y=high, text=labelText,
xloc=xloc.bar_index, yloc=yloc.price, style=label.style_label_left,
textcolor=color.white, size=size.normal, color=color.new(color.blue, 80))
// === Update Each Bar ===
label.set_xy(dataLabel, bar_index, high)
label.set_text(dataLabel, labelText)
TSEP
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 + " Price: $" + str.tostring(currentPrice, "#.##") +
" Volume: " + str.tostring(currentVol, "#.##") +
" 50-day ADTV: " + str.tostring(adtv50, "#.##") +
" " + 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))
TSEP Dual SMA + Optional BB//@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)
TSEP Dual SMA + Optional BB//@version=5
indicator("TSEP Chart Data Overlay", overlay=true)
currentVol = volume
avgVol50 = ta.sma(volume, 50)
currentPrice = close
timestampStr = str.tostring(year) + "-" + str.tostring(month, "00") + "-" + str.tostring(dayofmonth, "00")
// === Format Helpers ===
formatVal(val) =>
val >= 1e9 ? str.tostring(val / 1e9, "#.##") + "B" :
val >= 1e6 ? str.tostring(val / 1e6, "#.##") + "M" :
val >= 1e3 ? str.tostring(val / 1e3, "#.##") + "K" :
str.tostring(val, "#.##")
// === Label Text ===
labelText = "✅ Current Price: $" + str.tostring(currentPrice, "#.##") + " " +
"✅ 50-day ADTV: " + formatVal(avgVol50) + " " +
"✅ Current Volume: " + formatVal(currentVol) + " " +
"✅ Timestamp: " + timestampStr
// === Display Label ===
var label dataLabel = label.new(x=bar_index, y=high, text=labelText,
xloc=xloc.bar_index, yloc=yloc.price, style=label.style_label_left,
textcolor=color.white, size=size.normal, color=color.new(color.blue, 80))
label.set_xy(dataLabel, bar_index, high)
label.set_text(dataLabel, labelText)
TSEP Dual SMA + Optional BB✅ Current Price: $163.44
✅ 50-day ADTV: 21.7M
✅ Current Volume: 19.5M
✅ Timestamp: 2025-07-10