Sundance is right!

Also... are you sure that you want to compare the mean price of the bar (price()) and the open price? What happens if you use priceClose() instead of price()?