caplan8293:
You know, I was doing exactly that a while ago; the IB TWS Java API was what I started with right when I set a goal for myself to implement full autotrading. Back then, I was entering orders entirely by hand, with a HP 12c calculator beside my laptop. After a few botched orders (I acccidentally put some in as limits instead of stops and put some 1% stop-losses instead of the usual 8%!), I decided I'd program it to happen automatically. At the time, I was looking at the superb ButtonTrader and NinjaTrader apps. Eventually, though, my system at the time began to fail due to changing market conditions, and I realized that I needed to find a way to develop and backtest systems rapidly and try on new systems trading forward. I researched and tried a lot of demos at the time, including Amibroker, Wealth-Lab, an old copy of Tradestation, et al. I ended up picking up Wealth-Lab because of the rave reviews it was getting and spent a lot of time developing and testing systems with it. But, I made the unfortunate discovery of finding that the code I wrote for backtesting would have to be modified for trading forward. So what I'm looking for now is a way to write code once and use the same code for backtesting and realtime autotrading.
Basically, I don't want to maintain two codesets. First of all, I can't stand the inefficiency and extra administrative overhead it adds, and second, slight differences in code can result in massive differences in the statistics calculated during backtesting. I'd be crazy to trade forward using code even the teeniest bit different than the code I used during backtesting and optimization--even crazier than the people say I'd be by leaving my trading entirely to the computer!