Topic: Newbie trying to build Bollinger Band Stategy

I am trying to implement the following strategy:

1.) If the previous two closes were below the Lower BB and the current close is above the Lower BB, buy at market

2.) If there are no buys from number one above buy 5 pips above the 8-day high.

I am not sure what I am doing wrong, but I just can not put this together.

Could someone help me?

Thank you.

Frank