Fastest Movers (Velocity)

TradingView Lab Tool

What is the Velocity Monitor?

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.

  • Immediate Feedback: Unlike daily change, this shows you what is moving in the current 1-minute or 5-minute window.
  • Velocity Color-Coding: Turns bright cyan when a stock moves faster than 1% in just a few bars.
  • Scalper Focused: Perfect for identifying "impulse" moves before they overextend.

🚀 Setup Instructions

1
Copy: Click the "Copy Script" button in the black box below.
2
Open: Click the "Pine Editor" tab at the bottom of your TradingView chart.
3
Save: Paste the code and click "Add to Chart."
Pro Tip: Use this on a 1-minute or 2-minute timeframe. If a stock turns cyan on your table, it is likely "hitting the tape" and attracting short-term attention.
//@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)
Common Issues:
• Volatility: On very low timeframes (like 15-second charts), velocity can spike and fade instantly. A 1-minute chart is usually best for "clean" momentum signals.
• Symbol Limit: If the table shows "N/A," you may have exceeded the 40-symbol security request limit allowed by TradingView per script.
⚠️ Disclaimer: Fast moves can reverse just as quickly. Velocity is an indicator of current momentum, not a prediction of future price. Trading involves risk of loss.