def Buyingtrack(): ticker = exchange.GetTicker() lastprice = ticker.Last while True: Sleep(500) ticker = exchange.GetTicker() if lastprice >= ticker.Last: lastprice = ticker.Last elif lastprice * (1+(bounce/100)) == ticker.Last: break return True