Saturday, November 15, 2008

How to make a Free Automated Trading System Video Tutorial


Thanks to Boogster and some other great software, I've created my own Automated Trading System (ATS). Boogster made a very detailed post on how to make an ATS and I decided to make a tutorial video following his guide. If you have a broker that accepts API connections like Interactive Brokers, then you can make this Automated Trading System for Free. Here are the downloads you'll need-


  • Medved Quotetracker
  • - Free Charting Software


  • Bracket Trader
  • - Free Trade Management Software


  • Mailenable
  • - Free Mail Server


  • ActiveState Perl
  • - Free Scripting Software


  • HPT's updated Boogsters ATS Perl Script
  • - An email client that checks your email and enters a trade into Bracket Trader when a new alert is found in QuoteTracker


  • Interactive Broker’s TWS Demo
  • - A Free Demo account with Interactive Brokers

    In the following Video Tutorial I will be going over everything you need to know from the first step of downloading the software all the way to having the ATS make its first live trade.

    HPT's ATS Tutorial Part 1 - Downloading Software Setup


    Part 2 - Installing and Configuring software


    Part 3 - Setting up Quotetracker & ATS Email Tempelate


    Part 4 - Bracket Trader Setup & Live Trade


    Part 5 - ATS Exit Signals & IB Demo Account


    Example of ATS Exit signal working


    I would like to give a special thanks to Boogster for his work on the ATS perl script, Jerry for his awesome charting software QuoteTracker, and larry for his excellent Trade Management software Bracket Trader.

    19 comments:

    Dan on 8:59 AM said...

    Do you have Backtestreports of your systems?

    HPT on 9:06 AM said...

    Dan,
    That is the next step and I will make a post on it in the future.
    HPT

    Anonymous said...

    thankz man..can't wait to go thru...

    Anonymous said...

    appreciate it HPT. This is well planned out and excellent videos.

    Anonymous said...

    Hi, can you please share useful indicators paintball files to help follow your wonderful tut and test it. Thank you in advance.

    Anonymous said...

    I did everything said in the tutorials concerning exit signals, but every time the position reverses, it only says Entry Signal, not processed!!

    Anonymous said...

    Finally followed all the steps you detailed in setting up the ATS. Really amazing, thank you!

    I follow the live ATS window on Justin.tv and note that your ES signals are not the same as those loaded from your Quotetracker backup of Dec 3. Have you change the expressions in the paintbars?

    Paintbars are new to me and I'm having trouble deciphering how you arrived at your own setup which is remarkable. Thanks again for your generous distribution of tools.

    Great site and good work.

    Donald on 5:25 PM said...

    Why not just use strategydesk from tdameritrade and use Autoit Script which is a freeware to automatically start it everyday. Much more simple and less hassle.

    HPT on 8:03 PM said...

    Donald,
    Most of my intraday ATS trades don't last long and I may make many trades in a day, so commissions are very important to me. IMO, TDam is too expensive in commissions as compared to other brokers like IB. TDam has an auto trading feature that I've used for swing trades and it works fine.

    Alex on 7:10 PM said...

    HPT,

    Thanks for posting this tutorial. Unfortunately, I got stuck in Part 3 when setting up QuoteTracker. I assume that in QuoteTracker's top bar where it says: Site I should select "Interactive Brokers (Customers Only)". Once I chose that I got a pop-up saying that:

    "Beginning September 21, 2009, using QuoteTracker with US Brokers for datafeeds and Integrated trading will require that QuoteTracker is registered. Get FREE fully registered access to QuoteTracker by opening a TD AMERITRADE Account. Otherwise, you would need to get a paid registration to continue using QuoteTracker with your broker."

    Did I do something wrong? Or is this setup not free anymore?

    Thanks again!

    HPT on 10:41 PM said...

    I think that is only true if your submitting trades through QT's trading interface. You should still be able to use your broker's data feed (IB) to feed the charts, and then with your ATS you will generate signals that will be sent to bracket trader and then to IB. If you can't get IB's data feed working for free through QT, then I guess you will have to register. I've been registered for 5 years with them and the charting is great.

    guru ji on 12:07 PM said...

    I found this blog post when searching for a way to automate InteractiveBrokers. It got me really excited. That was until I found out that QuoteTracker is not free anymore.

    Is there an alternative?

    Anonymous said...

    There is a simpler way. Get NinjaTrader + BracketTrader ... you are done...

    Gianluca on 5:02 AM said...

    Hi, I'm having trouble with brackettrader transmitting an order to IB TWS and I think it may be an issue with the syntax (I am trying to modify) in ATS.pl.
    The contract I am testing this out on is EUR.USD.
    The ATS.pl is receiving and transmitting orders through QT, but I think the issue is specifically name of the “signals” txt file.
    In bracket trader, I specified the name of the signals file to be C:\jts\BracketTrader\Signals\EUR.USD.txt, but in the actual folder, brackettrader only created a file named “EUR.txt”.
    The syntax I introduced into ats.pl was:
    } elsif ($order[1]=~/^.*IDEALPRO:#EUR.USD.*$/) {
    $symbol= "EUR";
    $shares = $DefaultCurrencySize;
    Which is similar to what I read in the responses on boogsters site.
    Can someone please suggest how I can fix this?

    Gianluca on 5:04 AM said...

    Hi, I'm having trouble with brackettrader transmitting an order to IB TWS and I think it may be an issue with the syntax (I am trying to modify) in ATS.pl.
    The contract I am testing this out on is EUR.USD.
    The ATS.pl is receiving and transmitting orders through QT, but I think the issue is specifically name of the “signals” txt file.
    In bracket trader, I specified the name of the signals file to be C:\jts\BracketTrader\Signals\EUR.USD.txt, but in the actual folder, brackettrader only created a file named “EUR.txt”.
    The syntax I introduced into ats.pl was:

    } elsif ($order[1]=~/^.*IDEALPRO:#EUR.USD.*$/) {
    $symbol= "EUR";
    $shares = $DefaultCurrencySize;

    (Which is similar to what I read in the responses on boogsters site, but modifies accoding to QThelp guides on symbols for IB.)

    Can someone please suggest how I can fix this?

    HPT on 8:45 AM said...

    maybe change $symbol="EUR.USD"

    If that doesn't work delete your EUR.USD.txt file

    The open file setup is -
    open(OUTPUT, ">$BracketTraderDirectory\\signals\\$symbol.txt")

    I think EUR.USD will not read right because of the extra "."

    Change the symbol to - $symbol="EUR.USD"

    Good luck.

    tradersu on 7:48 PM said...

    BracketTrader has a TCP trigger listener now. No need to go so many hoops now. Good article though.

    Thomas Hoyle on 5:33 AM said...

    I have a couple questions about this automated system.
    1. Is Quote Tracker still free for Interactive Brokers Clients

    2. I run TOS platform for my signals with TICK charts as I find them most reliable but my broker is TWS IB which doesnt offer tick charts.

    Is there anyway to use these steps to create a automated system using tick charts through these API functions?

    My trading system is a combination with tick charts and a couple different equation, will I be able to make this work? is it possible to use TOS as my signal and then run to IB?

    Thanks for your time, it is still a great post.

    HPT on 7:45 AM said...

    Last time I checked, QT doesn't work at all. I don't think the developers have been updating QT to keep up with IB's API changes.

    I would look into Multicharts, Ninjatrader, or use excel linked to IB for your ATS.

    Subscribe via email

    Enter your email address:

    Delivered by FeedBurner

     

    High Probability Trade. Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com