The Velocity Monitor is designed for momentum scalpers who need to find where the action is happening right now. It measures the price change percentage over a rolling window of the last 5 candles. This highlights stocks that are currently undergoing a rapid expansion in price.
//@version=5
indicator("DTL Lab - Velocity Monitor", overlay=true)
// --- POSITION SETTINGS ---
table_pos = input.string("top_left", "Table Position", options=["top_right", "bottom_right", "top_left", "bottom_left"])
pos_val = table_pos == "top_right" ? position.top_right :
table_pos == "bottom_right" ? position.bottom_right :
table_pos == "top_left" ? position.top_left : position.bottom_left
// --- Ticker Inputs ---
t1 = input.symbol("AAPL", "Ticker 1"), t2 = input.symbol("TSLA", "Ticker 2")
t3 = input.symbol("NVDA", "Ticker 3"), t4 = input.symbol("AMD", "Ticker 4")
t5 = input.symbol("META", "Ticker 5"), t6 = input.symbol("MSFT", "Ticker 6")
velocity_threshold = input.float(1.0, "Velocity Threshold (%)", step=0.1)
// --- Velocity Logic Function ---
checkVelocity(sym) =>
c = request.security(sym, timeframe.period, close)
// Calculate % change over the last 5 bars
vel = ta.roc(c, 5)
is_fast = math.abs(vel) > velocity_threshold
[vel, is_fast]
// --- Execution ---
[v1, f1] = checkVelocity(t1), [v2, f2] = checkVelocity(t2)
[v3, f3] = checkVelocity(t3), [v4, f4] = checkVelocity(t4)
[v5, f5] = checkVelocity(t5), [v6, f6] = checkVelocity(t6)
// --- UI Table ---
var tbl = table.new(pos_val, 2, 7, frame_color=color.gray, frame_width=1)
if barstate.islast
table.cell(tbl, 0, 0, "Symbol", bgcolor=color.new(#00d2ff, 80), text_color=color.black)
table.cell(tbl, 1, 0, "Velocity", bgcolor=color.new(#00d2ff, 80), text_color=color.black)
table.cell(tbl, 0, 1, t1, text_color=color.white)
table.cell(tbl, 1, 1, str.tostring(v1, "#.##") + "%", bgcolor = f1 ? color.new(#00d2ff, 40) : color.new(color.gray, 20), text_color=color.white)
table.cell(tbl, 0, 2, t2, text_color=color.white)
table.cell(tbl, 1, 2, str.tostring(v2, "#.##") + "%", bgcolor = f2 ? color.new(#00d2ff, 40) : color.new(color.gray, 20), text_color=color.white)
table.cell(tbl, 0, 3, t3, text_color=color.white)
table.cell(tbl, 1, 3, str.tostring(v3, "#.##") + "%", bgcolor = f3 ? color.new(#00d2ff, 40) : color.new(color.gray, 20), text_color=color.white)
table.cell(tbl, 0, 4, t4, text_color=color.white)
table.cell(tbl, 1, 4, str.tostring(v4, "#.##") + "%", bgcolor = f4 ? color.new(#00d2ff, 40) : color.new(color.gray, 20), text_color=color.white)
table.cell(tbl, 0, 5, t5, text_color=color.white)
table.cell(tbl, 1, 5, str.tostring(v5, "#.##") + "%", bgcolor = f5 ? color.new(#00d2ff, 40) : color.new(color.gray, 20), text_color=color.white)
table.cell(tbl, 0, 6, t6, text_color=color.white)
table.cell(tbl, 1, 6, str.tostring(v6, "#.##") + "%", bgcolor = f6 ? color.new(#00d2ff, 40) : color.new(color.gray, 20), text_color=color.white)
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behaviour or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
DayTradeLab DOES NOT provide investment advice. The information contained within this websites, is provided for informational and educational purposes only. The information should not be construed as investment or trading advice, and is not meant to be a solicitation or recommendation to buy, sell, or hold any positions in any indices or financial markets mentioned.