You need to move your 'once per bar' block from its current position to immediately above the 'sell now' block. In its current position the bot is not giving candle ID 0 enough time to define itself as bullish/bearish.