Exploring bearish and bullish flag formation