API Support Forum
OEC API > API Support > Create New Algorithm
Author Topic: Create New Algorithm
(4 messages, Page 1 of 1)
Moderators: VPfau
NVerner2
Posts: 12
Joined: Apr 17, 2012


Posted: Apr 23, 2012 @ 02:59 PM             Msg. 1 of 4
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


Posted: Apr 25, 2012 @ 08:28 AM             Msg. 2 of 4
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


Posted: Apr 27, 2012 @ 08:52 PM             Msg. 3 of 4
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


Posted: May 03, 2012 @ 08:55 AM             Msg. 4 of 4
Correct, you will need to run your algorithm on client side.

Victor Vins
Lead Software Developer