Some of my robot code is quite comical. This robot from 8-5-2010 is an example. It's a moving average robot, using the 100 bar simple moving average to define an uptrend or downtrend and place trades accordingly, as long as a stochastic reading isn't over-brought (for BUY trades) or over-sold (for SELL trades).
Here are the results from a run on the EURUSD 15 minute chart, 1-1-2011 to 1-1-2012:
Well, it didn't lose any money, but it didn't make any either. In fact, it made no trades at all. Something is not quite right with the code.
I can't even be bothered checking it to see where the problem might be. From a brief look at the code, there are several other moving averages defined but they are not used for trade decisions. I'm guessing I had removed some conditions after seeing that it failed to trade, but even after doing so, it still failed to trade, and probably just archived this one pretty quickly.
Still, with 0% loss and 0% draw-down, this robot actually returns better results than most!