Pinescript tables are a nice addition to the language. This one shows a complete distance from daily low to daily high and/or from the daily open to the daily close.
► You can show the distance between low and high ► You can show the distance between open and close ► Have this data for 8 last days ► Flip a table if you need to
I used the original TradingView's code in their news blog.