you may wish to check out tradelink, it's
open source (free)
works with 17 different brokers and data feeds
super fast historical simulations
record data from live feeds or import from variety of sources
google tradelink project or tradelink.org for more info