Convert daily plotshapes into hourly plotshapes

I can display these arrows using PlotShapes without any problems when the time-frame is daily using the code below;

PlotShapes( IIf( get_arrow_up(), shapeSmallUpTriangle, shapeNone ), colorWhite);									
PlotShapes( IIf( get_arrow_down(), shapeSmallDownTriangle, shapeNone ), colorLime);

I want to plot these arrows when the time-frame is hourly. Here is the code I wrote;

TimeFrameSet( inHourly );
arrow_up_hourly = get_arrow_up();
arrow_down_hourly = get_arrow_down();
TimeFrameRestore(); 

PlotShapes( IIf( TimeFrameExpand( arrow_up_hourly, inHourly), shapeSmallUpTriangle, shapeNone ), colorWhite);									
PlotShapes( IIf( TimeFrameExpand( arrow_down_hourly, inHourly), shapeSmallDownTriangle, shapeNone ), colorLime);

Unfortunately, I am not able to see the arrows when the time-frame is hourly. What is wrong with the code?

I just discovered there is nothing wrong with my code. I made a careless mistake somewhere. Sorry for false alarm.