Delayed-Velocity
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © tech24trader-ben-au

//@version=4
study("Delayed-Velocity")

vel = mom(hl2, 24)
avg_vel = sma(vel, 12)

plot(vel, title="velocity", color = #ff8800)
plot(avg_vel, title="ma", color = #0000ff)
plot(0, title="ground", color = #ff0000)