yesterday bar

 
haw I can use iopen and iclose  to determine yesterday bar is bullish or bearish ? 
 

if the close of bar[1] is bigger than the open of bar[1], it was bullish

Vice versa 

 
No need for iOpen or iClose if you want the chart symbol/period just use Open[]/Close[]
Reason: