Are there any good software packages out there for backtesting both technicals and fundamentals? For instance, I'd like to be able to ask questions like: what statistically has happened when a stock with < 10 P/E and 0 debt breaks its 200 days moving average. Stuff like that. Also, anyone know of a database containing comprehensive historical corporate bond data? Thanks in advance.