if (!price.isNull() && !price.isZero()) {
final PriceValue high = bar.get(HIGH);
if (high.isNull())
bar.set(HIGH, price);
else if (high.compareTo(price) < 0)
bar.set(HIGH, price);
final PriceValue low = bar.get(LOW);
if (low.isNull())
bar.set(LOW, price);