@RPrado
It was not a criticism, too often I have seen cases where very loose and imprecise requirements make it difficult to code
That's why you need to be real precise and spell things out explicitly.
Here's what I understood from your rather expanded message.
Day 1 - note the body height and volume
Day 2 - doji - opens at or higher than Day 1's close
Day 3 - volume greater than Day 1's candle
Your explanation while better than the first time round you attempted to do so is still loose
Day 2 doji to me means open and close is the same price. Doji-like to me is not precise enough.
Day 3 candle - there is no mention whether the candle opens/closes up or down relative to candle 2
Hence you need to spell things out explicitly as coding is a very precise activity