This new script is fool proof now thanks to midtownsk8rguy.
He told me in private chat how its possible for highest - lowest = 0 to occur.
This is bad because of the formula: (close - lowest)/(highest - lowest).
The denominator would equal 0...very bad indeed, so his new script he proposed to me fixes this problem.