What happened was the lines were already crossed to buy. When you started the ability to trade the buy threshold was passed and it bought. Well it went down and it passed your sell threshold then sold. Basically, you need to "turn on" your bot when your settings will not automatically make a trade.