Modified algorithm to count changes after candlestick pattern event happens