Price Distance Ratio
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Wheeelman, © Pandorra
//@version=5
indicator(title='Price Ratio', overlay=false)
bars_back = input(200, title='Bars Back')
dhigh = request.security(syminfo.tickerid, 'D', high)
dlow = request.security(syminfo.tickerid, 'D', low)
dclose = request.security(syminfo.tickerid, 'D', close)
Ratio = dclose/dclose[bars_back]
plot(Ratio, color=color.new(color.orange, 0), title='Price Ratio', linewidth=1)
plot(close)