There are standard TOS candlestick studies called ThreeInsideUp and ThreeInsideDown, perhaps you might want to explore those. I don't use those though but you can easily convert those to scans as needed
Additionally there are also standard TOS candlestick patterns called Three OutSideUp and ThreeOutsideDown