Search results

  1. F

    Writing a GUI to TWS in C# part 5

    Hello again! Does anyone know a way to automatically login to theTWS from C#? Somebody posted code for automated start and login written In Java, I was not able to make use of it, since it requires a certain library in Java (and I am not allowed use Java on this project) Fredrik
  2. F

    Writing a GUI to TWS in C# part 4

    Thank you so much dcraig! I will study it carefully Fredrik
  3. F

    Writing a GUI to TWS in C# part 4

    If you use 'jemmy', will the automated login do it all for you, or do you also have to start TWS in a separate call? I am writing in C#, but I suppose there is some way I can solve this anyway. I am curious about that fragment. If you have the time, please post it! Thanks! Fredrik
  4. F

    Writing a GUI to TWS in C# part 4

    Hello again! I am still writing on my GUI to TWS. I have posted questions to this forum every now and then, and so far I have got some really useful responses from people here. Now I have come to a point where I need a way to restart the TWS from my own app. I dont see any methods for...
  5. F

    Writing a GUI to TWS in C# part 3

    OK, no timestamps... actually I am after some way to detect that the TWS is down. If it is down it should be restarted. I have implemented a disconnection method, but I don´t see the TWS calling it. If my C# app is running, the TWS will freeze if I close it Fredrik
  6. F

    Writing a GUI to TWS in C# part 3

    By the way, is there any time stamping in the TWS?
  7. F

    Writing a GUI to TWS in C# part 3

    Oh,no need to apologize. I think I´ve never seen such a high quota of useful answers in any other forum on the web. It is really great here!
  8. F

    Writing a GUI to TWS in C# part 3

    Thanks!
  9. F

    Writing a GUI to TWS in C# part 3

    Noooo, I am sorry. You are right. 127, not 172. It works ! Thank you. It is very much Monday morning over here :-) Thanks and thanks again!! Fredrik
  10. F

    Writing a GUI to TWS in C# part 3

    172.19.16.102, is the ip-adress on this machine, as reported by the ipconfig command (executed in the command prompt) I tried 172.0.0.1 as well, but it does not change anything.
  11. F

    Writing a GUI to TWS in C# part 3

    Maybe I make some mistake, I don´t know. Anyway my local ip is 172.19.16.102.Under the Configure menu in IB Trader Working Station, I go to "API" and select trusted Ip addresses and enter 172.19.16.102. I klick apply and OK. Then I turn to my own C#-app and klick connect. And the confirmation...
  12. F

    Writing a GUI to TWS in C# part 3

    SlideShowBob, I found those settings in the TWS. Thank you! Unfortunately the java message box comes anyway. it says: "Accept incoming connection attempt?" I would like to automate this procedure, since there will be noone around to handle it( except the system) Fredrik
  13. F

    Writing a GUI to TWS in C# part 3

    Right now it looks like this, but its sort of besides the point. I wrote the GUI just to be able to test a DLL . the DLL contains all code that directly communicates with the TWS. I will drop the GUI later, when it is time to hook up the DLL to the main program.
  14. F

    Writing a GUI to TWS in C# part 3

    Thanks. The settings you talk about.. are they windows settings?
  15. F

    Writing a GUI to TWS in C# part 3

    So far, so good! I have written a little app in C#,that receives streaming data from IB. I have also converted it into a DLL that I am calling from a GUI. Later on I will skip the GUI and incorporate the DLL in a larger trading system, that I am writing with a group of friends. Thanks a lot...
  16. F

    Writing a GUI in C# part 2

    When I put these values into the VB-app,things started to work.Now I'll move on to the C# code. Thank´s a lot. Id: 1 Symbol: DAX Type: FUT Expiry:20060616 Strike:0 Exchange: DTB Exchange: DTB currency = "EUR"
  17. F

    Writing a GUI in C# part 2

    Thank's a lot DCraig! I´ll try these values. Fredrik
  18. F

    Writing a GUI in C# part 2

    I already use that vb sample as a model for the app I am trying to create in C#. Although I can study the methods, I cannot use them properly. Even running the VB-app produces errors, since I don´t know what to enter in the boxes.This is one of the error messages I get: 'No security...
  19. F

    Writing a GUI in C# part 2

    Thank´s for all the useful answers I got!. I am now able to connect to TWS, via a control supplied by IB. Visual Studio lets me see a whole list of methods. As a my next step I attempt to call the mehod 'reqMktData() Unfortunately I don't know what values to put in the parameter list. Are...
  20. F

    Writing a GUI in C#

    Thank´s GTG! That worked! I now have a control called axTws1, and the intellisense (in Visual Studio) supplies a long list of methods that I can use. One of them is "Connect()"
Back
Top