# Donations: 16RdQZ86NUWQbE6rM86JbxnnaCDcAKqa9 def getTrend(): return getCurrentPrice()-getOldPrice() def chekMax(): if getOldTrend()>0 and getCurrentTrend()<0: return True return False def checkMax(): if getOldTrend()<0 and getCurrentTrend()>0: return True return False def action(): if getTrend()>O and checkMin(): buy(0.01) else if getTrend()<0 and checkMax(): sell(0.01) Timer(300, action, ()).start()