Aug 7, 2012

Another Robot Bug

After realizing the automatic stop-loss and trailing stops weren't adjusting between trades, fixing the bug, and letting the automated robots run for a few more weeks, nothing really changed. They continued losing at approximately the same pace.

It wasn't until I noticed I had much better success with a series of robots when I adjusted the trailing stop manually, that I eventually realized there's another bug concerning the automatically adjusting trailing stop.

The bug is that the trailing stop - when set to automatic - adjusts to current price action on the screen. 

For example, if the stops are calculated from the range between some highs and lows, then when the order is placed, the stop loss is set correctly, but the trailing stop is recalculated at the next bar. If the range has increased then so has the trailing stop. 

This only affects robots using automatic settings for trailing stop, and only if they're not calculated using the ATR. 

Unfortunately this is a large percentage of my robots, so I'll have to fix the bug and let the tests continue.