Assuming a decentralized exchange like this, wouldn't this basic logic guarantee profits every single day?
What goes wrong is that you make a profit on every trade, but you are holding lots of bitcoin when it goes down and lots of whatevercoin when it goes down. Adverse selection causes you to take huge losses when you aren't trading! When bitcoin is going down, everybody wants you to take theirs. When bitcoin is going up, everybody wants yours.