pls is this the formular?

 
I would like to calculate the bearish and the bullish candlesticks base on the close of the five candles. pls. is this the formular for it and not really sure. For bullish= Close[5]<Close[4] and for bearish=Close[5]>Close[4]. Please am i correct? and if not tell me. Thanks
 

Close[5]<Close[4] and Close[5]>Close[4].

means compare the fifth close and the forth close only . not means all five candles.