I'm not great at scripting. I do okay but this alludes me for some reason, and I can't find a study that achieves this.

I'm looking for a script that will calculate the difference between the high of a period and the low of period, so I could add it as a watchlist column, and see at a glance without having to examine each chart.

So essentially if ABC stock has had a high of 50, and a low of 40, then the value would be the difference of 10.

Anyone know of a study like this or would be able to assist me in scripting one?

Thanks