The real challenge is not handling the core algorithm, it's handling all the things that can (and do) go wrong.
One of trickiest aspect of automated trading is to figure out when your quotes are wrong, late or have stopped. Shreddog gave a good example of this: when the relationship between...