@xwhysquared Your logic is correct. The issue can be the definition of 'crossing up/down' the BB. I recommend to define better that crossing bu using two condition blocks instead. One requiring the open price to bo on one side and the close price on the other side of the BB.
X