yep, biz and jstap are hot on it.
Its all in the mindset of getting your brain to be able think through it block by block.
For this project, you first just need to identify each candle that is engulfed, I would suggest starting simply with a horizontal line at each, and then upgrade to a trend line extended a short time into the future (to keep the charts clean).
Irrelevant of your other rules for entries, you then will have to define the validation and invalidation rules that make sure that is a engulfed candle that you want to trade i.e.
A candle is engulfed, the one you want is marked. Price moves away from it for 1 month before going back to the area...is it still a valid area to use?