Author |
Topic: Create New Algorithm (4 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
NVerner2 Posts: 12 Joined: Apr 17, 2012 |
Hello,
I would like to implement a new algorithm that I developed to do day-trading using the OEC API. I downloaded the OEC API Advanced Example and examined the files. I also looked through the online API documentation. I found that the API already has an Algo class that can be used to implement new algorithms. Additionally, the OSM Orders Control has a list of four algorithms (Iceberg, ImprovedTimeSlice, MarketTimeSlice, and TimeSlice) that can be used to trade. These algorithms seem to be loaded through the OEC.API.OECClient.Global.LoadOsmAlgoList() method, which accesses the list from the OEC server. I would like to know how to create and add my own algorithm to this list of algorithms in the Advanced Example GUI. Any assistance would be very appreciated. Thanks. Nathan verner & Fred isabelle |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
Hello. OSM algorithms are running on server-side. Unfortunately, there is no way to add a custom order strategy for server-side execution via OEC API.
Victor Vins Lead Software Developer |
||||
NVerner2 Posts: 12 Joined: Apr 17, 2012 |
Victor,
Thanks for responding. So essentially, I have to write my own code to implement my trading strategy using the API and won't be able to use the Algo class? Are there any plans to change this in the future? It would be quite convenient to be able to just write my own OSM algorithm and plug it into the Advanced API Example. Thanks. Nathan verner & Fred isabelle |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
Correct, you will need to run your algorithm on client side.
Victor Vins Lead Software Developer |
||||