First Derivative
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © jas9360

//@version=5
indicator("First Derivative", shorttitle="ROC", format=format.price, precision=2, timeframe="", timeframe_gaps=true)
roc = 100* ((close - hl2)/hl2)
plot(roc, color=#2962FF, title="ROC", linewidth=2, style=plot.style_circles)
hline(0, color=#787B86, title="Zero Line")
