Home › Forums › Trading System Mentor Course Community › Running Your Trading Business › Running two or more systems at the same time with Batch Trader
- This topic is empty.
-
AuthorPosts
-
November 24, 2016 at 3:55 am #105844JulianCohenParticipant
Yes it is. The version I have will also mark the systems with the relevant order number when you do this. Best check with Levente if yours does too
November 24, 2016 at 4:07 am #105847TrentRothallParticipantJulian Cohen wrote:Yes it is. The version I have will also mark the systems with the relevant order number when you do this. Best check with Levente if yours does tooThanks Julian
November 25, 2016 at 5:15 am #105848TrentRothallParticipantAre you using multiple systems with one IB account and tracking them with share trade tracker? If so how do you go about bulk uploading trades into STT?
November 25, 2016 at 5:39 am #105856JulianCohenParticipantTrent Rothall wrote:Are you using multiple systems with one IB account and tracking them with share trade tracker? If so how do you go about bulk uploading trades into STT?Yes I am. I use Said’s TWS to STT and have one file saved for each system I trade. I go to Trade log on TWS and sort it so that it shows the trades for system 1. Then I save that as a separate CSV file. I do this for each system. Then I use the relevant TWS to STT file for each system and copy and paste each one into STT.
November 25, 2016 at 5:56 am #105857Nick RadgeKeymasterHere’s the instructions to use a different reference number in each BatchTrader:
Step 1 is that you need to have 2x BatchTrader set up. I have Batchtrader 1 and Batchtrader 2. They both trade different systems. Ensure that everything you did to set up the initial BatchTrader is replicated when setting up the second.
Next, if you have two or more applications connecting to the same TWS instance, they must have a different client ID.
This client ID can be configured in Batch Trader. You have to go to the second instance and open the services.xml file (located under appdata/config) with a text editor and identify the following section:
Change this line to
You should be able now to run two instances in parallel.
November 28, 2016 at 8:36 am #104909TrentRothallParticipantJulian Cohen wrote:Please refer to the link below:https://www.interactivebrokers.com/en/software/api/apiguide/java/order.htm
There is property named “m_orderRef” to allow you setup your own reference id via API. For example, you can named orders in API client 1 as client1xxxxx and use different name for the orders in another client. Then after the order executed, you will find the value you have set for different orders in “Order Ref” column.
In the original batchtrader v1.0.2 It doesn’t send a order ref to tws when the orders are sent like the newer versions of the application.
Do any of you guys with coding experience know if/how i can use the above property to add into my version?
Cheers
November 28, 2016 at 11:33 am #105862SaidBitarMemberI think how to deal with each parameter should be in the code of the API, maybe you need to send email to the developer and he can advice if there is any field that you can modify so you can differentiate.
I did work around when i started using the API by opening another sub account under the same account, so in the report i have two account numbers and this is how i differentiate. Not the brightest idea but it works and you can transfer money between the accounts so no need for wire transfer.
the information that you linked has all the fields that are required to create an order and to send it to TWS, some of these fields are mandatory and most are optional. this is why it is better to check with the developer to know what he did with this field and if he is reading it from the config file.
November 28, 2016 at 11:39 pm #105863TrentRothallParticipantThanks Said. I’ll check it out
-
AuthorPosts
- You must be logged in to reply to this topic.