I need an automated stock trader. What I mean is that I want to give a set of criteria that when met will place an order to purchase shares at a limited price with my broker (interactive brokers). Here is a basic example of what I need:
VLO (Valero Energy US) is currently trading at $60.22 per share (offer price) bid price = $60.20, ask price = $60.22.
The stock opened at $60.25 and went as low as $59.86 before arriving at it current price (shown above) of $60.22.
I want a trade to be executed when the bid price goes above opening price of $60.25 by **one cent** or $60.26.
The offer price that the shares are purchased for may be any price within 5 cents of the bid (maximum executable offer price of $60.31 in this case). Preferrably closer to $60.26 than $60.31.
The trade must be executed the moment the **bid price** exceeds the opening price.
A sale of all shares purchased will be made when the price reaches $62.25 or exactly $2.00 above the opening price.
The sale will be executed through a limit order that is executed within seconds of the stock purchase.
A stop loss price will be set at $60.00 or 25 cents below the opening price.
The stop limit order must be entered within seconds of the stock purchase.
The stock will execute one of these orders to sell and upon completion of the entire trade all open orders must be erased.
-Lance Austin
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
Windows. Java, Interactive Brokers TWS.