works now with a pretty high degree of accuracy for prices that are above and to the right