Show color of last 3 bars - multi currency?

 

I'm very new to programming indicators and was wondering is it possible to show the last three bars direction (as displayed on the chart) on close. Or failing that, the last bars current direction (above or below open) and the two bars close before that?

e.g. USDCHF last three bars closed bearish so three red boxes on the indicator

Can this be done showing multiple currencies (say 6) on the same indicator over the charts TF?

A little help would be appreciated, maybe with a block or two of code to get me started would be great.

Even if you can give me the code for a single pair to show a single bar I can probably work it out.

Thanks