class CandlestickHammerPredicate extends AbstractAdviserPredicate {

  @Override
  public boolean apply(PriceTick priceTick) {
    if (priceTick.getTimestamp() > barEndTimestamp) {
      if (isFirstBar) {
        if (barEndTimestamp > 0) {
          isFirstBar = false;
        }
      } else if(isHammerPattern(openPrice, closePrice, highPrice, lowPrice)) {
        return true;
      }
      prepareNewBar(priceTick);
    }
    updateBarValues(priceTick);
    return false;
  }

  public  CandlestickHammerPredicate(PredicateExecutionContext predicateExecutionContext);

}