Move in X days
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © TheDiscordia

//@version=5
indicator("Move in X days")
pmove = input.int(20, title="Percentage Move", minval=1, maxval=300, step=1)
xdays = input.int(5, title="Days", minval=1, maxval=100, step=1)
days = xdays - 1

v = close - open[days]
t = (v / open[days]) * 100
r = t >= pmove ? t : 0
plot(r, style=plot.style_areabr)