This blog has some AFL code that lets you place your trades right from the chart by clicking. There is also a video explaining how it works. It's worth checking out. It works with IBcontroller and Interactive Brokers. Here's the link
http://blog.tipster.ca/p/tipster-trendlines-3.html
http://blog.tipster.ca/p/tipster-trendlines-3.html