I'm looking for a good backtesting software, by good I mean one with lots of flexibility which lets you program the signals yourself. I'm currently evaluating AmiBroker but wonder if anyone has experience with other systems? I don't care for features like charting capabilities or automated trading or whatever, I'm only interested in the backtesting part of the system. I would need to be able to program my own signals both for long and short positions and also to be able to define signals for stop loss. By defining stop loss signals I mean I want to tell the system to exit my position based on a certain rule (say moving average crossover) instead of only saying "trailing stop 5 points" or "maximum loss stop loss 3%". So this means I need to define three (3) signals: a BUY signal, a SELL signal and a STOP LOSS signal (and of course three similar, but not necessarily the opposite, signals for going short). Any suggestions for backtesting software? Thanks!