Find Jobs
Hire Freelancers

Amibroker Automated Trading (Pairs)

$30-250 SGD

Closed
Posted about 10 years ago

$30-250 SGD

Paid on delivery
Objective: I need to automate a trading strategy that will enter on Stock A and short on Stock B simultaneously near market close (~3:50 pm EST). The candidates A and B are chosen among a predefined list of stocks according to an indicator that I will provide. The indicators will be used to determine A and B near the market close around (4:45pm EST). The strategy exit at the next day close via MOC (Market on Close). The complication is in the entry, and less so on the exit since MOC is pretty simple. This is not the conventional pair trading as there is no monitoring of spread. Entry Details: - An indicator function that I have written will rank all the stocks (about 30-100) and decide which one to long and short, say A and B. The refresh timer for Amibroker automatic analysis should be 5-10s, but let me know if you could achieve better by lower/increase it. - Once A and B are determined, check for the less liquid stock (the one with wider bid/ask or lower Volume), say A - Submit a REL (relative) order for A - If A is filled fully, perform a MKT (market) order for B immediately (If A is only filled for X% only, perform a MKT (market) order for B with similar percentage X%) - During the waiting for REL order, my indicator might signify that the current pair A/B is no longer worth trading. New candidate pair could be C and D. In this case, cancel the A, B trades and repeat the above steps for C, D. - By the end of the trading session at 4:00PM EST, it is paramount that the I hold positions of equal dollar amount of stocks A and stocks B. Situation like $1000 long in A but $10 short in B is very detrimental to my performance, Either 1000/1000, 10/10 or 0/0 on A/B is good, 1000/10 is deadly. - If 4:00PM EST is reached, print the results and go sleep. Exit Details: - Suppose we have enter long/short for A/B by 4:00PM EST - By ~7:00AM EST, submit a MOC order for both A/B to close the positions. Timing is not so crucial since next close is 4PM next day. The Program needs to have following safety check - A routine must be in place to prevent the program to keep buying/selling stocks non-stop !! - A routine to monitor the exposure/holding of all stocks in list, once the exposure reach certain threshold, prevent opening of any new position. This is a general red alert check, such situation should not happen if other parts of the codes are written/functioning correctly, but who knows? - A routine to check that the entry price is not too far from recent price level. If the current price is somehow in an extreme level, do not trade! - The program must be able handle the following situation if the InteractiveBrokers API throws error such as -- Order rejected for whatever reason -- Disconnected to broker -- Disconnected to datasource -- Other errors thrown by the IB API - All operations must be recorded/printed into DebugView or a log file so that we know what the Program had done, not done. *I could provide more information if you have any questions.
Project ID: 5840752

About the project

5 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
5 freelancers are bidding on average $290 SGD for this job
User Avatar
I have more than 2 years of experience in WPF (C# or VB.net). I have more than 7 years of experience in Asp.net, C#, VB.net, Sql Server, Javascript, Jquery, Web service, Windows Service, Ajax, HTML5 and CSS I am very interested in this work. When shall we discuss.
$250 SGD in 3 days
5.0 (22 reviews)
4.9
4.9
User Avatar
Hello, I have analyzed the project in detail. The method of placing orders from explore window is not practical imho, because to get the top ranking scrip A for buy and B for sell from a list of exploration results is not possible in the normal mode of exploration. I suggest adding the universe of symbols to a watch-list and then iterate through this watch list to find the symbols A and B and then making trades. This can be done exactly as required. A single indicator applied to a chart can do this. Start this process from the indicator automatically, say 5 minutes before MOC and make trades. Or the process can be started one minute before MOC. Another situation I would like to point out is first order for A is sent and this order is partially filled and then the rankings changes. What to do here, wash out from the partially filled trade and trade new pairs ? I have demo version of IB only, The system can be developed and tested with demo version of IB. Looking forward to work with you on this project. Thanking you Joy Sebastian
$250 SGD in 5 days
4.9 (22 reviews)
4.7
4.7
User Avatar
A proposal has not yet been provided
$400 SGD in 10 days
4.1 (29 reviews)
4.5
4.5

About the client

Flag of SINGAPORE
Singapore, Singapore
5.0
1
Payment method verified
Member since Apr 22, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.